diff options
author | gumi <mekolat@users.noreply.github.com> | 2016-11-30 12:03:38 -0500 |
---|---|---|
committer | gumi <mekolat@users.noreply.github.com> | 2016-12-03 10:49:18 -0500 |
commit | ada214964dd25f8839f84934432f1be8318daa41 (patch) | |
tree | fffd68e5240214bb98a4eae7a81149ec0214f041 | |
parent | 3744933c8606a6db17d08037afb558a5fb9b8b02 (diff) | |
download | serverdata-ada214964dd25f8839f84934432f1be8318daa41.tar.gz serverdata-ada214964dd25f8839f84934432f1be8318daa41.tar.bz2 serverdata-ada214964dd25f8839f84934432f1be8318daa41.tar.xz serverdata-ada214964dd25f8839f84934432f1be8318daa41.zip |
make Julia (000-2-0) use selectd, move the getq's to the proper place
-rw-r--r-- | npc/000-2-0/julia.txt | 35 |
1 files changed, 17 insertions, 18 deletions
diff --git a/npc/000-2-0/julia.txt b/npc/000-2-0/julia.txt index 53843c25..5ef73a5c 100644 --- a/npc/000-2-0/julia.txt +++ b/npc/000-2-0/julia.txt @@ -239,8 +239,11 @@ function mainMenu { do { - select - rif(debug, menuaction(l("debug"))), + .@q2 = getq(ShipQuests_ChefGado); + .@q3 = getq(ShipQuests_Nard); + .@q4 = getq(General_Narrator); + + selectd rif(.@q3 == 5 && .@q4 < 1, l("What can I do now?")), rif(.@q3 == 3 && .@q2 == 0, l("I heard rumors about some old hostilities between you and Gado. Are they true?")), rif(.@q2 == 2 && countitem(PoisonedDish), l("Well... No wait, I have something for you but you shouldn't eat it... I'm taking it back to the kitchen.")), @@ -254,17 +257,16 @@ switch (@menu) { - case 2: gotoSleep; break; - case 3: heardRumors; break; - case 4: gotRegrets; break; - case 5: poisonJulia; break; - case 6: basicSkill; break; - case 7: chooseLang .@s$; break; - case 8: whereAmI; break; - case 9: whatHappened; break; - case 10: readRules; break; - case 1: QuestDebug0; - case 11: closedialog; end; + case 1: gotoSleep; break; + case 2: heardRumors; break; + case 3: gotRegrets; break; + case 4: poisonJulia; break; + case 5: basicSkill; break; + case 6: chooseLang .@s$; break; + case 7: whereAmI; break; + case 8: whatHappened; break; + case 9: readRules; break; + case 10: closedialog; end; } } while (1); } @@ -275,10 +277,6 @@ mesq l("What do you want today?"); next; - .@q2 = getq(ShipQuests_ChefGado); - .@q3 = getq(ShipQuests_Nard); - .@q4 = getq(General_Narrator); - .@s$ = l("I don't want to change my language, sorry."); mainMenu; OnTouch: @@ -296,11 +294,12 @@ OnTouch: next; mesq lg("Could I ask you what your native language is? A sailor told me you're Russian, but another one told me you're French... I'm a bit lost. I will register you on the ship passenger list just after that."); next; - chooseLang ""; + chooseLang; mainMenu; end; OnInit: .sex = G_FEMALE; .distance = 10; + .quest_debug = ShipQuests_Julia; } |