Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Text rpg question
#2
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

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 Big Grin
SCUMM (the band) on Myspace!
ComputerEmuzone Games Studio
underBASIC, homegrown musicians
[img]http://www.ojodepez-fanzine.net/almacen/yoghourtslover.png[/i
Reply


Messages In This Thread
Text rpg question - by Placeborick - 03-03-2003, 06:17 PM
Text rpg question - by na_th_an - 03-03-2003, 07:18 PM
hmm - by Placeborick - 03-03-2003, 07:37 PM
Text rpg question - by na_th_an - 03-03-2003, 07:39 PM
Text rpg question - by NovaProgramming - 03-05-2003, 11:03 PM
Text rpg question - by ak00ma - 03-05-2003, 11:43 PM
Text rpg question - by NovaProgramming - 03-06-2003, 10:57 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)