This is a simple Intelligence check in a Weidu dialogue:
IF ~CheckStatGT(Myself,14,INT)~ THEN DO ~SetGlobal("KAZAKER_TEACHES","GLOBAL",1) FadeToColor([0.0],0) Wait(2) AddexperienceParty(200) AdvanceTime(FOUR_HOURS) FadeFromColor([50.0],0) ApplySpellRES("SYSTEM_#",LastTalkedToBy("KAZAKER")) Wait(1) ActionOverride("KAZAKER",Dialogue(LastTalkedToBy("KAZAKER")))~ EXIT
IF ~CheckStatLT(Myself,15,INT)~ THEN DO ~SetGlobal("KAZAKER_TEACHES","GLOBAL",2) FadeToColor([0.0],0) Wait(2) AdvanceTime(ONE_HOUR) FadeFromColor([50.0],0) Wait(1) ActionOverride("KAZAKER",Dialogue(LastTalkedToBy("KAZAKER")))~ EXIT
The first series of actions is supposed to happen if the PC is smart, the second - if less so. There is a problem with executing these series from inside the conversation, and I'd like to know why they fail, but my main question here is why does only the first option ever get selected. Even if I talk to the NPC with a stupid character, they still get the smart outcome. I can see it by the glow in the custom spell. Is it that it's actually the NPC's Intelligence that gets measured? His is 18.
IF ~CheckStatGT(Myself,14,INT)~ THEN DO ~SetGlobal("KAZAKER_TEACHES","GLOBAL",1) FadeToColor([0.0],0) Wait(2) AddexperienceParty(200) AdvanceTime(FOUR_HOURS) FadeFromColor([50.0],0) ApplySpellRES("SYSTEM_#",LastTalkedToBy("KAZAKER")) Wait(1) ActionOverride("KAZAKER",Dialogue(LastTalkedToBy("KAZAKER")))~ EXIT
IF ~CheckStatLT(Myself,15,INT)~ THEN DO ~SetGlobal("KAZAKER_TEACHES","GLOBAL",2) FadeToColor([0.0],0) Wait(2) AdvanceTime(ONE_HOUR) FadeFromColor([50.0],0) Wait(1) ActionOverride("KAZAKER",Dialogue(LastTalkedToBy("KAZAKER")))~ EXIT
The first series of actions is supposed to happen if the PC is smart, the second - if less so. There is a problem with executing these series from inside the conversation, and I'd like to know why they fail, but my main question here is why does only the first option ever get selected. Even if I talk to the NPC with a stupid character, they still get the smart outcome. I can see it by the glow in the custom spell. Is it that it's actually the NPC's Intelligence that gets measured? His is 18.




.jpg)







