Jump to content


Photo

Interjections


  • Please log in to reply
44 replies to this topic

#41 -Ashara-

-Ashara-
  • Guest

Posted 23 April 2004 - 04:52 AM

You don't need to set the variable as WeiDU will do that for you, albeit using GLOBAL rather than LOCALS.

I never put the .dlg file name in ~~, but I'm not sure if that makes any difference.

For INTERJECT you need to use END (and not EXIT) then the transition (if any).

Sim is correct - we have to use tildas to accomodate underscore.

I tried ENDinstead of EXIT and still get parse near IF in my action line (THEN DO)- not that it helps any in such a short passage.

I need to set variable - because I have Safana's dialogue depending on this one to ocuur, and original Arkushule in BG1 does not have any variables indicating that her dialogue has occured - and yep, I need to go with GLOBAL.

I guess I can solve that with REPLACE and avoid INTERJECT all together, but I really want to know what goes wrong.

Will INTERJECT accept DO functions at all?

#42 CamDawg

CamDawg

    ALL GLORY TO THE HYPNOTOAD

  • Modder
  • 1505 posts

Posted 23 April 2004 - 05:00 AM

The problem is that you've got two IFs in one line. Change this:

== ~_ARKUSH~ IF ~IsValidForPartyDialogue("SAFANA")~ THEN
~Leave me!~
IF ~~ THEN DO ~EscapeArea() SetGlobal("SafArkush5","LOCALS",1)~
EXIT

to this

== ~_ARKUSH~ IF ~IsValidForPartyDialogue("SAFANA")~ THEN
~Leave me!~ DO ~EscapeArea() SetGlobal("SafArkush5","LOCALS",1)~
EXIT

Same for the other block.

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.


#43 Grim Squeaker

Grim Squeaker

    Fallen

  • Member
  • 1018 posts

Posted 23 April 2004 - 05:02 AM

The following should work fine:

INTERJECT ARKUSH 5 SafArkush5
== ~_SAFANJ~ IF ~IsValidForPartyDialogue("SAFANA")~ THEN
~Gypsy who wouldn't take the money? Wait! What did you see?~
== ~_ARKUSH~ IF ~IsValidForPartyDialogue("SAFANA")~ THEN
~Leave me!~
END
IF ~~ THEN DO ~EscapeArea()~ EXIT

INTERJECT ARKUSH 8 SafArkush8
== ~_SAFANJ~ IF ~IsValidForPartyDialogue("SAFANA")~ THEN
~What is it, old woman? What is <CHARNAME>'s fate?~
== ~_ARKUSH~ IF ~IsValidForPartyDialogue("SAFANA")~ THEN
~No names! I don't want to know names! Do not come nearer!~
END
IF ~~ THEN DO ~ActionOverride("Arkushule",Enemy())~ EXIT

Btw shouldn't you be INTERJECTing into ~_ARKUSH~ as opposed to ARKUSH?

e.g. INTERJECT ~_ARKUSH~ 5 SafArkush5

Although I may be being stupid on that last point...
"You alone can make my song take flight..."

#44 -Ashara-

-Ashara-
  • Guest

Posted 23 April 2004 - 05:56 AM

Thank you, I have not thought about IF repeating. Uhm, I better do ActionOverride, perhaps, specifying who will escape area too. :) I'll try tonight. And, yes, the file name will need to be changed as well. Heh, I should take it as a rule not to do modding at 5 am :lol:

Thank you again!

#45 Grim Squeaker

Grim Squeaker

    Fallen

  • Member
  • 1018 posts

Posted 23 April 2004 - 06:04 AM

On the ActionOverride it probably won't necessery as ARKUSH was the last person to talk. But I'd do it just in case.
"You alone can make my song take flight..."