The14thdoctor 2020-07-05 16:38
So I started making an update to my Oregon Trail game (not updating any time soon) and was wondering if there was any way you can make a turn system. Like right now it says “you have died” but I was wondering if it could say like “joe has died” and then eliminate “joe” from the system.
was8bit 2020-07-05 20:14
Abit more complicated than that, post if you need more :)
was8bit 2020-07-05 20:30
Also, if you plan lots of variations you need to reduce your commentary for each event to a one line sentence per event or LowRes limit will take effect and stop your game.. complicated text games can do that...
The14thdoctor 2020-07-05 23:11
Not exactly sure what you mean about the commentary bit
was8bit 2020-07-06 10:39
Each line contains commands which use up "TOKENS" , and there is a max of 16,384 tokens....
Your existing game already uses 755 tokens...
I have reworked your code, setting it up to process all inventory levels and auto displayes stuff and reduces wasted tokens being used up displaying long messages on the screen... the reworked version adds lots of set up code and such and also reduces token count to 715 tokens...
was8bit 2020-07-06 10:45 (Edited)
I added little things like adjusting mess or food levels if available, then adjusting for deaths when meds or food runs out, added getting food at river... ANY of these can be easily changed... i added these just as an example...
To add "Joe" died is possible, although may make the game abit too sad... if you really want it, it is an easy thing to add...you simply create a name array NAME$(4) where player is #0... so at each death print NAME$(PLAYER+1) before you use DEC PLAYER
Would have to tweak start of game where you enter names, and also tweak or add a SUB for handling deaths..
Use SUBs to reuse code rather than rewriting identical code... this reduces the number of TOKENS you use up in the game...
was8bit 2020-07-06 10:49
TOKEN counts can be seen on the WINDOWS version of LowRes, and will also be available for iPad iPhone version in the next LowRes update
The14thdoctor 2020-07-06 12:31
was8bit 2020-07-06 15:34
Timo 2020-07-06 17:38
I recommend my tutorial here: https://lowresnx.inutilis.com/topic.php?id=306
Make sure you understand arrays (last part of the tutorial). This is what you need for the names.