- Joined
- May 16, 2012
- Messages
- 71
- Reaction score
- 25
- First Language
- English
- Primarily Uses
I forgot to add to the title but this is for VX.
Hey everybody recently my ABS has been causing me a slight issue, but I think there's a way around it.
You see, my enemies are evented, and I'm trying to do a thing where the enemy walks on a custom route, and if he sees you he uses a skill which raises the alarms SFX and all that jazz at this point he's supposed to start a random move route and load a new "enemy" which is basically just a new skillset.
Long story short, the event page obviously flips - the npc walks randomly, however the new skillset does not load.
I've found using this script command will in fact make the skillset load:
$game_map.setup($game_map.map_id)$game_player.moveto($game_player.x,$game_player.y)$scene = Scene_Map.newThe problem then arises that the sprite moves back to it's initial place on the map, which looks stupid as heck. I want to retain it's position with something like:
$game_map.events[evID].moveto(x, y)
Where x and y would be determined by variables :s I only have a couple maps where I need to do this, and never more than 3 events per map so I need to be able to target them by ID as well - I got that little bit above from an XP forum so I dunno if it even works. Regardless I need it to check for variables rather than put it in set coordinates.
Hey everybody recently my ABS has been causing me a slight issue, but I think there's a way around it.
You see, my enemies are evented, and I'm trying to do a thing where the enemy walks on a custom route, and if he sees you he uses a skill which raises the alarms SFX and all that jazz at this point he's supposed to start a random move route and load a new "enemy" which is basically just a new skillset.
Long story short, the event page obviously flips - the npc walks randomly, however the new skillset does not load.
I've found using this script command will in fact make the skillset load:
$game_map.setup($game_map.map_id)$game_player.moveto($game_player.x,$game_player.y)$scene = Scene_Map.newThe problem then arises that the sprite moves back to it's initial place on the map, which looks stupid as heck. I want to retain it's position with something like:
$game_map.events[evID].moveto(x, y)
Where x and y would be determined by variables :s I only have a couple maps where I need to do this, and never more than 3 events per map so I need to be able to target them by ID as well - I got that little bit above from an XP forum so I dunno if it even works. Regardless I need it to check for variables rather than put it in set coordinates.
Last edited by a moderator:

