The Black Wyrm Lair Forums
The Black Wyrm's Lair Terms of Use Help Search Members Calendar

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> I_C_T versus I_C_T2, Questions, questions...
Moongaze
post Aug 12 2008, 01:48 PM
Post #1





Forum Member
Posts: 467
Joined: 23-February 05
From: My den




I'm going to try interjection coding sooner or later, and I have a question regarding that.
When I first tried to in my Wikaede mod, I found that simply interjecting using INTERJECT_COPY_TRANS works fine in some cases, but in other cases (such as Lieutenant Aegisfield upon first meeting) it messes up the dialogue and the actions that follow, (in this case, it prevented the Tanner Murder quest from starting). In some cases I found a workaround, by adding an extra line where the NPC in question says something back, and then it sometimes works. This, however, doesn't always work, and is an annoying way of getting by.

I've seen multiple NPC mods use INTERJECT_COPY_TRANS2 (or was it INTERJECT_COPY_TRANS_2 ?) ... what is the difference between the two, and would it be best to use the "2" version in a problem mentioned above? If not, what is recommended to ensure that the dialogues work, save not placing any interjections there at all?


--------------------
-Transition into darkness-
Go to the top of the page
 
Quote Post
Sir_Carnifex
post Aug 12 2008, 05:42 PM
Post #2





Retired team member
Posts: 490
Joined: 8-April 08
From: U.S.A




I had that problem at first, too. Halbo was accidentally turned into an abominable creature that was hostile when I used the wrong interject.

Suppose the original character is supposed to DO ~EscapeArea() after saying something and you interject into that section, your NPC will end up taking over that action. However, if you use Interject_Copy_Trans2 you can prevent that from happening.

In general, when a DO action that directly affects a character comes immediately after the dialogue string, you should use ICT2.

Check the WeiDU readme sections on the two for a much more clear explanation.

This post has been edited by Sir_Carnifex: Aug 12 2008, 05:44 PM


--------------------
"Once the game is over, the king and the pawn go back into the same box." - Italian Proverb

"I like criticism, but it must be my way." - Mark Twain

"A positive attitude may not solve all your problems, but it will annoy enough people to make it worth the effort." - Herm Albright
Go to the top of the page
 
Quote Post
Moongaze
post Aug 13 2008, 06:04 AM
Post #3





Forum Member
Posts: 467
Joined: 23-February 05
From: My den




Thanks. I had a hunch it did the trick, but I wasn't sure...


--------------------
-Transition into darkness-
Go to the top of the page
 
Quote Post
jastey
post Aug 13 2008, 06:58 AM
Post #4





Forum Member
Posts: 1366
Joined: 22-August 04
From: Germany




With I_C_T2, you have to be careful if there are multiple actions, meaning different actions for different reply options / conditions, though. In this case, I_C_T2 cannot be used, but I_C_T with a give back line from the original speaker xhould be used.

Example:

In the following, I_C_T2 would be perfect, since every reply option has the same action:

IF ~~ THEN xx
SAY ~I agree.~
++ ~Fine.~ DO ~EscapeArea()~ EXIT
++ ~But I don't.~ DO ~EscapeArea()~ EXIT
END

In the following, I_C_T2 would not work, but screw up the actions of the reply options (it tends to take one of them and put it after all reply options):

IF ~~ THEN xx
SAY ~I agree.~
++ ~Fine.~ DO ~EscapeArea()~ EXIT
++ ~But I don't.~ DO ~Enemy()~ EXIT
END

After a first enthousiasm, I nowadays don't use I_C_T2 at all anymore. The reason is, that, even if the original dialogue state doesn't contain multiple actions, I can never be sure that another mod hasn't added a reply option that contains one. If another mod that was installed before mine added one, my mod would give a warning upon install and screw things up. I am only using I_C_T with a giveback line.

Btw: With I_C_T3, you can add multiple interjections to the same state that have different triggers, which is not possible for I_C_T.
If you want your mod NPC give different comments depending on his state of romance, for example, I_C_T3 is the one to use. The following coded using I_C_T would lead to only the first line being shown, when the conditions are met, the following would never show.

I_C_T3 gamechar X XXvariablename
== ~moddlg~ IF ~(Romanceactive = 0)~ THEN ~text1~
== ~moddlg~ IF ~(Romanceactive = 1)~ THEN ~text2~
== ~moddlg~ IF ~(Romanceactive = 3)~ THEN ~text3~
END
Go to the top of the page
 
Quote Post
Moongaze
post Aug 13 2008, 08:24 AM
Post #5





Forum Member
Posts: 467
Joined: 23-February 05
From: My den




There's a version 3 as well? Great.
Thanks.. I hope I'll be able to get it to work. closedeyes.gif


--------------------
-Transition into darkness-
Go to the top of the page
 
Quote Post
jastey
post Aug 13 2008, 09:16 AM
Post #6





Forum Member
Posts: 1366
Joined: 22-August 04
From: Germany




There is also an I_C_T4, which would be the multiple trigger variation of I_C_T2. I only learned it by reading about it myself:
Re: I_C_T vs I_C_T2 revisited.
.
Go to the top of the page
 
Quote Post
Moongaze
post Aug 13 2008, 01:04 PM
Post #7





Forum Member
Posts: 467
Joined: 23-February 05
From: My den




Hmm, and another...
This is going to be a pain to code correctly...


--------------------
-Transition into darkness-
Go to the top of the page
 
Quote Post
Sir_Carnifex
post Aug 13 2008, 04:53 PM
Post #8





Retired team member
Posts: 490
Joined: 8-April 08
From: U.S.A




Four ICTs??!! blink.gif I think the WeiDU readme needs some updating then.


--------------------
"Once the game is over, the king and the pawn go back into the same box." - Italian Proverb

"I like criticism, but it must be my way." - Mark Twain

"A positive attitude may not solve all your problems, but it will annoy enough people to make it worth the effort." - Herm Albright
Go to the top of the page
 
Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:



- Lo-Fi Version Time is now: 8th November 2024 - 12:07 PM