User:Toy Wylie/RLV Documentation/getdebug avatarsex
Jump to navigation
Jump to search
@getdebug avatarsex
Type
General
Implemented
Implemented since RLV version 1.16
Usage
@getdebug_avatarsex=<channel>
Purpose
This commands the user's viewer to answer with the value stored in the "avatarsex" debug setting. This usually contains the shape chosen at avatar creation. 0 means female, 1 means male, -1 means undefined. To set this value the RLV command @setdebug_avatarsex can be used. RLV devices can read this value and act accordingly by adapting chat messages or functions to different genders.
See Also
Example
<lsl>integer channel=98765;
default {
state_entry() { llOwnerSay("Touch me to verify your gender settings."); llListen(channel,"",llGetOwner(),""); }
touch_start(integer total_number) { if(llGetOwner()==llDetectedKey(0)) llOwnerSay("@getdebug_avatarsex="+(string) channel); } listen(integer channel, string name, key id, string message) { if(message=="0") { llOwnerSay("Your RLV gender is: female"); } else if(message=="1") { llOwnerSay("Your RLV gender is: male"); } else if(message=="-1") { llOwnerSay("Your RLV gender is: unknown"); } }
}
</lsl>