BEGIN ~Test~ IF ~Global("TEST1","GLOBAL",0)~ THEN BEGIN T1 SAY ~Test1~ IF ~~ THEN EXIT END IF ~!Global("TEST1","GLOBAL",0)~ THEN BEGIN T2 SAY ~Test2~ IF ~~ THEN EXIT END IF WEIGHT #0 ~Global("TEST2","GLOBAL",1)~ THEN BEGIN T3 SAY ~Test3~ IF ~~ THEN EXIT END
Unfortunately it seems not to work regardless of the weight (Iīve tried -999, -1, 0, 1 and many more).
Looking at the dlg file with InfExplorer, decompiling it with WeiDU again (or playing the dialogue with BG2) there are no weights:
BEGIN ~TEST~ IF ~Global("TEST1","GLOBAL",0)~ THEN BEGIN 0 // from: SAY #78411 /* ~Test1~ */ IF ~~ THEN EXIT END IF ~!Global("TEST1","GLOBAL",0)~ THEN BEGIN 1 // from: SAY #78412 /* ~Test2~ */ IF ~~ THEN EXIT END IF ~Global("TEST2","GLOBAL",1)~ THEN BEGIN 2 // from: SAY #78413 /* ~Test3~ */ IF ~~ THEN EXIT END
Of course I could write the dialogue without weights but using weights would make it much more simple.
Is it a bug in WeiDU,have I misunderstood the usage of weights or is there something wrong in my d file?