// creator  : weidu.exe (version 23600)
// argument : TTIMOENJ.DLG
// game     : .
// source   : ./DATA/TUTORIAL.BIF
// dialog   : lang\en_us/dialog.tlk
// dialogF  : (none)

BEGIN ~TTIMOENJ~

IF ~  Global("TutorialLesson","GLOBAL",29)
~ THEN BEGIN 0 // from:
  SAY #30089 /* ~So anyway, I'll start with the Pick Pocket ability.~ [TTIMOE91] */
  IF ~~ THEN GOTO 1
END

IF ~~ THEN BEGIN 1 // from: 0.0
  SAY #30090 /* ~To use this ability, you must press the Thieving button on the bottom of the screen. This button obviously won't be there if a Thief is not selected first. The Thieving icon is an eye-mask, which Thieves are occasionally known to wear.~ */
  IF ~~ THEN GOTO 2
END

IF ~~ THEN BEGIN 2 // from: 1.0
  SAY #30092 /* ~Once you've selected the Thieving button, LEFT-CLICK on the person whose pocket you want to pick.~ */
  IF ~~ THEN GOTO 3
END

IF ~~ THEN BEGIN 3 // from: 2.0
  SAY #30094 /* ~To give this a try, attempt to pickpocket a gem from Belt's pocket.~ */
  IF ~~ THEN DO ~GiveItemCreate("TTGEM01","ttbelt",1,0,0)
SetGlobal("TutorialLesson","GLOBAL",30)
SetGlobalTimer("TutorialWait","GLOBAL",15)
ClickLButtonObject(Myself,INSTANT)
~ EXIT
END

IF ~  Global("TutorialLesson","GLOBAL",30)
~ THEN BEGIN 4 // from:
  SAY #30095 /* ~You haven't got the gem yet. What's taking you so long? To use this ability, you must press the Thieving button on the bottom of the screen. Once you've selected the Thieving button, LEFT-CLICK on the person you want to pickpocket. Remember: The Thieving button is represented by an eye-mask icon. Steal the gem from Belt!~ [TTIMOE92] */
  IF ~~ THEN DO ~SetGlobalTimer("TutorialWait","GLOBAL",20)
ClickLButtonObject(Myself,INSTANT)
~ EXIT
END

IF ~  Global("TutorialLesson","GLOBAL",31)
~ THEN BEGIN 5 // from:
  SAY #30097 /* ~Very good! Now I'm going to teach you how to detect and disarm traps.~ [TTIMOE93] */
  IF ~~ THEN GOTO 6
END

IF ~~ THEN BEGIN 6 // from: 5.0
  SAY #30098 /* ~To detect a trap, you must press the Find Traps button on the bottom of your screen. While it's active, any traps in the area that you detect will be highlighted in red. The Find Traps button is represented by an icon of four triangles.~ */
  IF ~~ THEN GOTO 7
END

IF ~~ THEN BEGIN 7 // from: 6.0
  SAY #30099 /* ~When in this mode, the character can move wherever they wish. Any other action, such as attacking or casting a spell, will deactivate the ability.~ */
  IF ~~ THEN GOTO 8
END

IF ~~ THEN BEGIN 8 // from: 7.0
  SAY #30100 /* ~To disarm a trap, you must press the Thieving button. You must then LEFT-CLICK on the red highlighted trap. Watch out! If you fail in disarming the trap, the trap might be sprung.~ */
  IF ~~ THEN GOTO 9
END

IF ~~ THEN BEGIN 9 // from: 8.0
  SAY #30102 /* ~There is a harmless trap on the west side of this room. I want you to detect and disarm it using my skills. Remember, press the Find Traps button to begin searching for traps. This button is represented by an icon of four triangles. It may take several moments for me to find the trap after I begin searching.~ */
  IF ~~ THEN DO ~SetGlobal("TutorialLesson","GLOBAL",32)
SetGlobalTimer("TutorialWait","GLOBAL",25)
ClickLButtonObject(Myself,INSTANT)
~ EXIT
END

IF ~  Global("TutorialLesson","GLOBAL",32)
~ THEN BEGIN 10 // from:
  SAY #30103 /* ~What's taking you so long to disarm the trap?! Hurry up! Remember, to disarm a trap, you must press the Thieving button. You must then LEFT-CLICK on the red highlighted trap. The Thieving button is represented by an eye-mask icon.~ [TTIMOE94] */
  IF ~~ THEN DO ~SetGlobalTimer("TutorialWait","GLOBAL",20)
ClickLButtonObject(Myself,INSTANT)
~ EXIT
END

IF ~  Global("TutorialLesson","GLOBAL",33)
~ THEN BEGIN 11 // from:
  SAY #30105 /* ~Good job! You should also know that when you're in Detect Traps mode, you'll also be able to detect secret doors AND illusions.~ [TTIMOE95] */
  IF ~~ THEN GOTO 12
END

IF ~~ THEN BEGIN 12 // from: 11.0
  SAY #30106 /* ~The next ability you need to learn is the ability to Open Locks. To pick a lock, you must select the Thieving button and then LEFT-CLICK on whatever locked container you want to open. Once again, the Thieving button is represented by an eye-mask icon.~ */
  IF ~~ THEN GOTO 13
END

IF ~~ THEN BEGIN 13 // from: 12.0
  SAY #30108 /* ~There is a locked chest on the west side of this floor. Use my abilities to pick the lock of the chest and steal the gem inside.~ */
  IF ~~ THEN DO ~SetGlobal("TutorialLesson","GLOBAL",34)
SetGlobalTimer("TutorialWait","GLOBAL",20)
ClickLButtonObject(Myself,INSTANT)
~ EXIT
END

IF ~  Global("TutorialLesson","GLOBAL",34)
~ THEN BEGIN 14 // from:
  SAY #30109 /* ~What's taking you so long?! To pick a lock, you must select the Thieving button and then LEFT-CLICK on whatever locked container you want to open. Once again, the Thieving button is represented by an eye-mask icon.~ [TTIMOE96] */
  IF ~~ THEN DO ~SetGlobalTimer("TutorialWait","GLOBAL",20)
ClickLButtonObject(Myself,INSTANT)
~ EXIT
END

IF ~  Global("TutorialLesson","GLOBAL",35)
~ THEN BEGIN 15 // from:
  SAY #30111 /* ~Good job! The next ability I'm going to teach you is one of the most important a Thief can do: the ability to be stealthy.~ [TTIMOE97] */
  IF ~~ THEN GOTO 16
END

IF ~~ THEN BEGIN 16 // from: 15.0
  SAY #30112 /* ~You will notice that at the bottom of the screen is a Stealth button. Simply LEFT-CLICK the button and your character will attempt to "hide in shadows." The Stealth button is represented by a face half in shadows.~ */
  IF ~~ THEN GOTO 17
END

IF ~~ THEN BEGIN 17 // from: 16.0
  SAY #30114 /* ~When in this mode, the character can move wherever they wish. Any other action, such as attacking or casting a spell, will deactivate the ability.~ */
  IF ~~ THEN GOTO 18
END

IF ~~ THEN BEGIN 18 // from: 17.0
  SAY #30115 /* ~I now want you to try and put me into Stealth mode.~ */
  IF ~~ THEN DO ~SetGlobal("TutorialLesson","GLOBAL",36)
SetGlobalTimer("TutorialWait","GLOBAL",15)
ClickLButtonObject(Myself,INSTANT)
~ EXIT
END

IF ~  Global("TutorialLesson","GLOBAL",36)
~ THEN BEGIN 19 // from:
  SAY #30116 /* ~All right! Now that we've finished experimenting with Stealth, let's go to the last Thief ability: the Set Traps skill.~ [TTIMOE98] */
  IF ~~ THEN GOTO 20
END

IF ~~ THEN BEGIN 20 // from: 19.0
  SAY #30117 /* ~To set a trap, you must first access your special abilities. This is done by LEFT-CLICKING the Special Abilities button on the bottom right of your screen. This button has a four-cornered star icon.~ */
  IF ~~ THEN GOTO 21
END

IF ~~ THEN BEGIN 21 // from: 20.0
  SAY #30119 /* ~When you press the Special Abilities button, it should bring up all of your special skills. One of those skills will be marked "Set Snares." Simply press the button and then LEFT-CLICK on the point where you want to set the trap.~ */
  IF ~~ THEN GOTO 22
END

IF ~~ THEN BEGIN 22 // from: 21.0
  SAY #30121 /* ~Try setting a few traps. Belt will start you on the next part of your lesson in a few moments.~ */
  IF ~~ THEN DO ~SetGlobal("TutorialLesson","GLOBAL",37)
SetGlobalTimer("TutorialWait","GLOBAL",15)
~ EXIT
END

IF ~  AreaCheck("TU0018")
Global("Basement","LOCALS",0)
~ THEN BEGIN 23 // from:
  SAY #30122 /* ~There could be traps down here. You should use my skills to find out if there are any. Remember that it takes a moment for the traps to become visible to me.~ [TTIMOE99] */
  IF ~~ THEN DO ~SetGlobal("Basement","LOCALS",1)
~ EXIT
END

IF ~  PartyHasItem("ttpot")
Global("GotPotion","LOCALS",0)
~ THEN BEGIN 24 // from:
  SAY #30123 /* ~This is a potion of extra healing. To use a potion, simply RIGHT-CLICK on it, and then press "Drink." You can also place your potion in your Quick Item slot and use it from there.~ [TTIMOEA1] */
  IF ~~ THEN DO ~SetGlobal("GotPotion","LOCALS",1)
~ EXIT
END

IF ~  HPPercentLT(Myself,50)
Global("Hurt","LOCALS",0)
AreaCheck("TU0018")
~ THEN BEGIN 25 // from:
  SAY #30125 /* ~I'm kinda wounded. You should use Branwen's Cure Wounds spells to heal me.~ [TTIMOEA2] */
  IF ~~ THEN DO ~SetGlobal("Hurt","LOCALS",1)
~ EXIT
END
