// creator  : weidu.exe (version 23600)
// argument : ALBERT.DLG
// game     : .
// source   : ./override/ALBERT.DLG
// dialog   : lang\en_us/dialog.tlk
// dialogF  : (none)

BEGIN ~ALBERT~

IF ~  NumberOfTimesTalkedTo(0)
~ THEN BEGIN 0 // from:
  SAY #6150 /* ~Here, wittle doggie. Aww, why won't you come home?~ */
  IF ~~ THEN DO ~CreateCreature("RUFIE",[3803.695],S)
~ GOTO 1
END

IF ~~ THEN BEGIN 1 // from: 0.0
  SAY #6475 /* ~ 'Scuse me. I ever so sowwy to bother, but could you help me? I've lost my little dog and I can't find him. He's probably ever so scared wight now.~ */
  IF ~~ THEN REPLY #6476 /* ~Sorry child, but I have little time for such a trifling matter. Find your doggie yourself. And quit your bawling.~ */ GOTO 4
  IF ~~ THEN REPLY #6477 /* ~Have you no parents here to help thee? It's dangerous to be out alone.~ */ GOTO 2
  IF ~~ THEN REPLY #6478 /* ~Certainly, little one. I would be glad to aid you. How will I recognize him?~ */ GOTO 5
  IF ~Global("X#FATBWTD","GLOBAL",0)
InParty("faldorn")
InMyArea("faldorn")
!StateCheck("faldorn",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#FATBWTD","GLOBAL",1)~ EXTERN ~FALDOJ~ 90
END

IF ~~ THEN BEGIN 2 // from: 9.1 1.1
  SAY #6479 /* ~Parents? Yes, I'm here with some relatives, but they're away for a moment and I'm lost. We are thinking of moving here some day, but I don't know my way around yet. I can get home okay, but I just gotta get Rufie back. Please, could you help?~ */
  IF ~~ THEN REPLY #6480 /* ~Sorry, child, but I have little time for such a trifling matter. Find your doggie yourself. And quit your bawling.~ */ GOTO 4
  IF ~~ THEN REPLY #6481 /* ~Certainly, little one, I would be glad to aid you. How will I recognize him?~ */ GOTO 5
  IF ~~ THEN REPLY #6482 /* ~This Rufie, is he valuable?~ */ GOTO 3
END

IF ~~ THEN BEGIN 3 // from: 2.2
  SAY #6483 /* ~I have no money to give you, if that is what you mean. We use different moneys at home. Please, could you get him? He's all alone here.~ */
  IF ~~ THEN REPLY #6494 /* ~Sorry, child, but I have little time for such a trifling matter. Find your doggie yourself. And quit your bawling.~ */ GOTO 4
  IF ~~ THEN REPLY #6495 /* ~Certainly little one, I would be glad to aid you. How will I recognize him?~ */ GOTO 5
  IF ~Global("X#VicAlb","GLOBAL",0)
InParty("viconia")
InMyArea("viconia")
!StateCheck("viconia",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#VicAlb","GLOBAL",1)~ EXTERN ~VICONJ~ 81
END

IF ~~ THEN BEGIN 4 // from: 9.0 3.0 2.0 1.0
  SAY #6497 /* ~But as you will. I guess I will have to wait for Rufie to show on his own. It's so dangerous out, I hope he's safe.~ */
  IF ~~ THEN UNSOLVED_JOURNAL #26816 /* ~Albert and His Dog
I have met a child named Albert who wished me to find his dog. I have no time for such paltry pursuits.~ */ EXIT
END

IF ~~ THEN BEGIN 5 // from: 9.2 3.1 2.1 1.2
  SAY #6498 /* ~You will? Oh, thank you so vewy much! I just know he'll be all right now! Poor Rufie isn't used to strange places an' people. You're sure to know him when you see him, 'cuz he's just the cutest little thing. Here, take this as well. His favorite chew toy, it is. He'll know you're a friend if you have it in your hands. Thank you so much again!~ */
  IF ~~ THEN DO ~EraseJournalEntry(26816)
GiveItemCreate("MISC63",LastTalkedToBy,0,0,0)
SetGlobal("Rufie","GLOBAL",1)
~ UNSOLVED_JOURNAL #26817 /* ~Albert and His Dog
A boy named Albert has lost his dog, Rufie, outside of Nashkel. With Rufie's chew toy in hand, I may be able to lure the dog back to his master.~ */ EXIT
END

IF ~  Global("Rufie","GLOBAL",1)
~ THEN BEGIN 6 // from:
  SAY #6499 /* ~Please keep looking for little Rufie. He's probably sooo scared right now.~ */
  IF ~~ THEN EXIT
END

IF ~  Global("Rufie","GLOBAL",2)
!Dead("Rufie")
~ THEN BEGIN 7 // from:
  SAY #6500 /* ~RUFIE! Who's a fuzzy Rufie? Whoooooo's a fuzzy little guy? Thank you just ever so much! I better take this lost little puppy home right away. Here, take this. It's another of his chew things, but we can get more where we're going. Thanks again.~ */
  IF ~~ THEN DO ~TakePartyItem("MISC63")
GiveItemCreate("MISC38",LastTalkedToBy,0,0,0)
SetGlobal("Rufie","GLOBAL",3)
AddexperienceParty(1000)
EraseJournalEntry(26817)
EraseJournalEntry(26816)
ClearAllActions()
StartCutSceneMode()
StartCutScene("Rufcut01")
~ SOLVED_JOURNAL #26818 /* ~Albert and His Dog
I, um... rescued "little" Rufie and returned him to the... child... named Albert. I do not wish to know where they went. With luck, I will never find out.~ */ EXIT
END

IF ~  Dead("Rufie")
~ THEN BEGIN 8 // from:
  SAY #6502 /* ~You... you killed Rufie! I can smell his blood on you! What kind of monsters would do that to a helpless little puppy?! The clan is not going to be pleased! They were right about you Prime people! I'm not gonna trust your kind no more!~ */
  IF ~~ THEN DO ~TakePartyItem("MISC63")
SetGlobal("Rufie","GLOBAL",3)
AddexperienceParty(1200)
EraseJournalEntry(26817)
EraseJournalEntry(26816)
ClearAllActions()
StartCutSceneMode()
StartCutScene("Rufcut02")
~ SOLVED_JOURNAL #26819 /* ~Albert and His Dog
I killed the missing "dog" named Rufie, and have made an enemy of its owner. I really do not wish to know where "little" Albert was from, and I hope never to meet him again.~ */ EXIT
END

IF ~  Global("Rufie","GLOBAL",0)
~ THEN BEGIN 9 // from:
  SAY #6503 /* ~Have you changed your mind? Rufie is still lost, and I don't know where.~ */
  IF ~~ THEN REPLY #6504 /* ~Sorry child, but I have little time for such a trifling matter. Find your doggie yourself. And quit your bawling.~ */ GOTO 4
  IF ~~ THEN REPLY #6505 /* ~Have you no parents here to help thee? It's dangerous to be out alone.~ */ GOTO 2
  IF ~~ THEN REPLY #6506 /* ~Certainly, little one, I would be glad to aid you. How will I recognize him?~ */ GOTO 5
END

IF ~  Global("Rufie","GLOBAL",3)
~ THEN BEGIN 10 // from:
  SAY #16479 /* ~Time to go home, Rufie. You'll like the Nine Hells much better than these cold climes.~ */
  IF ~~ THEN EXIT
END
