IF
HP(Myself,1)
Global("ImoenRunning","LOCALS",0)
THEN
RESPONSE #100
SetGlobal("ImoenRunning","LOCALS",1)
StartDialogue("ImoenP",Player1)
END
with the corresponding triggering of IMOENP.dlg. LeaveParty()
Wait(1)
GivePartyAllEquipment()
EscapeArea()