Computer Science Canada Is their an easier way of making an rpg game? |
Author: | matt_mcn [ Thu Nov 11, 2004 10:28 pm ] |
Post subject: | Is their an easier way of making an rpg game? |
Yea im just wonderin if anyone could tell me if their is an easier way to make an rpg game then the way i so far did it.. because right now my game is a bunch of procedures and if statements..and i have lots of problems... ive posted it..so if someone could help me id appreciate it.. included is rpg.t |
Author: | Delos [ Fri Nov 12, 2004 8:56 am ] |
Post subject: | |
Ah...yes, there is most definitely an easier way of doing this. Right now you have everything hardcoded...which means lots of unnecassary coding on your part. What you'll want to look into are procedures (and maybe functions). This will allow you to take all the code that you have and compress it into a lot less of code. Your basic idea will be to make a procedure that can handle introductory text ("Where do want to go?"), issue options ("To the tree; To the lamppost; Today."), possibly even take input too. You'll need the procedure to return values depening on which choice was made, and accordingly call another procedure (or even the same one just with different arguments!) Makes this sort of thing a lot easier... Procedures Functions Processes by tony Modules by Delos |
Author: | wtd [ Fri Nov 12, 2004 2:00 pm ] |
Post subject: | |
Records and arrays are always good to have in your toolbox as well. |