Script action in dialogs are executed with a delay. Iirc, you need at least two transitions before the variable is updated correctly. However, if you code your mod only for the Enhanced Editions then you can add a
flag to the transition to indicate that it should be executed immediately. It should work for all script actions listed in INSTANT.IDS (and possibly some more).
In your example add the keyword "FLAGS" with the respective numeric value (bit 9 = 512) to the reply entry:
IF ~~ FirstSayBlock
SAY ~Some text~
++ ~Some text~ DO ~IncrementGlobal("SomeGlobalVariable", "GLOBAL", 1)~ FLAGS 512 + SecondSayBlock
END
IF ~~ SecondSayBlock
SAY ~Some text~
IF ~GlobalLT("SomeGlobalVariable", "GLOBAL", 10)~ THEN GOTO ThirdSayBlock
IF ~GlobalGT("SomeGlobalVariable", "GLOBAL", 9)~ THEN GOTO FourthSayBlock
END
Btw, this board has been pretty quiet for some time. I'd suggest to ask about modding-related topics in the
G3 Forums which is more active.