I want to script in an alignment check for my NPC romance. I have it check for alignment when setting the RA to 1 in the first place, but if the PC's alignment changes for any reason, I want the romance to end. The question is, how can I do this without causing the infamous stutter bug? Will the following code, placed in the NPC's .baf, work?
IF
!Alignment(Player1,MASK_GOOD)
OR(2)
Global("TsujathaRomanceActive","GLOBAL",1)
Global("TsujathaRomanceActive","GLOBAL",2)
THEN
RESPONSE #100
DO ~SetGlobal("TsujathaRomanceActive","GLOBAL",3)
END
Thanks!
Sillara

alignment checks
Started by Sillara, Aug 16 2004 02:49 AM
4 replies to this topic
#2
Posted 16 August 2004 - 04:49 AM
It should work... if this block is triggered the variable is set to 3 and this ensures that the script is proceeded just once (it runs just for values 1 or 2).
#4
Posted 16 August 2004 - 07:24 AM
Actually, that won't work exactly as typed.
Will not work in BAF files. Use just
DO ~SetGlobal("TsujathaRomanceActive","GLOBAL",3)
Will not work in BAF files. Use just
SetGlobal("TsujathaRomanceActive","GLOBAL",3)if you want to make the romance only PC's that are not good-aligned.
Home of Kitanya, Improved Asylum, more...
