Last active
December 21, 2015 18:39
-
-
Save zephjc/6349198 to your computer and use it in GitHub Desktop.
Faked Intra-location moving/state
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
desc - Text | |
[[conditional_desc()]] | |
=== | |
counter - Value | |
0 | |
=== | |
conditional_desc - Code | |
if counter == 0: | |
return text(desc_off) | |
elif counter == 1: | |
return text(desc_sputter) | |
else: | |
return text(desc_on) | |
=== | |
inc_counter - Code | |
counter += 1 | |
=== | |
zero_counter - Code | |
counter = 0 | |
=== | |
desc_off - Text | |
You are are looking at a car motor; it's turned off. [Turn it on|inc_counter]. | |
=== | |
desc_sputter - Text | |
There is an car motor but sputtering. [Kick it hard|inc_counter]. | |
=== | |
desc_on - Text | |
There is a car motor running. [Turn it off|zero_counter]. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment