Pocket-Plane-Group / UnfinishedBusiness

This is a game mod for the game Baldur's Gate 2, which aims to finish dangling plots, clean up loose ends and un-dummy dummied out content.
25 stars 11 forks source link

Valygar's Suna aftertalk needs closing variable #5

Closed Gitjas closed 5 years ago

Gitjas commented 6 years ago

Hi AngelGryph,

the Suna Seni follow-up dialogue in u!suna.d needs a closing of the variable "u!SunaDies", or it triggers every time Valygar is spoken to after the Spellhold incident (and overwriting the PID of the Corthala Romantique mod):

IF ~Global("u!SunaDies","GLOBAL",2)~ THEN BEGIN ValSunaSHBye1 SAY @316 IF ~~ THEN GOTO ValSunaDead END

should be:

IF ~Global("u!SunaDies","GLOBAL",2)~ THEN BEGIN ValSunaSHBye1 SAY @316 IF ~~ THEN DO ~SetGlobal("u!SunaDies","GLOBAL",3)~ GOTO ValSunaDead END

Gitjas commented 6 years ago

Not sure why things in tildas gets written as crossed out, here is another try: `IF ~Global("u!SunaDies","GLOBAL",2)~ THEN BEGIN ValSunaSHBye1 SAY @316 IF ~~ THEN GOTO ValSunaDead END

should be

IF ~Global("u!SunaDies","GLOBAL",2)~ THEN BEGIN ValSunaSHBye1 SAY @316 IF ~~ THEN DO ~SetGlobal("u!SunaDies","GLOBAL",3)~ GOTO ValSunaDead END`

Gitjas commented 6 years ago

OK, I give up - what is the "insert code" tag for if it does the same stupid format changes?

-The crossed out Globals should be in tildas and not crossed out. I guess you get the idea.

i30817 commented 5 years ago

OK, I give up - what is the "insert code" tag for if it does the same stupid format changes?

-The crossed out Globals should be in tildas and not crossed out. I guess you get the idea.

you should use the 'insert code' button after selecting the part of the text that is code to prevent formatting problems like this.

Gitjas commented 5 years ago

I tried:

IF ~Global("u!SunaDies","GLOBAL",2)~ THEN BEGIN ValSunaSHBye1
SAY @316
IF ~~ THEN DO ~SetGlobal("u!SunaDies","GLOBAL",3)~
GOTO ValSunaDead
END
Gitjas commented 5 years ago

Ha! this time it worked, thanks. The last comment shows the fix.