Skip to content

Instantly share code, notes, and snippets.

@Bocom
Created October 18, 2013 20:20
Show Gist options
  • Save Bocom/7047627 to your computer and use it in GitHub Desktop.
Save Bocom/7047627 to your computer and use it in GitHub Desktop.
New Example
label main {
if ($numItems > 0 and has_item "GrandKey") {
show Battler Happy
show Beatrice Happy
say Battler testscript.has_key
}
else {
show Battler
show Beatrice
say Battler testscript.no_key
}
}
label main2 {
if (has_item "TheSword") {
say "woo!"
}
else {
say "naaahh!"
}
}
label get_var {
if ($var1 == 10) {
say testscript.get_var1
}
else {
say testscript.get_var2
}
}
label set_var {
set $var1 10
}
label if_test {
if ($numItems > 0) {
if ($numItems > 0 and has_item "GrandKey") {
say "yay!"
}
else {
say "aww!"
}
}
else if ($numItems < 1) {
say "elif!"
}
else {
say "aww."
}
say "COLLUSION!"
}
label choice_test {
show Battler
show Beatrice Happy
say Beatrice testscript.choice_test_start
choices {
choice testscript.choice1 {
say Battler testscript.choice1_dialogue
goto "first_choice"
}
choice testscript.choice2 {
say Beatrice testscript.choice2_dialogue
goto "second_choice"
}
}
}
label first_choice {
say "You selected the first choice"
set switch1 true
set $var1 10
}
label second_choice {
say "You selected the second choice"
set switch1 false
set $var2 10
}
label more_tests {
show Battler
show Beatrice
say "THIS IS NARRATION TEXT"
show Beatrice Happy
say Beatrice "CATCH ME IF YOU CAN!"
show Battler Surprised
hide Beatrice
say Battler "H-Hey!"
clear
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment