Rasho Han 1 Posted December 22, 2011 Report Share Posted December 22, 2011 Hello all, I am having a hard time trying to figure out how to force a specific gender based name in a bot I'm working on.Basically there is no gender in the form I'm filling out, but I want to be able to allow the end user to pick either male or female and have that reflect in the account signup's username and or first name. The way gender is chosen now in ubot v4 it is either male female or any, so is it even possible to pass a variable from the UI to control which is chosen for the first name? I have a dropdown set with either male or female as selections and was thinking of how to use the set command on this. Any insight/ideas? thanks peeps! Quote Link to post Share on other sites
LoWrIdErTJ - BotGuru 904 Posted December 22, 2011 Report Share Posted December 22, 2011 ui drop down("Gender", ",Male,Female", #gender) if($comparison(#gender, "=", "Male")) { then { reset account("Male") } else if($comparison(#gender, "=", "Female")) { reset account("Female") } else { reset account("Any") } } 2 Quote Link to post Share on other sites
Rasho Han 1 Posted December 23, 2011 Author Report Share Posted December 23, 2011 Thanks a lot TJ! That was exactly what I needed, the bot now has gender naming! Sorry I took so long to reply, there was a problem with my forum account. Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.