diff options
author | Ben Longbons <b.r.longbons@gmail.com> | 2014-04-02 11:06:32 -0700 |
---|---|---|
committer | Ben Longbons <b.r.longbons@gmail.com> | 2014-04-02 22:21:29 -0700 |
commit | c0ba38cd4b68491e28e467889804ebc09c9c002e (patch) | |
tree | af2890e6fe20990d2a9b7c94b991be58f25a5d52 /world/map/npc/013-1 | |
parent | 514a2f05cb335c1e9210fea58bc9a9a58478283f (diff) | |
download | serverdata-c0ba38cd4b68491e28e467889804ebc09c9c002e.tar.gz serverdata-c0ba38cd4b68491e28e467889804ebc09c9c002e.tar.bz2 serverdata-c0ba38cd4b68491e28e467889804ebc09c9c002e.tar.xz serverdata-c0ba38cd4b68491e28e467889804ebc09c9c002e.zip |
Clean up main scripts
Diffstat (limited to 'world/map/npc/013-1')
-rw-r--r-- | world/map/npc/013-1/sagatha.txt | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/world/map/npc/013-1/sagatha.txt b/world/map/npc/013-1/sagatha.txt index 8f975af3..44d531b2 100644 --- a/world/map/npc/013-1/sagatha.txt +++ b/world/map/npc/013-1/sagatha.txt @@ -12,6 +12,7 @@ function|script|QuestSagathaHappy|, L_zero: set @unhappiness, 0; + goto L_write; L_write: set QUEST_MAGIC, (QUEST_MAGIC & ~NIBBLE_3_MASK) | (@unhappiness << NIBBLE_3_SHIFT); @@ -30,6 +31,7 @@ function|script|QuestSagathaAnnoy|, L_max: set @unhappiness, 15; + goto L_write; L_write: set QUEST_MAGIC, (QUEST_MAGIC & ~NIBBLE_3_MASK) | (@unhappiness << NIBBLE_3_SHIFT); @@ -43,6 +45,7 @@ function|script|SagathaStatus|, goto L_next; set @value, 15; callfunc "QuestSagathaAnnoy"; + goto L_next; L_next: set @mexp, MAGIC_EXPERIENCE & 65535; @@ -109,10 +112,12 @@ L_next: mes "She looks at you impassively."; next; menu - "Who are you?", -, + "Who are you?", L_Next, "What's your name?", L_intro_name, "Hello! My name is " + strcharinfo(0) + ".", L_intro_givename, "Goodbye.", L_close; + +L_Next: mes "[Witch]"; mes "\"I am what you humans call a witch. I am a human who has chosen all living creatures as what you call family.\""; next; @@ -120,7 +125,6 @@ L_next: "No, I mean... what's your name?", L_intro_name, "Hello! My name is " + strcharinfo(0) + ".", L_intro_givename, "Uh.... goodbye.", L_close; - close; L_hat_attack: mes "The witch seems to be trembling with disgust as she stares at your headgear."; @@ -151,8 +155,7 @@ L_intro_givename: next; menu "What's yours?", L_intro_name, - "Uhm... bye.", -; - close; + "Uhm... bye.", L_close; L_evil: mes "The witch's eyes flare up in anger as she notices you, and she turns away from you."; @@ -173,6 +176,7 @@ L_wb: if (@good == 0) mes "Sagatha glances at you, suspicion evident in her eyes."; next; + goto L_main; L_main: if (@Q_status) @@ -181,13 +185,12 @@ L_main: "Can you teach me more magic?", L_teach, "What do you know about...", L_Question, "Goodbye.", L_close; - if (!@Q_status) + //else menu "Can you explain magic to me?", L_explain_magic, "Can you teach me magic?", L_teach_initial, "What do you know about...", L_Question, "Goodbye.", L_close; - close; L_teach_initial: if (@good < 2) |