How To Distinguish Females From Males

Help bring our custom Ages to life! Share tips and tricks, as well as code samples with other developers.

How To Distinguish Females From Males

Postby Robert The Rebuilder » Fri Dec 14, 2007 9:18 pm

So, you've been playing Uru for quite some time, using a male avatar and/or a female avatar. What major physical difference have you noticed between the two genders?

Yes - you are right!* The female avatar's first person perspective is shorter than the male's - by .4 feet/Blender units. If you're designing any puzzles that require the proper positioning of the first person viewpoint, you'll need to find a way to overcome that difference in order for both genders to enjoy your age.

But how does Python tell the difference between the two genders? By looking at their clothing, of course:

Code: Select all
            if (PtGetLocalAvatar().avatar.getAvatarClothingGroup() == kMaleClothingGroup):
                print "You are male!"
            else:
                print "You are female!"


You can also use this to make different things appear in your age depending on the gender, e.g. the long-sought-after D'ni restroom with either a "WOMEN" sign or a "MEN" sign.


---
* Remember - this is a Family Friendly Forumâ„¢
Can we rebuild it? Yes, we can - here's how.

MOULagain KI# 1299

Myst Movie coming soon - spread the word!
User avatar
Robert The Rebuilder
 
Posts: 1383
Joined: Sat Sep 29, 2007 7:24 am
Location: Virginia, US

Re: How To Distinguish Females From Males

Postby Nadnerb » Fri Dec 14, 2007 10:41 pm

Very interesting... but as for your example, wouldn't it be kind of odd if two people saw two different signs on the restroom, and so each thought they could go in? Kinda awkward? :?
Image
Live KI: 34914 MOULa KI: 23247 Gehn KI: 11588 Available Ages: TunnelDemo3, BoxAge, Odema
Nadnerb
 
Posts: 1057
Joined: Fri Sep 28, 2007 8:01 pm
Location: US (Eastern Time)

Re: How To Distinguish Females From Males

Postby belford » Fri Dec 14, 2007 10:54 pm

What you'd want is a pair of restroom doors -- each one would auto-open when an avatar of the appropriate gender approached.

(And then the little Bahro's room.)
belford
 
Posts: 344
Joined: Sat Sep 29, 2007 7:18 pm

Re: How To Distinguish Females From Males

Postby Tsar Hoikas » Fri Dec 14, 2007 11:23 pm

Now, you just need to take into account things like if you're doing that in an OnNotify and received the notification from another player and need to affix _that_ avatar's gender to something or another...

Gotta love it :P
Image
Tsar Hoikas
Councilor of Technical Direction
 
Posts: 2180
Joined: Fri Nov 16, 2007 9:45 pm
Location: South Georgia

Re: How To Distinguish Females From Males

Postby Chacal » Sat Dec 15, 2007 2:04 am

There are so many things we could do with that, all of which would be wrong...
Chacal


"The weak can never forgive. Forgiveness is an attribute of the strong."
-- Mahatma Gandhi
User avatar
Chacal
 
Posts: 2509
Joined: Tue Nov 06, 2007 2:45 pm
Location: Quebec, Canada

Re: How To Distinguish Females From Males

Postby Aloys » Sat Dec 15, 2007 7:27 am

Are you creating gender-specific puzzles in your Ahra Shell Robert? :)
User avatar
Aloys
 
Posts: 1968
Joined: Sun Oct 21, 2007 7:57 pm
Location: France (GMT +1)

Re: How To Distinguish Females From Males

Postby D'Lanor » Sat Dec 15, 2007 7:49 am

Hoikas wrote:Now, you just need to take into account things like if you're doing that in an OnNotify and received the notification from another player and need to affix _that_ avatar's gender to something or another...

Gotta love it :P

Just make sure not to use PtGetLocalAvatar() in that case. That will be your own avatar. You will have to get the player info from the OnNotify arguments. If I am not mistaken player info can be extracted from the "events" argument (depending on the type of event), but that is too complicated for a beginners tip.

Also keep in mind that Custom Avatars are neither male nor female. You could wind up with errors like "Cate claps his hands". (sound familiar?) Or following Robert's example "Kodama claps her hands". :D
"It is in self-limitation that a master first shows himself." - Goethe
User avatar
D'Lanor
 
Posts: 1980
Joined: Sat Sep 29, 2007 4:24 am

Re: How To Distinguish Females From Males

Postby Tsar Hoikas » Sat Dec 15, 2007 12:03 pm

You know... I was joking about that :P
Image
Tsar Hoikas
Councilor of Technical Direction
 
Posts: 2180
Joined: Fri Nov 16, 2007 9:45 pm
Location: South Georgia

Re: How To Distinguish Females From Males

Postby Chacal » Sat Dec 15, 2007 12:09 pm

Too late. You unleashed Evil on the Universe.
Chacal


"The weak can never forgive. Forgiveness is an attribute of the strong."
-- Mahatma Gandhi
User avatar
Chacal
 
Posts: 2509
Joined: Tue Nov 06, 2007 2:45 pm
Location: Quebec, Canada

Re: How To Distinguish Females From Males

Postby Robert The Rebuilder » Sun Dec 16, 2007 7:33 am

Aloys wrote:Are you creating gender-specific puzzles in your Ahra Shell Robert? :)


*me considers how to respond without spoilers...*

Let's just say that, for once, men and women need to share the same perspective... and a little boost from a conditional collider will help.
Can we rebuild it? Yes, we can - here's how.

MOULagain KI# 1299

Myst Movie coming soon - spread the word!
User avatar
Robert The Rebuilder
 
Posts: 1383
Joined: Sat Sep 29, 2007 7:24 am
Location: Virginia, US

Next

Return to Scripting

Who is online

Users browsing this forum: No registered users and 1 guest

cron