I've been trying to make something where an Actor attacks a target automatically, with the specific target determined by a variable. However, I can't figure out how to actually make that work.
I tried doing
(all these numbers are just examples by the way, none are the number that would actually be used in the finished version), but that just didn't do anything.
An acquaintance of mine who is a fairly skilled RPG Maker VX Ace script maker told me almost explicitly that this was how it worked, but it just doesn't. The only difference between my test and his example is the number for the action performed and variable that tells the game what enemy to target. Does anybody know how to actually make it work?
Edit: Nevermind, it just interacted wonkily with 'end of turn' troop events.
I tried doing
Code:
$game_actors[1].force_action(335,$game_variables[221])
An acquaintance of mine who is a fairly skilled RPG Maker VX Ace script maker told me almost explicitly that this was how it worked, but it just doesn't. The only difference between my test and his example is the number for the action performed and variable that tells the game what enemy to target. Does anybody know how to actually make it work?
Edit: Nevermind, it just interacted wonkily with 'end of turn' troop events.