Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Male/Female Recognition

Nexeus Fatale
DJ Nexeus
Join date: 28 Aug 2004
Posts: 128
02-01-2005 09:01
I'm getting my feet wet (again) with scripting, and want to know if there's a variable that detects wether the av is a male av or a female av.
_____________________
Website: www.nexeusfatale.com
[nf_d]: nfd.nexeusfatale.com
YadNi Monde
Junkyard Owner
Join date: 30 Mar 2004
Posts: 189
I m NOT a Scriptor but ...
02-01-2005 09:16
... I heard it wasnt really possible, there s no llDetectSeX command or such, an av is JUST an av...
_____________________
---------------=If It S Not Primmy It S Not A YadNi=----------------
-=In a MMORPG u levelup a Character, in SL u levelup the User.=-
----------------=Your only limit is Your imagination.=--------------

------------------------------------------- ;) Yours, Friendly, Yadni =)

Jesrad Seraph
Nonsense
Join date: 11 Dec 2004
Posts: 1,463
02-01-2005 09:21
The Wiki contains nothing that could do that. You might try to identify male/female names using complex heuristics, or check the agent size's X and Y parameters for comparison with the Z one (SL women tend to be thinner than SL men, eh :D), but these are absolutely not reliable.
_____________________
Either Man can enjoy universal freedom, or Man cannot. If it is possible then everyone can act freely if they don't stop anyone else from doing same. If it is not possible, then conflict will arise anyway so punch those that try to stop you. In conclusion the only strategy that wins in all cases is that of doing what you want against all adversity, as long as you respect that right in others.
Lora Morgan
Puts the "eek" in "geek"
Join date: 19 Mar 2004
Posts: 779
02-01-2005 09:22
Have your script squeeze in all the right places. That's how I usually tell.
Zuzi Martinez
goth dachshund
Join date: 4 Sep 2004
Posts: 1,860
02-01-2005 09:29
use llRezObject to make a toilet with the seat up and use a llListen to check for the presence or absence of reaction.

actually though there's no way you could tell cause we aren't any set gender in sl. just depends on the shape you made today.
Shack Dougall
self become: Object new
Join date: 9 Aug 2004
Posts: 1,028
02-01-2005 09:40
You could ask via dialog or chat.
_____________________
Prim Composer for 3dsMax
-- complete offline builder for prims and sculpties in 3ds Max
http://liferain.com/downloads/primcomposer/

Hierarchical Prim Archive (HPA)
-- HPA is is a fully-documented, platform-independent specification for storing and transferring builds between Second Life-compatible platforms and tools.
https://liferain.com/projects/hpa
Mike Zidane
Registered User
Join date: 10 Apr 2004
Posts: 255
02-01-2005 10:03
You could also just make two pieces. That's what I do. One for males, and one for females. Sometimes one for right hand and left hand too. Of course, this depends on the object we are talking about. This method works best for me, but I make purchased attachments.
_____________________
I'm only faking when I get it right. - CC
Agatha Palmerstone
Space Girl
Join date: 23 Jan 2005
Posts: 185
02-01-2005 10:07
if there was a way to get the slider params of the av, you could do it...

maybe check facial hair or breast size or something.
Jeffrey Gomez
Cubed™
Join date: 11 Jun 2004
Posts: 3,522
02-01-2005 10:17
Short of listing a database of known male, female, and androgenous names in SL and putting it in your script... no, not really a way to do this. :rolleyes:
_____________________
---
Kurt Zidane
Just Human
Join date: 1 Apr 2004
Posts: 636
02-01-2005 10:49
You could give out two object, both would listen on a channel. When asked, the one object would ether reply male and the other would reply female. People could attach said objects to their avatar.
I wouldn't be serprised if birth day + ratings could be used to guess an avatar's gender. This is just me, but I think female tend to be rated more offen then men.
Strife Onizuka
Moonchild
Join date: 3 Mar 2004
Posts: 5,887
02-01-2005 11:14
From: Kurt Zidane
You could give out two object, both would listen on a channel. When asked, the one object would ether reply male and the other would reply female. People could attach said objects to their avatar.
I wouldn't be surprised if birth day + ratings could be used to guess an avatar's gender. This is just me, but I think female tend to be rated more offen then men.


What about us over achievers in the ratings area? I might be insulted if the script misidentifide me. I don't want scripts whistling at me while I'm walking down the street when with a girl...
_____________________
Truth is a river that is always splitting up into arms that reunite. Islanded between the arms, the inhabitants argue for a lifetime as to which is the main river.
- Cyril Connolly

Without the political will to find common ground, the continual friction of tactic and counter tactic, only creates suspicion and hatred and vengeance, and perpetuates the cycle of violence.
- James Nachtwey
Toneless Tomba
(Insert Witty Title Here)
Join date: 13 Oct 2004
Posts: 241
02-01-2005 11:35
if (llDetectSex(user) == OwnersPreference) llAskNumber(user);


:D
Zuzi Martinez
goth dachshund
Join date: 4 Sep 2004
Posts: 1,860
02-01-2005 12:05
CODE
default {
state_entry() {
}

hit_on(integer creep) {
while(TRUE) {
llReject(llDetectedKey(0));
}
}
}
Mike Zidane
Registered User
Join date: 10 Apr 2004
Posts: 255
02-01-2005 13:29
Ok, this is how you know I"m bored.

Zuzi, you got that all wrong. that will never work. It should look like this:

CODE


default
{
hit_on(integer detected)
{
John = llDetectedKey(0);
if(IsACreep(John)
{
Reject(John);
}
}
}


Get it right, people!
_____________________
I'm only faking when I get it right. - CC
Strife Onizuka
Moonchild
Join date: 3 Mar 2004
Posts: 5,887
02-01-2005 13:38
Both wrong

CODE

default
{
hit_on(integer detected)
{
key john;
while(detected--)
{
john = llDetectedKey(detected);
if(IsACreep(john)
{
Reject(john);
}
}
}
}
_____________________
Truth is a river that is always splitting up into arms that reunite. Islanded between the arms, the inhabitants argue for a lifetime as to which is the main river.
- Cyril Connolly

Without the political will to find common ground, the continual friction of tactic and counter tactic, only creates suspicion and hatred and vengeance, and perpetuates the cycle of violence.
- James Nachtwey
Marina McTeague
Registered User
Join date: 20 Jan 2005
Posts: 18
02-01-2005 13:47
All are STILL wrong...you never once declared the IsACreep function!? It won't even compile! *rolls eyes*
Mike Zidane
Registered User
Join date: 10 Apr 2004
Posts: 255
02-01-2005 13:58
Why would I need a while structure in there? Yer just nit picking now!

I admit I didn't declare John though.

And the function is assumed, thank you.

It would be nice if someone would do up a success condition.
_____________________
I'm only faking when I get it right. - CC
Racer Plisskin
Rezerator
Join date: 2 Jan 2005
Posts: 147
02-01-2005 16:55
There hass to be a flag somewhere.

The apperances screen won't let you put facial hair on a female AV and won't give access to makeup on a male.

While you CAN put makeup on while female and then change to male and still see it, the facial hair will always dissappear when female. No bearded ladies allowed I guess...

So much for the everyone is 'just an AV' theory. If that WERE actualy true, every slider would work for every AV.

There doesn't appear to be an LSL function to get access to that flag though.

Maybe if you have them stick a finger in so you can get a blood sample to test for the X/Y chromasome? ;)
Lianne Marten
Cheese Baron
Join date: 6 May 2004
Posts: 2,192
02-01-2005 17:00
oooo is this gonna be a ressurection of the "llGetSex" thread? That one was a fun read :D
_____________________
Racer Plisskin
Rezerator
Join date: 2 Jan 2005
Posts: 147
02-01-2005 17:07
lol.

That's it! get rid of the male/female button on the appearance screen.

Put in a 'dimple' edit control like sphere prims have!

0 = neuter/ken/barby physiology the AVs have now... You can imagine what the the +/- settings might do on your own time. ;)
Lianne Marten
Cheese Baron
Join date: 6 May 2004
Posts: 2,192
02-01-2005 17:34
Would that mean LL would have to take a definite stance in favor of AV sex? :D
_____________________
Christopher Omega
Oxymoron
Join date: 28 Mar 2003
Posts: 1,828
02-01-2005 17:42
The correct way:
CODE

default {
hit_on(integer numPerverts) {
integer pervert;
for(pervert = 0; pervert < numPerverts; pervert++) {
key victim = llDetectedKey(pervert);
if (isPerfectInEveryWay(victim) && getSex(victim) == SEX_MALE) {
sleepWith(victim);
llSleep(12 * 60 * 60); // 12 hours.
dump(victim);
} else {
slap(victim);
}
}
}
}

:D
==Chris
Zuzi Martinez
goth dachshund
Join date: 4 Sep 2004
Posts: 1,860
02-01-2005 22:22
pervert++ is the greatest piece of code in the history of history.
Issarlk Chatnoir
Cross L. apologist.
Join date: 3 Oct 2004
Posts: 424
02-02-2005 04:39
CODE

default {
hit_on(integer numThings) {
integer thing = numThings;
while (thing--) {
key thingKey = llDetectedKey(thing);
if (isSheep(key sheep = thingKey)) { // && getSex(victim) == SEX_FEMALE) {
sleepWith(sheep);
llSleep(1 * 60 * 60); // 1 hours is enough.
llExchangeCards(sheep);
} else {
llGiveInventory(thingKey, "Sexy Sheep AV");
llStartAnimation("wink");
}
}
}
}
_____________________
Vincit omnia Chaos
From: Flugelhorn McHenry
Anyway, ignore me, just listen to the cow
Strife Onizuka
Moonchild
Join date: 3 Mar 2004
Posts: 5,887
02-02-2005 08:36
Hmmm the quality of coding going on has picked up; think i'll have to rewrite...

CODE

default {
hit_on(integer numBreathing) {
integer breathing;
key me = llGetOwner();
for(breathing= 0; breathing< numBreathing; breathing++)
{
key victim = llDetectedKey(breathing);
if (getSex(victim) == SEX_FEMALE) {
if(!isCatGirl(victim) {
llGiveInventory(victim, "Sexy Cat Girl AV");
llStartAnimation("wink");
}
if(isPerfectInEveryWay(victim) || isCatGirl(victim) || isDesprate(me))
{
inviteOverToPlace(victim);
}
llExchangeCards(victim);
} else {
cringAt(victim);
}
}
list victims = getVisitors(house);
while(breathing = llGetListLength(victims))
{
while(breathing--)
{
key victim = llList2Key(victims, breathing);
if (getSex(victim) != SEX_FEMALE)
{
beatUp(victim);
victims = llDeleteSubList(victims, breathing, breathing);
}
}
if(llGetListLength(victims) == 0)
{
goToClub();
return;
}
sleepWith(victims);
llSleep(12 * 60 * 60); // 12 hours is enough.
victims = getVisitors(house);
}
}
}
_____________________
Truth is a river that is always splitting up into arms that reunite. Islanded between the arms, the inhabitants argue for a lifetime as to which is the main river.
- Cyril Connolly

Without the political will to find common ground, the continual friction of tactic and counter tactic, only creates suspicion and hatred and vengeance, and perpetuates the cycle of violence.
- James Nachtwey
1 2