Author Topic: INTERJECT_COPY_TRANS  (Read 3150 times)

0 Members and 1 Guest are viewing this topic.

Offline Moongaze

  • Level 3
  • ***
  • Posts: 1349
  • Karma: +0/-0
    • View Profile
INTERJECT_COPY_TRANS
« on: June 13, 2005, 09:03:47 AM »
How can I make an NPC interject in an existing dialogue that ends in something like EscapeAreaMove() without adding an extra line?

Quote
== SMUGGLER
~Hmm...I'm smuggling Black Lotus into the city.~
== ALCANDEJ
~Oi, that be illegal. Ah well.~

SMUGGLER does EscapeAreaMove()


(Results in Alcander reacting to EscapeAreaMove(), which is not supposed to happen.)

I add a line...

Quote
== SMUGGLER
~Hmm...I'm smuggling Black Lotus into the city.~
== ALCANDEJ
~Oi, that be illegal. Ah well.~
== SMUGGLER
~So what? Let me pass, wayfarer...~


SMUGGLER does EscapeAreaMove()

...and the smuggler leaves, as he is supposed to.
Is there a way to do this without adding a line?

Offline Zyraen

  • Level 2
  • **
  • Posts: 818
  • Karma: +0/-0
    • MSN Messenger - zyraen@hotmail.com
    • View Profile
INTERJECT_COPY_TRANS
« Reply #1 on: June 13, 2005, 09:57:51 AM »
Not sure how others do it, but I use EXTEND_BOTTOM for such cases.

EXTEND_BOTTOM Smuggler xx
IF ~InParty("Alcander") InMyArea("Alcander") THEN
DO ~EscapeArea()~ EXTERN ALCANDEJ yyyy
END

(in ALCANDEJ)

IF ~~ THEN BEGIN yyyy
~Oi, that be illegal. Ah well.~
IF ~~ THEN EXIT
END
SoAVer
Love between a Law Enforcer and a Fugitive - can such a thing even happen?
SoA Release - Overview / Download Links

Zyraen's Miscellaneous Mods - Ust Natha Accelerator, item tweaks, XP caps and redistribution, and more.

Offline Miss Sakaki

  • Level 2
  • **
  • Posts: 660
  • Karma: +0/-0
  • Gender: Female
    • MSN Messenger - hpowellsmith@hotmail.com
    • View Profile
    • http://www.mods.chosenofmystra.net/nathaniel
INTERJECT_COPY_TRANS
« Reply #2 on: June 13, 2005, 11:46:54 AM »
Is what the smuggler says in the game already? If so, what I use is INTERJECT_COPY_TRANS2, like so...

INTERJECT_COPY_TRANS2 Smuggler xx AlcanderInterjection
== [Alcander's J file name] IF ~IsValidForPartyDialogue("Alcander") THEN
~Oi, that be illegal. Ah well.~
END

That way, the problem where the actions imprint themselves onto the interjector doesn't happen. But it would only be this method if Alcander's interjecting into an existing state.
Would you give a guy a foot massage? If so, maybe you'd like Nathaniel.

What's a little falsehood between friends? The mysteries of The Luxley Family are soon to be unravelled.

Offline Moongaze

  • Level 3
  • ***
  • Posts: 1349
  • Karma: +0/-0
    • View Profile
INTERJECT_COPY_TRANS
« Reply #3 on: June 13, 2005, 12:41:48 PM »
Quote from: "Miss Sakaki"
Is what the smuggler says in the game already? If so, what I use is INTERJECT_COPY_TRANS2, like so...

INTERJECT_COPY_TRANS2 Smuggler xx AlcanderInterjection
== [Alcander's J file name] IF ~IsValidForPartyDialogue("Alcander") THEN
~Oi, that be illegal. Ah well.~
END

That way, the problem where the actions imprint themselves onto the interjector doesn't happen. But it would only be this method if Alcander's interjecting into an existing state.


It's not exactly what the smuggler says, but yes, it's an original Bioware dialogue. AELOTUS.d, I believe. (The shadow thief named Bandon at the City Gates)

Offline Lord Kain

  • Level 3
  • ***
  • Posts: 1095
  • Karma: +0/-0
  • Gender: Male
    • View Profile
    • http://www.fanfiction.net/u/12483/
    • Email
INTERJECT_COPY_TRANS
« Reply #4 on: June 13, 2005, 02:22:04 PM »
When I look at that I realize I will never be able to code a mod.
"Who--who are you?"
"Who? Who is but the form following the function of what... and what I am is a man in a mask."
"I can see that"
"Of course you can. I'm not questioning your powers of observation, I'm merely remarking on the paradox of asking a masked man who he is."

Offline Undertaker

  • Level 5
  • *****
  • Posts: 4097
  • Karma: +26/-39
  • Gender: Male
    • View Profile
    • http://forums.chosenofmystra.net/index.php
INTERJECT_COPY_TRANS
« Reply #5 on: June 13, 2005, 02:25:13 PM »
Quote from: "Lord Kain"
When I look at that I realize I will never be able to code a mod.


Not only you :-( My coding abilities are less then zero (although I've made few Starcraft scenarios but it were simple If:Then scripts)
Evil hidden everywhere
Evil has a chilling stare
Null and void of any care
Is where the answer lies
It does no good to beg or cry
It does no good to question why
It does no good it never dies
Evil never dies

Offline Moongaze

  • Level 3
  • ***
  • Posts: 1349
  • Karma: +0/-0
    • View Profile
INTERJECT_COPY_TRANS
« Reply #6 on: June 13, 2005, 02:28:05 PM »
Coding is a pain. I seriously dislike it. But after a whole lot of practicing, it actually begins to make sense. And that's coming from someone with little to no coding background.

Offline nethrin

  • Retired Modder
  • Level 3
  • *****
  • Posts: 1106
  • Karma: +2/-1
  • Gender: Male
    • MSN Messenger - gilalion@hotmail.com
    • View Profile
    • http://www.gilalion.com
    • Email
INTERJECT_COPY_TRANS
« Reply #7 on: June 13, 2005, 03:46:34 PM »
miss sakaki is right: the I_C_T2 will put the actions back on the character whose lines are being interjected into.
               

Offline Moongaze

  • Level 3
  • ***
  • Posts: 1349
  • Karma: +0/-0
    • View Profile
INTERJECT_COPY_TRANS
« Reply #8 on: June 13, 2005, 11:18:01 PM »
Thanks. I'll use that one, then. :)

Offline Zyraen

  • Level 2
  • **
  • Posts: 818
  • Karma: +0/-0
    • MSN Messenger - zyraen@hotmail.com
    • View Profile
INTERJECT_COPY_TRANS
« Reply #9 on: June 14, 2005, 05:15:24 AM »
Ah, I had no idea that there was an I_C_T2 that Weimer did up according to user feedback! That is a relief to hear :) No more EBs for me!

That being said, the idea of recoding my EBs seems disagreeable, lol.
SoAVer
Love between a Law Enforcer and a Fugitive - can such a thing even happen?
SoA Release - Overview / Download Links

Zyraen's Miscellaneous Mods - Ust Natha Accelerator, item tweaks, XP caps and redistribution, and more.