03-03-2003, 07:18 PM
Hmmm, just use IFs in combination with what is called "flag variables". These kinds of variables store numeric values that have an useful meaning. For example, you can have a flag to store which kind of room you are, for example, let's say
You only have to set it correctly for each room, and just make an IF. I don't know what kind of data structure you are using to store the room data, or maybe if you are hard-coding them with PRINTs and GOTOs (I would not do that!)...
In Sum, I don't know if I am helping you, mostly because I don't know how you are implementing your game
Code:
' the RoomType% variable will equal...
' 1 If you are in a corridor
' 2 If you are in the greengrocer's
' 3 If you are in the toy shop
' 4 If you are in the boutique
' (err... to name a few)
RoomType%=4
You only have to set it correctly for each room, and just make an IF. I don't know what kind of data structure you are using to store the room data, or maybe if you are hard-coding them with PRINTs and GOTOs (I would not do that!)...
In Sum, I don't know if I am helping you, mostly because I don't know how you are implementing your game
SCUMM (the band) on Myspace!
ComputerEmuzone Games Studio
underBASIC, homegrown musicians
[img]http://www.ojodepez-fanzine.net/almacen/yoghourtslover.png[/i
ComputerEmuzone Games Studio
underBASIC, homegrown musicians
[img]http://www.ojodepez-fanzine.net/almacen/yoghourtslover.png[/i