03-06-2003, 05:18 PM
Im making a little rpg type thing to practice my qbasic skills and i have a question:
i finding for each room of my rpg i have to write out a repetitive list of IF's eg:
such commands are common to each room and all have the same effect but i want to be able to tidy the code up by being able to recall all those if commands using one small command that refers to that particular group of IFs, but im not sure how to do this?
can anyone help?
:???:
i finding for each room of my rpg i have to write out a repetitive list of IF's eg:
Code:
If a$ = "look" THEN .....
if a$ = "stand" THEN ....
if a$ = "stand" THEN ...
if a$ = "sleep" THEN ...
such commands are common to each room and all have the same effect but i want to be able to tidy the code up by being able to recall all those if commands using one small command that refers to that particular group of IFs, but im not sure how to do this?
can anyone help?
:???:
-p