Author Topic: Quick and most likely idiotic question...  (Read 879 times)

Offline Tess

  • Professional Wallaby
  • Planewalker
  • *****
  • Posts: 26
  • Gender: Female
  • Tess is really just an Idiot in a Manowar shirt.
    • Dace Linton NPC Mod
Quick and most likely idiotic question...
« on: September 21, 2005, 03:38:50 PM »
But I'm stuck at work for the next few hours and don't have any access to example .d files to figure this out for myself.  Even if I did, the amount of my "figuring out" would still be anybody's guess.

So, when you're coding an NPC lovetalk and there are multiple possible NPC SAY's that all trigger the same set of THEN REPLY's, do you have to copy the THEN REPLY's into each different SAY block before going onto the END and other blocks?

Or is each SAY block isolated with a GOTO a block that is then *just* the THEN REPLY block for the various SAY's?

Or, if I'm not being clear--can a block of text be *just* something like this?
IF ~~ THEN BEGIN whatever
IF ~~ THEN REPLY ~whatever response 1
IF ~~ THEN REPLY ~whatever response 2

Or does each block need to have an NPC SAY in order to work properly?  What would happen if the block was just replies?  Would whatever the NPC SAY made show up in the text box stay, and the replies then show up?  Or would there be some sort of break in the logic of the code?

I really hope this question makes sense.  I'm just starting to have these moments of "Aha!" and this is the only thing I'm really stuck on right now.

Thanks!

Tess
Doubt that the Pope art Catholic.  Doubt that bears doth pee in the woods.  Doubt that Snickers art chewy except for the crunchy bits where you hit a peanut.  But never doubt Dace Linton's BGII Mod-In-Progress status.

Offline the bigg

  • The Avatar of Fighter / Thieves
  • Planewalker
  • *****
  • Posts: 3804
  • Gender: Male
Re: Quick and most likely idiotic question...
« Reply #1 on: September 21, 2005, 03:46:14 PM »
No, it's not possible to have a state without a SAY directive.
Author or Co-Author: WeiDU (http://j.mp/bLtjOn) - Widescreen (http://j.mp/aKAiqG) - Generalized Biffing (http://j.mp/aVgw3U) - Refinements (http://j.mp/bLHoCc) - TB#Tweaks (http://j.mp/ba02Eg) - IWD2Tweaks (http://j.mp/98OFYY) - TB#Characters (http://j.mp/ak8J55) - Traify Tool (http://j.mp/g1Ry9A) - Some mods that I won't mention in public
Maintainer: Semi-Multi Clerics (http://j.mp/9UeIwB) - Nalia Mod (http://j.mp/dng9l0) - Nvidia Fix (http://j.mp/aRWjjg)
Code dumps: Detect custom secondary types (http://j.mp/hVzzXG) - Stutter Investigator (http://j.mp/gdtBn8)

If possible, send diffs, translations and other contributions using Git (http://j.mp/aBZFrq).

Offline Tess

  • Professional Wallaby
  • Planewalker
  • *****
  • Posts: 26
  • Gender: Female
  • Tess is really just an Idiot in a Manowar shirt.
    • Dace Linton NPC Mod
Re: Quick and most likely idiotic question...
« Reply #2 on: September 21, 2005, 03:48:50 PM »
Mwhaha!  Thank you, that helps immensely.  So my best bet is to copy the set of replies into each NPC's possible SAY block?
Doubt that the Pope art Catholic.  Doubt that bears doth pee in the woods.  Doubt that Snickers art chewy except for the crunchy bits where you hit a peanut.  But never doubt Dace Linton's BGII Mod-In-Progress status.

Offline the bigg

  • The Avatar of Fighter / Thieves
  • Planewalker
  • *****
  • Posts: 3804
  • Gender: Male
Re: Quick and most likely idiotic question...
« Reply #3 on: September 21, 2005, 04:01:04 PM »
Either that, or redirect all of the states to an intermediate state, which contains all the questions, if you can factor the chat like that.
Author or Co-Author: WeiDU (http://j.mp/bLtjOn) - Widescreen (http://j.mp/aKAiqG) - Generalized Biffing (http://j.mp/aVgw3U) - Refinements (http://j.mp/bLHoCc) - TB#Tweaks (http://j.mp/ba02Eg) - IWD2Tweaks (http://j.mp/98OFYY) - TB#Characters (http://j.mp/ak8J55) - Traify Tool (http://j.mp/g1Ry9A) - Some mods that I won't mention in public
Maintainer: Semi-Multi Clerics (http://j.mp/9UeIwB) - Nalia Mod (http://j.mp/dng9l0) - Nvidia Fix (http://j.mp/aRWjjg)
Code dumps: Detect custom secondary types (http://j.mp/hVzzXG) - Stutter Investigator (http://j.mp/gdtBn8)

If possible, send diffs, translations and other contributions using Git (http://j.mp/aBZFrq).

 

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)?: