Genkora
Frog blast the vent core!
- Reaction score
- 92
I was wondering there was a simple way of using any index of an array in a conditional.
Like
if (String variable == array[any index])
{
do stuff
}
I'm making a text based adventure game and want to have multiple ways of saying commands like "move", like go, walk, travel, etc. So the player can type go north, or walk north, or travel north.
Like
if (String variable == array[any index])
{
do stuff
}
I'm making a text based adventure game and want to have multiple ways of saying commands like "move", like go, walk, travel, etc. So the player can type go north, or walk north, or travel north.