Test changes in mid-game
ribot
13 Sept 2016, 13:01Hi,
when you make a change to your game, do you have to restart the game from the beginning and play through everything to test your new change?
Is there no way to jump ahead? I'm thinking there could be a way to add a command that does an eval, so that you can for example add flags to objects to access stuff later in the game.
Otherwise, do you play through your game hundreds of times just when making a small game? Or do you write a text-file with all commands up to the point you want to test?
The Pixie
13 Sept 2016, 14:49If you are working off-line the Walk-through facility does exactly this.
http://docs.textadventures.co.uk/quest/guides/walkthroughs.html
If on-line, and perhaps anyway, I would create a command, as you suggest. I would set the command to jump the player and set all necessary flags itself, rather than doing an eval. When you want to jump to a different bit, edit the command.
DavyB
13 Sept 2016, 14:58I have used scripts in temporary test commands that take the game to the position I wish to investigate, i.e. location, objects held and other relevant conditions. So typing Test1 might jump the middle of the game. The only warning, is that I've found this approach can be a problem if using the map facility.
ribot
13 Sept 2016, 17:32Ok, then I know what to try out.
Thank you!