◆Script:if ($gameVariables.value(5) && $gameVariables.value(6) === $gameVariables.value(8) && $gameVariables.value(9))
{
$gameSwitches.setValue(3,true);
}
I am trying to get the XY coordinates of one event to compare to another, and if they are true have my 3rd switch turn on.
So far when the events match coordinates in game nothing happens. They just continue on the current path.
I have some coding experience but the engined is still new to me.
Edit: The goal is to coral an animal event into a stable. When it collides with the other event it is to walk into the stable.
I have it all working from common events. I'll post pics when my capture app is working.
{
$gameSwitches.setValue(3,true);
}
I am trying to get the XY coordinates of one event to compare to another, and if they are true have my 3rd switch turn on.
So far when the events match coordinates in game nothing happens. They just continue on the current path.
I have some coding experience but the engined is still new to me.
Edit: The goal is to coral an animal event into a stable. When it collides with the other event it is to walk into the stable.
I have it all working from common events. I'll post pics when my capture app is working.