Jump to content


Photo

Adding a reply to an existing dialog


  • Please log in to reply
4 replies to this topic

#1 Konalan

Konalan

    Jamie wants big BOOM!

  • Member
  • 91 posts

Posted 11 February 2009 - 11:47 AM

I've been combing the tutorials for tips on how to do this but I'm still stumped.  What I want to do is add a reply to an existing dialog.  I suspect I will want to use APPEND but from what I gather, that is used for adding whole states to a dialog whereas I want to edit and existing state.

I want to go from this:
IF ~~ THEN BEGIN ExistingDialog
SAY ~stuff~

IF ~~ THEN REPLY ~existing reply1~ GOTO whatever1
IF ~~ THEN REPLY ~existing reply2~ GOTO whatever2
END

To this:
IF ~~ THEN BEGIN ExistingDialog
SAY ~stuff~

IF ~~ THEN REPLY ~existing reply1~ GOTO whatever1
IF ~~ THEN REPLY ~existing reply2~ GOTO whatever2
IF ~~ THEN REPLY ~new reply~ GOTO newstate
END

Edited by Konalan, 11 February 2009 - 11:50 AM.

A compilation of my BG2 mods:
Konalan's Tweaks

#2 Kaeloree

Kaeloree

    Head Molder

  • Administrator
  • 9200 posts

Posted 11 February 2009 - 11:55 AM

EXTEND_BOTTOM DASLAVE1 2
  + ~InParty("Xulaye") InMyArea("Xulaye") !StateCheck("Xulaye",CD_STATE_NOTVALID)~ + ~I have changed my mind.  You will leave for the pits immediately.~ + 4
END
From Xulaye.

Written out:

EXTEND_BOTTOM DIALOGUEFILE STATE
  + ~InParty("Xulaye") InMyArea("Xulaye") !StateCheck("Xulaye",CD_STATE_NOTVALID)~ + ~I have changed my mind.  You will leave for the pits immediately.~ + 4
END
Make sense?

You've got EXTEND_TOP, too--with that you can also specify exactly where you want your option to go by adding "#3" or "#2" after the state reference. I'm not sure how that works for EXTEND_BOTTOM.

#3 Konalan

Konalan

    Jamie wants big BOOM!

  • Member
  • 91 posts

Posted 11 February 2009 - 12:06 PM

Yeah that helps. I'll try it and see what happens. :)
A compilation of my BG2 mods:
Konalan's Tweaks

#4 berelinde

berelinde

    Troublemaker

  • Modder
  • 4916 posts

Posted 11 February 2009 - 12:59 PM

Please, please, oh pretty please do not use EXTEND_TOP. You will break the mods of everyone who is using ADD_TRANS_ACTION for specific transitions.

"Imagination is given to man to console him for what he is not; a sense of humor, for what he is." - Oscar Wilde

berelinde's mods
TolkienAcrossTheWater website
TolkienAcrossTheWater Forum


#5 Kaeloree

Kaeloree

    Head Molder

  • Administrator
  • 9200 posts

Posted 11 February 2009 - 01:08 PM

^ There you go, then. :)