Hi hi!
I have this function
It makes the event id `evid` to face up.
It works when I call it from a script, but I also need to call it from a movement route script, and when I do, it fails silently (with no errors).
I call it this way on the move route:
I have this function
JavaScript:
var CropGrowth = function (evid) {
var tur = { code: 36, parameters: [] };
var fix = { code: 35, parameters: [] };
var end = { code: 0, parameters: [] };
var moveRoute={
list:[tur,{code:19,parameters:[]},fix,end], // face up
repeat:false,
skippable:false,
wait:false
};
$gameMap.event(evid).forceMoveRoute(moveRoute);
};
It makes the event id `evid` to face up.
It works when I call it from a script, but I also need to call it from a movement route script, and when I do, it fails silently (with no errors).
I call it this way on the move route:
- CropGrowth(this._eventId);
- $gameMap.event(evid).forceMoveRoute(moveRoute);
- $gameMap._interpreter.event(evid).forceMoveRoute(moveRoute);
- this.forceMoveRoute(moveRoute);