Pocket Plane Group

Miscellany, Inc. => Infinity Engine Modding Q&A => Topic started by: Tess on October 18, 2005, 10:48:01 AM

Title: Quick question on using INTERJECT_COPY_TRANS
Post by: Tess 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
Title: Re: Quick question on using INTERJECT_COPY_TRANS
Post by: CamDawg 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.
Title: Re: Quick question on using INTERJECT_COPY_TRANS
Post by: Tess on October 18, 2005, 11:12:13 AM
Wonderful!  That's what I suspected--thank you!

Tess
Title: Re: Quick question on using INTERJECT_COPY_TRANS
Post by: jcompton 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.