1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Tab indents the line. Press F6 to move on from the code, or Shift and Tab to move back.# The baker lost the key to the bakery.when the {Hero} talks to meif @baker_donesay "Fresh bread for my hero!"else if the {Hero} has the {Gold key}say "My golden key! Thank you!"game give 10 coins to the {Hero}@baker_done is yeselse if @baker_askedsay "Any luck? I was by the pond this morning."else@baker_asked is the answer to "I lost my golden key! Will you find it?" with yes or noif @baker_askedsay "Thank you! Try near the pond."elsesay "Oh dear. Come back if you change your mind."endend
4 lines I can't understand. They're skipped when you play.
- "when the {Hero} talks to me" is for villagers, not enemies.
- "the {Hero} has" is for the game script, level scripts and an Adventure's villagers.
- Splat Script now says "{Game} give" instead of "game give".
- "@baker_asked is the answer to "I lost my golden key! Will you find it?" with yes or no" is for villagers, the game script, level scripts and the hero script, not enemies.
Public Scripts
Loading scripts…



