Ok so im trying to code reactions for the names in my game. I have a bunch of already prechosen names and im pretty solid on how to code the reactions for them its when i get to the player input name that im not sure what to do. Heres and example of one of the coded name
*if (name = “Cain”)
*goto cain
but im not sure what to put for the player imput name would it be something like
*if not
*goto so and so?
No the players have already chosen their names in the beginning of the game. This part they are introducing themselves and I want coded reactions to names they chose. I got the default names sorted its when im trying to code for the pleyer typed name im struggling to code
You can also put in a sentence by putting a *if under a label. But it requires some fiddling with variables.
Blockquote
*label machoice
*if clariceknown = true
The smile she already brought brightened at your taking the time to call her by the proper name instead of just ‘Miss’.
*elseif nerv1 = true
She nearly chuckles in surprise at your nervousness
If you are using text input instead of a choice, I would recommend adjusting the variable check a little:
*if "$!!{name}"="CAIN"
*goto cain
*elseif "$!!{name}"="ABEL"
*goto abel
It will allow to check the variable regardless of how the name was written by the player. For example, the usual *if (name=“Cain”) won’t be triggered if the name is inputted as cain or cAiN.