I found a little line of code
$game_map.events[evID].moveto(x, y)
this acts like the event command 'set event location', I put it in an event with a conditional branch so that when I pressed a certain button it move an event right next to the hero. This got me thinking, could you make a script that would allow you to call an event from a separate map (or even recreate that event so it doesn't affect the original) to the map the player is currently on by using a line of code similar to that? Something like...
$code_stuffz.events[mapID, evID].moveto($game_map.map_id, x, y)
I'm not that good when it comes to scripting, but I know it can be done. There's a script that does this among all the other scripts in the XAS 3.9.1 Hero Edition (if you've played or seen those scripts in action). That's roughly the idea I want to achieve but can't seem to find the section of those scripts that includes to event calling function. I do however know that the script sets the default map to get the resource events from is the map id 1.
The scripts work really good but it's a lot of extra script that I don't need for my project, if someone out there could help me figure this out it would be much appreciated!
$game_map.events[evID].moveto(x, y)
this acts like the event command 'set event location', I put it in an event with a conditional branch so that when I pressed a certain button it move an event right next to the hero. This got me thinking, could you make a script that would allow you to call an event from a separate map (or even recreate that event so it doesn't affect the original) to the map the player is currently on by using a line of code similar to that? Something like...
$code_stuffz.events[mapID, evID].moveto($game_map.map_id, x, y)
I'm not that good when it comes to scripting, but I know it can be done. There's a script that does this among all the other scripts in the XAS 3.9.1 Hero Edition (if you've played or seen those scripts in action). That's roughly the idea I want to achieve but can't seem to find the section of those scripts that includes to event calling function. I do however know that the script sets the default map to get the resource events from is the map id 1.
The scripts work really good but it's a lot of extra script that I don't need for my project, if someone out there could help me figure this out it would be much appreciated!