Jump to content


Photo

[solved] Variable does not get set in CHAIN - need help


3 replies to this topic

#1 jastey

jastey
  • Gibberlings
  • 6989 posts
  • Gender:Female

Posted 16 December 2017 - 10:18 AM

Do you see anything wrong with this chain? Because the "DO ~SetGlobal("C#AjantisBG1_RasaadRomanceConflict","GLOBAL",1)~" is not performed in the game (even though I doubled it to get it to work), i.e. "C#AjantisBG1_RasaadRomanceConflict" does not exist after the dialogue run, and the dialogue loops.
 

/* Ajantis - Rasaad romance conflict BG1 */
CHAIN
IF WEIGHT #-1 ~%BGT_VAR% Global("C#AjantisBG1_RasaadRomanceConflict","GLOBAL",0)
GlobalGT("RASAAD_ROMANCE","GLOBAL",0)
Global("X#AjantisRomanceActive","GLOBAL",1)
InParty(Myself)
InParty("rasaad")
See("rasaad")
!StateCheck("rasaad",CD_STATE_NOTVALID)
!StateCheck(Myself,CD_STATE_NOTVALID) CombatCounter(0) !See([ENEMY])~ THEN ~%AJANTIS_BANTER%~ rasaad_romanceconflict
@70 DO ~SetGlobal("C#AjantisBG1_RasaadRomanceConflict","GLOBAL",1)~
== ~%RASAAD_BANTER%~ @71
== ~%AJANTIS_BANTER%~ @72
== ~%RASAAD_BANTER%~ @73
== ~%AJANTIS_BANTER%~ @74 DO ~SetGlobal("C#AjantisBG1_RasaadRomanceConflict","GLOBAL",1)~
EXIT


I'm using this CHAIN structure for xx other banters without any problems. I looked at BAJANT.dlg, and the "DO ~SetGlobal("C#AjantisBG1_RasaadRomanceConflict","GLOBAL",1)~" is in there alright.
- I know Ajantis is jealous, but this much?...


Edited by jastey, 16 December 2017 - 10:58 AM.


#2 CamDawg

CamDawg

    Just a simple country Hyper-Chicken

  • Gibberling Poobah
  • 9373 posts
  • Gender:Not Telling

Posted 16 December 2017 - 10:46 AM

I think your variable name exceeds the 32-character max.


I came here with a simple dream: a dream of killing all humans. And this is how it must end? Who's the real seven billion ton robot monster here? Not I. Not... I.


#3 Jarno Mikkola

Jarno Mikkola

    The Imp

  • Modders
  • 6365 posts
  • Gender:Male
  • Location:The town where the dead haven't keeled over, yet. In Finland.

Posted 16 December 2017 - 10:53 AM

Where's the END ?

Yeah, that's 33 characters long global.


Edited by Jarno Mikkola, 16 December 2017 - 10:55 AM.

Welcome to the sanity, you are free to search for the limit, it's out there, we drew it in the sand.
Here's how to install all the ... mods you ever really could want to Infinity Engine games. I removed the stable word from there as Roxanne began to add BS mods that are likely to break compatibility from the BWS.

#4 jastey

jastey
  • Gibberlings
  • 6989 posts
  • Gender:Female

Posted 16 December 2017 - 10:57 AM

CamDawg: THANK YOU! Yes, that was it. And now I will ponder for the rest of the evening why it didn't occur to me. I spent like over an hour trying to find the reason the variable doesn't get set!...

 

Jarno: In a CHAIN with no transitions or reply options, the end is only an EXIT.





Reply to this topic



  


1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users