From ffdd6b6345e32983c86041d3e1cf6f3252e2bba0 Mon Sep 17 00:00:00 2001 From: Jessica Tölke Date: Sat, 4 Jun 2011 21:27:22 +0200 Subject: using flag to indicate the tutorial is done and adding behaviour according to that to all tut-npcs --- npc/042-2/sorfina.txt | 15 ++++++++++++--- npc/042-2/tanisha.txt | 6 ++++++ 2 files changed, 18 insertions(+), 3 deletions(-) (limited to 'npc/042-2') diff --git a/npc/042-2/sorfina.txt b/npc/042-2/sorfina.txt index ab5dd9f5..67ae1a87 100644 --- a/npc/042-2/sorfina.txt +++ b/npc/042-2/sorfina.txt @@ -1,5 +1,6 @@ 042-2.gat,28,26,0 script Sorfina 154,{ + if (FLAGS & FLAG_TUTORIAL_DONE) goto L_Tut_Done; if (sorfina == 2) goto L_Again; if (sorfina == 1) goto L_Clothes; @@ -194,7 +195,16 @@ L_SkipTut: "Yeah, but thanks for the offer. Bye",-; mes "[Sorfina]"; mes "\"If you think so. Good luck.\""; - //TODO:set flag + set hasan, 0; + set kaan, 0; + set sorfina, 0; + set tanisha, 0; + set FLAGS, FLAGS | FLAG_TUTORIAL_DONE; + close; + +L_Tut_Done: + mes "[Sorfina]"; + mes "\"Welcome. Please make yourself at home.\""; close; L_Close: @@ -202,8 +212,7 @@ L_Close: } 042-2.gat,45,31,0 script #DoorOut 127,2,2,{ -//TODO: check also flag for having finished the tutorial - if (sorfina < 2) goto L_Block; + if ((sorfina < 2) && !(FLAGS & FLAG_TUTORIAL_DONE)) goto L_Block; warp "042-1.gat", 62, 63; end; L_Block: diff --git a/npc/042-2/tanisha.txt b/npc/042-2/tanisha.txt index 8db46057..9ede30e3 100644 --- a/npc/042-2/tanisha.txt +++ b/npc/042-2/tanisha.txt @@ -1,6 +1,7 @@ //TODO: remove knife from beginning items 042-2.gat,37,90,0 script Tanisha 114,{ + if (FLAGS & FLAG_TUTORIAL_DONE) goto L_Tut_Done; if (tanisha == 3) goto L_Again; if (tanisha == 2) goto L_Stats; if (tanisha == 1) goto L_Maggots; @@ -156,6 +157,11 @@ L_Blocked: mes "\"Oh, someone else is already in there. Let's wait a short while.\""; close; +L_Tut_Done: + mes "[Tanisha]"; + mes "\"This yucky maggots! They're eating our goods!\""; + close; + OnTimer1000: setnpctimer 0; if (getareausers("042-2.gat", 29, 85, 36, 90) < 1) -- cgit v1.2.3-60-g2f50