Hey, to cut to the chase I’ve been trying to find a way to allow a player to attack any of a specific kind of monster, for example if I were to write:
A monster is a kind of thing. A wolf is a kind of monster. A pillow beast is a kind of monster. Every monster has a number called hp. A hp is usually 10. After examining a monster: say "HP:[the hp of the noun]"; Kicking is an action applying to one thing. Understand "kick [something]" as kicking. Check kicking: if the noun is not a monster: say "You can't attack that."; Carry out kicking: now the hp of the noun is the hp of the noun - 1; say "You kick [the noun]."; if the hp of the noun <= 0: say "You kill [the noun]."; now the noun is off-stage; The dark forest is a room. The player, two wolves and 1 pillow beast are here.
Then I could not choose which wolf to attack, I must go through one by one. This could be seen as minor, but it’s really annoying to work around for a game and googling the problem has brought up nothing; help is appreciated .