Interjections
#1
Posted 31 October 2004 - 11:32 AM
Phenalope - When you just need a hug or a hamstring cut. A Baldur's Gate 2 NPC Friendship Mod. Because not everyone wants to get into your heroic britches.
"I was like a poor sinner who'd just found out he'd got to heaven after all."
~ Preacher
#2
Posted 31 October 2004 - 11:50 AM
INTERJECT_COPY_TRANS TOLGER 75 AquaTolger == AQUALUNJ IF ~IsValidForPartyDialogue("Aqualung")~ THEN ~Hey, that's a really crummy offer! Where did those little girls go? I could be sitting on a park bench, I don't need this aggravation! Who are you, anyway?~ == TOLGER IF ~IsValidForPartyDialogue("Aqualung")~ THEN ~You poor old sod, you see it's only me. Now, did anyone else have a smart remark they wanted to make?~ ENDFirstly, you should in almost all cases use INTERJECT_COPY_TRANS, except the rare occasions when you really need a plain INTERJECT.
TOLGER is the dialogue-file you wish to interject in.
75 is the state after which you want the following string to be shown. You can look up the states with Infinity Explorer, the program I find best to look up states with.
AquaTolger is the name of the interjection. It can be anything.
Then, we have the interjection itself. Don't forget the IF ~IsValidForPartyDialogue("[interjecter]")~!
After that, we have the response.
Lastly, we have an END which ends the interjection and the next state of the original dialogue is triggered.
Khadion NPC mod - Team leader, head designer
Hubelpot NPC mod - Team leader, coder
NPC Damage - Coder
PC Soundsets - Coder, voice actor
Brythe NPC mod - Designer
DragonLance TC - Glory of Istar - Designer
The NPC Interaction Expansion Project - Writer for Cernd, Sarevok
The Jerry Zinger Show - Producer
Iron Modder 5 - Winner
#3
Posted 31 October 2004 - 12:08 PM
Phenalope - When you just need a hug or a hamstring cut. A Baldur's Gate 2 NPC Friendship Mod. Because not everyone wants to get into your heroic britches.
"I was like a poor sinner who'd just found out he'd got to heaven after all."
~ Preacher
#4
Posted 31 October 2004 - 01:01 PM
Khadion NPC mod - Team leader, head designer
Hubelpot NPC mod - Team leader, coder
NPC Damage - Coder
PC Soundsets - Coder, voice actor
Brythe NPC mod - Designer
DragonLance TC - Glory of Istar - Designer
The NPC Interaction Expansion Project - Writer for Cernd, Sarevok
The Jerry Zinger Show - Producer
Iron Modder 5 - Winner
#5
Posted 01 November 2004 - 08:38 AM
AquaTolger is the name of the interjection. It can be anything.
...with a caveat. State names in d coding are generally irrelevant as WeiDU converts thm all to numbers for compilation. However, I_C_T is another matter as it adds a global variable check to the transition and a global variable set to the transition action list. In SC's example, the transition is predicated on Global("AquaTolger","GLOBAL,0) and following the transition will SetGlobal("AquaTolger","GLOBAL,1) so you should follow the usual prefixing etiquette to avoid conflicts.
Then, we have the interjection itself. Don't forget the IF ~IsValidForPartyDialogue("[interjecter]")~!
It's a personal preference, but I would suggest avoiding IVFPD like the plague as it's broken. Try using an InParty, See, StateCheck combo.
Why is this Hypnotoad video so popu... ALL GLORY TO THE HYPNOTOAD.
____
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.
#6
Posted 01 November 2004 - 09:29 AM
Khadion NPC mod - Team leader, head designer
Hubelpot NPC mod - Team leader, coder
NPC Damage - Coder
PC Soundsets - Coder, voice actor
Brythe NPC mod - Designer
DragonLance TC - Glory of Istar - Designer
The NPC Interaction Expansion Project - Writer for Cernd, Sarevok
The Jerry Zinger Show - Producer
Iron Modder 5 - Winner
#7 -Ashara-
Posted 01 November 2004 - 10:35 AM
The best way I know (and the one I still do not like because it is destructive) for doing interjections after a PC responce is to use a combination of
A_T_T (ADD_TRANSACTION_TRIGGER) to the whole block of replies:
A_T_T ~!InParty("MyNewNPC")~
and then
do EXTEND_BOTTOM
command on that whole block adding a copy of PC's replies and EXTERN into NPC reaction on the one you'd like to have NPC comment upon.
Edited by domi, 01 November 2004 - 10:36 AM.
#8
Posted 01 November 2004 - 10:36 AM
how come you always look so damn cool in every photo I see you in?!?
Speaking of modding, I listened to IER 3 yesterday, so you can have another quote for your signature: how come you sound so damn cool, as well as look it? It's unfair. Seriously.
Still a cyberjock, still hacking the matrix, still unsure of what that means.
TeamBG member - http://www.teambg.eu
#9
Posted 01 November 2004 - 10:51 AM
Why is this Hypnotoad video so popu... ALL GLORY TO THE HYPNOTOAD.
____
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.
#10 -Ashara-
Posted 01 November 2004 - 11:50 AM
#11
Posted 07 November 2004 - 06:36 AM
Seif
how come you always look so damn cool in every photo I see you in?!?
Speaking of modding, I listened to IER 3 yesterday, so you can have another quote for your signature: how come you sound so damn cool, as well as look it? It's unfair. Seriously.
Still a cyberjock, still hacking the matrix, still unsure of what that means.
TeamBG member - http://www.teambg.eu