Theraze
Active member
I've looked through and can't find any way to access the character's gender without a server hit. Since mafia already knows this, would it be possible for us to have a my_gender() ASH command? This would simplify scripts like crafting_ideas so they don't need to ask you for your gender every execution... I've attached a quick patch that just adds my_gender() to RuntimeLibrary.
Examples - Male:
Edit: Personally, this would save a server hit every time I run crafting_ideas or Discoveries. At some point I'll update undiscovered to do the gender checks as well.
Examples - Male:
Female:> my_gender
Returned: -1
If you ever get 0, it means that mafia has absolutely failed to figure out what your gender is.> my_gender
Returned: 1
Edit: Personally, this would save a server hit every time I run crafting_ideas or Discoveries. At some point I'll update undiscovered to do the gender checks as well.

Attachments
Last edited: