Author Topic: Quick question on using INTERJECT_COPY_TRANS  (Read 899 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 question on using INTERJECT_COPY_TRANS
« on: October 18, 2005, 10:48:01 AM »
When I'm using INTERJECT_COPY_TRANS, do I need to code it to change the state so that the interjection can't happen again, in the case of a multiple install or whatnot?  Or, if I'm understanding correctly, does the very nature of the command and the copying of the existing states and transitions and whatnot render this unnecessary?

I'm working off some examples and the WeIDU documentation right now and while it's made clear that this needs to be done when using INTERJECT, it isn't mentioned for INTERJECT_COPY_TRANS.

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 CamDawg

  • Infidel
  • Planewalker
  • *****
  • Posts: 859
  • Dreaming of a red Xmas
    • The Gibberlings Three
Re: Quick question on using INTERJECT_COPY_TRANS
« Reply #1 on: October 18, 2005, 10:59:05 AM »
I_C_T sets and checks for a global variable. WeiDU adds this automatically--the global has the same name as your I_C_T state--so you shouldn't have to worry about adding a 'no repeat' check. Try compiling some I_C_T .d code and look at the resulting dialogue.
The Gibberlings Three - Home of IE Mods

The BG2 Fixpack - All the fixes of Baldurdash, plus a few hundred more. Now available, with more fixes being added in every release.

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 question on using INTERJECT_COPY_TRANS
« Reply #2 on: October 18, 2005, 11:12:13 AM »
Wonderful!  That's what I suspected--thank you!

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 jcompton

  • Niche Exploiter
  • Administrator
  • Planewalker
  • *****
  • Posts: 7246
Re: Quick question on using INTERJECT_COPY_TRANS
« Reply #3 on: October 18, 2005, 11:15:10 AM »
The implications of that being:

- Unlike a regular state label, you _can_ re-use an I_C_T(2) "label."

- However, doing so has implications--namely, that once an interjection with the label is used, the global will be tripped, so none of the other interjections using that label can be seen. This can, potentially, be used to your advantage.
Cespenar says, "Kelsey and friends be at the Pocket Plane? Ohhh yesssss!" http://www.pocketplane.net

 

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