Jump to content

Scripting Help With The 'Get' function


Guest deleted156886133

Recommended Posts

Guest deleted156886133

I'm attempting to alter an existing script that has an 'if/endif' sequence that dictates which sound to play whenever I hit my slave.

See below excerpt:

 

  Reveal hidden contents

 

 
Now, as it stands, this is applicable whether the slave is male or female. Suppose I wanted to add gender specific sounds? Is there a way to check that within the script with a 'Get' function? Looking through the script function list, I did not see a 'GetGender', if one exists. Aside from creating two seperate scripts, is there a way to pull this off within one script?
 
-Update-
Immediatly after I posted this, it hit me! Since I already had a variable called 'mpunish', what if I duplicate that one, declare another variable, call it 'fpunish', then edit the duplicate to reflect that. So, now I have split the sequence into male and female, respectively.
 
It worked.
 
  Reveal hidden contents

 

 
Since these variables are set from within topic info responses, I created two seperate responses, male and female and simply referenced the respective script variables.
 
No reply necessary. Maybe this will help someone.
Edited by UsernameWithA9
Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...