(Sorry if i'm posting in the wrong place, not sure if this suits 'Learning JS' better...)
Is there a way to move a >follower< to a certain coordinate?
It's possible to force move routes on them by using:
Since moveRoute.list.push doesn't have any commands for pathfinding (I think), I thought about combining "Game_Character.ROUTE_SCRIPT" with ".moveStraight(this.findDirectionTo(X, Y));"
The problem is: I don't know how. Or if it would even work.
I've also tried: $gamePlayer.followers().follower(0).moveStraight(this.findDirectionTo(X, Y));
But no dice.
I know there are plugins for that, but I'd prefer to use scripting, if possible...
Is there a way to move a >follower< to a certain coordinate?
It's possible to force move routes on them by using:
Code:
var _moveRoute = {"list":[],"repeat":false,"skippable":false,"wait":true};
_moveRoute.list.push({"code":Game_Character.ROUTE_MOVE_LEFT});
_moveRoute.list.push({"code":Game_Character.ROUTE_MOVE_RIGHT});
_moveRoute.list.push({"code":Game_Character.ROUTE_MOVE_UP});
_moveRoute.list.push({"code":Game_Character.ROUTE_MOVE_DOWN});
_moveRoute.list.push({"code":Game_Character.ROUTE_END});
var ev = $gamePlayer.followers().follower(0);
if(ev) {
ev.forceMoveRoute(_moveRoute);
}
Since moveRoute.list.push doesn't have any commands for pathfinding (I think), I thought about combining "Game_Character.ROUTE_SCRIPT" with ".moveStraight(this.findDirectionTo(X, Y));"
The problem is: I don't know how. Or if it would even work.
I've also tried: $gamePlayer.followers().follower(0).moveStraight(this.findDirectionTo(X, Y));
But no dice.
I know there are plugins for that, but I'd prefer to use scripting, if possible...
