Skip to reading
The Variable Designer

Connect the graph to the clock and test

Edition 0.86.4.1 HF1

0.86.4.1 Hotfix 1 edition. Earlier lessons and screenshots retain their original version context; revised references and supplements describe the newer behavior.

Download PDFView illustrations

1. Return to the clock’s Verb Actions in Scene Designer.

2. Replace the old unconditional Use sequence with one Run Visual Script action. Select Wind Clock Once(wind_once) as Script.

3. Remove the old reward steps from this Use group, or choose No Action for those steps. Do not leave an extra add-10 action after the graph call.

4. Apply, save and start a fresh preview. Use the clock, let the response finish, then use it again.

Figure 17. The object calls Wind Clock Once. The native action-list label in this release is Run Visual Script.

Source table from Connect the graph to the clock and test, page 22
When you use the clockExpected result
First timeclock_wound becomes True; score becomes 10; the success message appears.
After that response finishesThe “already running” message appears; score stays at 10.
After a fresh restartThe starting False and 0 values return. The reward is available again.

Do not test the second click while the first interaction is still busy. That click may be ignored by the interaction lock; it does not prove that your condition worked. Wait for the response to finish and check the second message as well as the score.

This same graph can be called from another supported action list. Keep one shared check for a one-time reward so a GUI button and an object click cannot accidentally use different rules.

Page 22 of 37Permalink
Go to page