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 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) (limited to 'npc/042-2/sorfina.txt') 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: -- cgit v1.2.3-60-g2f50