Author Topic: Dialogue question  (Read 1553 times)

Offline yato

  • Planewalker
  • *****
  • Posts: 3
Dialogue question
« on: August 12, 2004, 03:46:12 PM »
Hi all,

I've been having some trouble with a flirt I'm trying to write - I posted the relevant part below. It works fine until I get to the point where CHARNAME replies. I can click on each of the reply options, but then the conversation ends abruptly without going to the next stage or showing the reply in the text window. I've probably made a really stupid error somewhere - any help would be really appreciated. :)

Code: [Select]
IF ~IsGabber(Player1)
 CombatCounter(0)
 Global("MyNPCRomanceActive","GLOBAL",1)
 Global("MyNPCFlirtOn","LOCALS",1)
 !AreaCheck("AR2100")
 !AreaCheck("AR2101")
 !AreaCheck("AR2102")
 !AreaCheck("AR2200")
 !AreaCheck("AR2201")
 !AreaCheck("AR2202")
 !AreaCheck("AR2203")
 !AreaCheck("AR2204")
 !AreaCheck("AR2205")
 !AreaCheck("AR2206")
 !AreaCheck("AR2207")
 !AreaCheck("AR2208")
 !AreaCheck("AR2209")
 !AreaCheck("AR2210")
 !AreaCheck("AR2400")
 !AreaCheck("AR2401")
 !AreaCheck("AR2402")~ THEN BEGIN MyNPCFlirtEarly
SAY ~(You look at MyNPC.)~
+ ~RandomNum(4,1)~ + ~(A flirt.)~ DO ~IncrementGlobal("MyNPCFlirtCount","LOCALS",1)~ + flirt1
+ ~RandomNum(4,2)~ + ~(A flirt.)~ DO ~IncrementGlobal("MyNPCFlirtCount","LOCALS",1)~ + flirt2
+ ~RandomNum(4,3)~ + ~(A flirt.)~ DO ~IncrementGlobal("MyNPCFlirtCount","LOCALS",1)~ + flirt3
+ ~RandomNum(4,4)~ + ~(A flirt.)~ DO ~IncrementGlobal("MyNPCFlirtCount","LOCALS",1)~ + flirt4

IF ~~ THEN BEGIN flirt1
  SAY ~blah1~
  = ~blah2~
  ++ ~A reply~ + reply1
  ++ ~Another reply~ + reply2
  ++ ~A third reply~ + reply3
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN reply1
  SAY ~This is me replying 1.~
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN reply2
  SAY ~This is me replying 2.~
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN reply3
  SAY ~This is me replying 3.~
  IF ~~ THEN EXIT
END

Offline jcompton

  • Niche Exploiter
  • Administrator
  • Planewalker
  • *****
  • Posts: 7246
Re: Dialogue question
« Reply #1 on: August 12, 2004, 04:07:02 PM »
Hi all,

I've been having some trouble with a flirt I'm trying to write - I posted the relevant part below. It works fine until I get to the point where CHARNAME replies. I can click on each of the reply options, but then the conversation ends abruptly without going to the next stage or showing the reply in the text window. I've probably made a really stupid error somewhere - any help would be really appreciated. :)

Well, if this is the only code you've written thus far, the problem is that you don't have a flirt2, 3, or 4 line, so at the moment 75% of the replies do in fact go nowhere. Except it shouldn't compile in that case, either...

It also doesn't appear that the first state has an END to it, either.
Cespenar says, "Kelsey and friends be at the Pocket Plane? Ohhh yesssss!" http://www.pocketplane.net

Offline yato

  • Planewalker
  • *****
  • Posts: 3
Re: Dialogue question
« Reply #2 on: August 12, 2004, 04:37:26 PM »
I've got a flirt2, 3 and 4 in the actual file (and an END to the first state - go me and my copy/paste skills... ::)) but didn't have any problems with them. (They were just simple one-liners, no replies.) My only problem was with flirt1, which just... stopped. It was acting just as if reply1, reply2 and reply3 weren't there, which they clearly are.

Offline jcompton

  • Niche Exploiter
  • Administrator
  • Planewalker
  • *****
  • Posts: 7246
Re: Dialogue question
« Reply #3 on: August 12, 2004, 04:52:55 PM »
Oh. Now I see it.

IF ~~ THEN BEGIN flirt1
  SAY ~blah1~
  = ~blah2~
  ++ ~A reply~ + reply1
  ++ ~Another reply~ + reply2
  ++ ~A third reply~ + reply3
  IF ~~ THEN EXIT
END

The
  IF ~~ THEN EXIT
portion is wrong. Eliminate it.
Cespenar says, "Kelsey and friends be at the Pocket Plane? Ohhh yesssss!" http://www.pocketplane.net

Offline yato

  • Planewalker
  • *****
  • Posts: 3
Re: Dialogue question
« Reply #4 on: August 12, 2004, 05:09:58 PM »
That did it!

Thank you so much. :)

 

With Quick-Reply you can write a post when viewing a topic without loading a new page. You can still use bulletin board code and smileys as you would in a normal post.

Warning: this topic has not been posted in for at least 120 days.
Unless you're sure you want to reply, please consider starting a new topic.

Name: Email:
Verification:
Type the letters shown in the picture
Listen to the letters / Request another image
Type the letters shown in the picture:
What color is grass?:
What is the seventh word in this sentence?:
What is five minus two (use the full word)?: