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.
User avatar
Robert The Rebuilder
Posts: 1383
Joined: Sat Sep 29, 2007 7:24 am
MOULa KI#: 1299
Location: Virginia, US

How To Distinguish Females From Males

Post 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â„¢
Can we rebuild it? Yes, we can - here's how.

MOULagain KI# 1299

Myst Movie coming soon - spread the word!
Nadnerb
Posts: 1057
Joined: Fri Sep 28, 2007 8:01 pm
MOULa KI#: 23247
Location: US (Eastern Time)
Contact:

Re: How To Distinguish Females From Males

Post 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? :?
Image
Live KI: 34914 MOULa KI: 23247 Gehn KI: 11588 Available Ages: TunnelDemo3, BoxAge, Odema
belford
Posts: 344
Joined: Sat Sep 29, 2007 7:18 pm
MOULa KI#: 0
Contact:

Re: How To Distinguish Females From Males

Post 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.)
Tsar Hoikas
Councilor of Technical Direction
Posts: 2180
Joined: Fri Nov 16, 2007 9:45 pm
MOULa KI#: 23335
Location: South Georgia
Contact:

Re: How To Distinguish Females From Males

Post 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
Image
User avatar
Chacal
Posts: 2515
Joined: Tue Nov 06, 2007 2:45 pm
MOULa KI#: 0
Location: Quebec, Canada

Re: How To Distinguish Females From Males

Post by Chacal »

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
Aloys
Posts: 1968
Joined: Sun Oct 21, 2007 7:57 pm
MOULa KI#: 0
Location: France (GMT +1)
Contact:

Re: How To Distinguish Females From Males

Post by Aloys »

Are you creating gender-specific puzzles in your Ahra Shell Robert? :)
D'Lanor
Posts: 1980
Joined: Sat Sep 29, 2007 4:24 am

Re: How To Distinguish Females From Males

Post 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
"It is in self-limitation that a master first shows himself." - Goethe
Tsar Hoikas
Councilor of Technical Direction
Posts: 2180
Joined: Fri Nov 16, 2007 9:45 pm
MOULa KI#: 23335
Location: South Georgia
Contact:

Re: How To Distinguish Females From Males

Post by Tsar Hoikas »

You know... I was joking about that :P
Image
User avatar
Chacal
Posts: 2515
Joined: Tue Nov 06, 2007 2:45 pm
MOULa KI#: 0
Location: Quebec, Canada

Re: How To Distinguish Females From Males

Post by Chacal »

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
Robert The Rebuilder
Posts: 1383
Joined: Sat Sep 29, 2007 7:24 am
MOULa KI#: 1299
Location: Virginia, US

Re: How To Distinguish Females From Males

Post 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.
Can we rebuild it? Yes, we can - here's how.

MOULagain KI# 1299

Myst Movie coming soon - spread the word!
Post Reply

Return to “Scripting”