OpeningWindow:
animations:
- name: WinOpenAnim
autostart: 0
loop: 0
logic:
actions:
- type: responder
name: DoorOpen
responder:
states:
- cmds:
- type: animcmdmsg
params:
receivers:
- 006D: OpeningWindow
animname: WinOpenAnim
cmds:
- setforewards
- continue
waiton: -1
nextstate: 1
waittocmd:
- key: 0
- cmds:
- type: animcmdmsg
params:
recievers:
- 006D: OpeningWindow
animname: WinOpenAnim
cmds:
- setbackwards
- continue
waiton: -1
nextstate: 0
waittocmd:
- key: 0
OpenButton:
logic:
modifiers:
- cursor: poised
flags:
- localelement
activators:
- type: objectinvolume
remote: WinClickRegion
triggers:
- any
conditions:
- type: activator
activators:
- type: picking
- type: objectinbox
satisfied: true
actions:
- type: responder
ref: :OpenWindow
OpeningWindow: # Indent-Level 0: 0 space
animations: # Level 1: 4 spaces
- name: WinOpenAnim # Level 2: 4+2 = 6 spaces (this is an exception to normally 4+4 spaces, because list entries starting with "- " can have 2 spaces less indentation)
autostart: 0 # Level 2: 4+4 = 8 spaces
loop: 0 # Level 2: 4+4 spaces
logic: # Level 1: 4 spaces
actions: # Level 2: 8 spaces
- type: responder # Level 3: 4+4+2 spaces ("- " exception here)
name: DoorOpen # Level 3: 4+4+4 spaces
responder:
states:
- cmds: # Level 4
- type: animcmdmsg # Level 5
... (omitted the rest) ...
house:
table:
box:
- cup: red
state: full
- cup: blue
state: empty
chair:
- person: me
will create a data structure with contents like this:
"In the house there's a table with a box, containing a full red cup, plus an empty blue cup" (and me sitting on a chair in the house)
but this:
house:
table:
box:
- cup: red
state: full
- cup: blue
state: empty
chair:
- person: me
would create:
"In the house there's a table with a box, containing ONLY a full red cup,
plus an empty blue cup DIRECTLY on the table, not in the box" (and me sitting on a chair)
(I hope you get the idea, and the parser can't really guess what you meant if the indentation is bad)
Users browsing this forum: No registered users and 1 guest