Skip to content

Instantly share code, notes, and snippets.

@zephjc
Last active December 21, 2015 18:39
Show Gist options
  • Save zephjc/6349198 to your computer and use it in GitHub Desktop.
Save zephjc/6349198 to your computer and use it in GitHub Desktop.
Faked Intra-location moving/state
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