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

BEGIN ~ELKART~
//////////////////////////////////////////////////
// WARNING: this file contains non-trivial WEIGHTs
//////////////////////////////////////////////////

IF WEIGHT #1 /* Triggers after states #: 2 even though they appear after this state */
~  !GlobalTimerNotExpired("Ransom","GLOBAL")
Global("RescuedSkie","GLOBAL",1)
~ THEN BEGIN 0 // from:
  SAY #17325 /* ~I see that you're here prompt for your ransom money. I hope you don't think you'll get away with this forever!~ */
  IF ~~ THEN DO ~GiveGoldForce(1000)
IncrementGlobal("RansomTaken","GLOBAL",1)
SetGlobalTimer("Ransom","GLOBAL",TWO_DAYS)
~ EXIT
END

IF WEIGHT #3 /* Triggers after states #: 2 3 even though they appear after this state */
~  True()
~ THEN BEGIN 1 // from:
  SAY #17326 /* ~Get out of my face.~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #0 ~  Global("RansomTaken","GLOBAL",8)
~ THEN BEGIN 2 // from:
  SAY #17327 /* ~You foolish little prigs, you've become way too predictable. HEY! They're all here ripe for the slaughter!~ */
  IF ~~ THEN DO ~CreateCreature("FLAME",[0.0],S)
CreateCreature("FLAME",[0.0],S)
CreateCreature("FLAME",[0.0],S)
CreateCreature("FLAME",[0.0],S)
CreateCreature("FLAME",[0.0],S)
CreateCreature("FLAME",[0.0],S)
EscapeArea()
~ EXIT
END

IF WEIGHT #2 ~  GlobalTimerNotExpired("Ransom","GLOBAL")
GlobalGT("RansomTaken","GLOBAL",0)
~ THEN BEGIN 3 // from:
  SAY #17546 /* ~You're a little early. Come back later and you'll get your damn blood money!~ */
  IF ~~ THEN EXIT
END
