Changing the time of day while testing

Is there a way of advancing time of day when testing game (apart from using z)?

Waiting until is an action applying to one time.
Understand "wait until [time]" as waiting until.
Carry out waiting until a time:
    while the time of day is before the time understood:
        try waiting;
        follow the every turn rules;
        follow the advance time rule.

This is a quick-and-dirty hack that acts as though you typed “wait” many, many times. This makes it relatively slow to execute—good for testing (since your other rules don’t have to deal with sudden jumps in time), but bad for actual play.

Ace! thanks.

If you want to test all time-related triggers, you’ll need this extended version:

Waiting until is an action applying to one time.
Understand "wait until [time]" as waiting until.
Carry out waiting until a time:
	while the time of day is before the time understood:
		follow the declare everything initially unmentioned rule;
		try waiting;
		follow the scene changing rules;
		follow the every turn rules;
		follow the timed events rule;
		follow the advance time rule;
		follow the update chronological records rule;
		follow the scene changing rules;
		follow the adjust light rule;
		follow the note object acquisitions rule;
		follow the notify score changes rule;

AND you can put it under a “not for release” heading (at the end of the text if you’re not otherwise using section dividers) so you can continue to use it during beta testing and it won’t function when you formally “Release” within I7. It will still work if you “Release for testing.”

Section - Debug Commands - Not for release

Waiting until is an action applying to one time.
Understand "wait until [time]" as waiting until.
Carry out waiting until a time:
	while the time of day is before the time understood:
		follow the declare everything initially unmentioned rule;
		try waiting;
		follow the scene changing rules;
		follow the every turn rules;
		follow the timed events rule;
		follow the advance time rule;
		follow the update chronological records rule;
		follow the scene changing rules;
		follow the adjust light rule;
		follow the note object acquisitions rule;
		follow the notify score changes rule;

http://dhayton.haverford.edu/wp-content/uploads/Inform-manuals/WI_2_9.html

2 Likes