Page 1 of 2

How To Distinguish Females From Males

PostPosted: Fri Dec 14, 2007 9:18 pm
by Robert The Rebuilder
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â„¢

Re: How To Distinguish Females From Males

PostPosted: Fri Dec 14, 2007 10:41 pm
by Nadnerb
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? :?

Re: How To Distinguish Females From Males

PostPosted: Fri Dec 14, 2007 10:54 pm
by belford
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.)

Re: How To Distinguish Females From Males

PostPosted: Fri Dec 14, 2007 11:23 pm
by Tsar Hoikas
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

Re: How To Distinguish Females From Males

PostPosted: Sat Dec 15, 2007 2:04 am
by Chacal
There are so many things we could do with that, all of which would be wrong...

Re: How To Distinguish Females From Males

PostPosted: Sat Dec 15, 2007 7:27 am
by Aloys
Are you creating gender-specific puzzles in your Ahra Shell Robert? :)

Re: How To Distinguish Females From Males

PostPosted: Sat Dec 15, 2007 7:49 am
by D'Lanor
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

Re: How To Distinguish Females From Males

PostPosted: Sat Dec 15, 2007 12:03 pm
by Tsar Hoikas
You know... I was joking about that :P

Re: How To Distinguish Females From Males

PostPosted: Sat Dec 15, 2007 12:09 pm
by Chacal
Too late. You unleashed Evil on the Universe.

Re: How To Distinguish Females From Males

PostPosted: Sun Dec 16, 2007 7:33 am
by Robert The Rebuilder
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.