Jump to content


Photo

[Repaired] Elminster5 doesn't leave if you have Minsc but not Jaheira


2 replies to this topic

#1 the bigg

the bigg

    The Avatar of F/Ts

  • Awaiting Authorisation
  • 2317 posts
  • Gender:Male
  • Location:Modena (Italy)

Posted 17 May 2010 - 07:15 AM

18-ish of bg1npc/phase2/dlg/x#miint.d:
CHAIN ~%tutu_var%ELMIN5~ X#ElminBoo
@15
== ~%JAHEIRA_JOINED%~ IF ~InParty("jaheira") InMyArea("jaheira") !StateCheck("jaheira",CD_STATE_NOTVALID)~ THEN @16
== ~%tutu_var%ELMIN5~ IF ~InParty("jaheira") InMyArea("jaheira") !StateCheck("jaheira",CD_STATE_NOTVALID)~ THEN @17
== ~%tutu_var%ELMIN5~ @18
== ~%JAHEIRA_JOINED%~ IF ~InParty("jaheira") InMyArea("jaheira") !StateCheck("jaheira",CD_STATE_NOTVALID)~ THEN @19
DO ~ActionOverride("elminster5",EscapeArea())~
END
IF ~~ THEN JOURNAL @20
EXIT

fix (untested):
CHAIN ~%tutu_var%ELMIN5~ X#ElminBoo
@15
== ~%JAHEIRA_JOINED%~ IF ~InParty("jaheira") InMyArea("jaheira") !StateCheck("jaheira",CD_STATE_NOTVALID)~ THEN @16
== ~%tutu_var%ELMIN5~ IF ~InParty("jaheira") InMyArea("jaheira") !StateCheck("jaheira",CD_STATE_NOTVALID)~ THEN @17
== ~%tutu_var%ELMIN5~ @18
== ~%JAHEIRA_JOINED%~ IF ~InParty("jaheira") InMyArea("jaheira") !StateCheck("jaheira",CD_STATE_NOTVALID)~ THEN @19
END
IF ~~ THEN JOURNAL @20 DO ~ActionOverride("elminster5",EscapeArea())~
EXIT

In the current state, the DO only appears in Jaheira's subtree; in the fixed version, it's always executed when exiting the dialogue.

Edited by cmorgan, 17 September 2011 - 11:22 AM.

Italian users: help test the Stivan NPC!

Author or Co-Author: WeiDU - Widescreen - Generalized Biffing - Refinements - TB#Tweaks - IWD2Tweaks - TB#Characters - Traify Tool - Some mods that I won't mention in public
Maintainer: Semi-Multi Clerics - Nalia Mod - Nvidia Fix
Code dumps: Detect custom secondary types - Stutter Investigator

If possible, send diffs, translations and other contributions using Git.

#2 cmorgan

cmorgan

    journeyman investigator

  • Gibberlings
  • 6910 posts
  • Gender:Male
  • Location:Glencoe, IL, USA

Posted 17 May 2010 - 10:51 AM

Thanks - and that gives me some more stuff to check for. I was wondering why I started coding all my CHAIN stuff with

CHAIN ~NPC1~ statename
~text~
== ~NPC2~ IF ~InParty("NPC2") InMyArea("NPC2") !StateCheck("NPC2",CD_STATE_NOTVALID)~ THEN ~text~
== ~NPC3~ IF ~InParty("NPC3") InMyArea("NPC3") !StateCheck("NPC3",CD_STATE_NOTVALID)~ THEN ~text~
== ~NPC1~ IF ~InParty("NPC1") InMyArea("NPC1") !StateCheck("NPC1",CD_STATE_NOTVALID)~ THEN ~text~
== ~NPC2~ IF ~InParty("NPC2") InMyArea("NPC2") !StateCheck("NPC2",CD_STATE_NOTVALID)~ THEN ~text~
END
IF ~~ THEN DO ~everything_we_want_to_do_for_everyone~
EXIT
I love deadlines. I love the whooshing noise they make as they go by. - Douglas Adams

#3 cmorgan

cmorgan

    journeyman investigator

  • Gibberlings
  • 6910 posts
  • Gender:Male
  • Location:Glencoe, IL, USA

Posted 17 September 2011 - 11:21 AM

confirmed repaired v19 09.17.2011
I love deadlines. I love the whooshing noise they make as they go by. - Douglas Adams



Reply to this topic



  


0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users