What did you do as a child?
*choice #I spent time with my friends #I read loads of books #I played games #I went out shopping #I played basketball
What I want to do is make some of the options only acssessed by male players and some only by female players. Not trying to be sexist at all here, but how do I diffrentiate?
If I wanted shopping to be girl only, I tried to write
*choice
*if (gender) girl #I went out shopping
*if (gender) boy #I played basketball
and
*if (girl) #I went out shopping
*if (boy) #I played basketball
But they didn’t work, so what should I write?
Thanks!
you can do it like JimD suggested an alternate way is to create a variable for male and another for female and set them in mygame.js as false then set them true when they pick genders. then this will work
*if (male) #male only choice
*if (female) #female only choice
@kkuomi BTW, having both a female variable and a male variable isn’t necessary unless you’re planning to allow characters who are neither or both. Instead of checking two variables, you can just check one (ie. female and not female -or- male and not male). Instead of two *if’s you can also use an *if and an *else.
Examples:
*if (female) #ChoiceFemale
*else #ChoiceMale
-or-
*if not (female) #ChoiceMale
If you always strive to keep the logic as simple as possible it will over the long haul reduce the amount of time you spend stomping bugs.
Pity. Unfortunately I don’t have a Kindle Fire to test it out. Is @dfabulich aware of this problem with not on the Fire? ie. Do you know if it’s been reported?
in the Advanced *if statements section under And/or/not . The example given is: not(strength > 70).
Hmm…I just noticed that there is no space between the not and the opening parenthesis in the example. For the code I’ve tested in Firefox, I’ve been successfully using it with a space in between.