I am trying to do NPC goes away and returns script.
Going away part:
!Global("CoranRomancePath","GLOBAL",7)
Global("CoranMoves","GLOBAL",1)
THEN
RESPONSE #100
SetGlobal("CoranRomancePath","GLOBAL",7)
RealSetGlobalTimer("CoranReturn","GLOBAL",20)
TakePartyItem("X#CBABY")
TakePartyItem("X#CBOOK")
TakePartyItem("X#CMILK")
DestroyItem("X#CBABY")
DestroyItem("X#CBOOK")
DestroyItem("X#CMILK")
EscapeAreaMove("FW0103",368,402,2)
END
Works well, Coran goes where he is told to go, but the "move to player part" does not execute.
IF
Global("CoranMoves","GLOBAL",1)
RealGlobalTimerExpired("CoranReturn","GLOBAL")
Global("CoranBack", "GLOBAL",0)
!See(Player1)
THEN
RESPONSE #100
SetGlobal("CoranMoves","GLOBAL",2)
MoveToObject(Player1)
END
IF
Global("CoranMoves","GLOBAL",2)
Global("CoranBack", "GLOBAL",0)
See(Player1)
THEN
RESPONSE #100
SetGlobal("CoranMoves","GLOBAL",3)
SetGlobal("CoranBack", "GLOBAL",1)
Dialogue(Player1)
END
Can someone give me a tip on what's breaking up the MoveToObject?