- Joined
- Dec 22, 2013
- Messages
- 143
- Reaction score
- 20
- Primarily Uses
Just to be clear XAS is an ABS(Action Battle System).
While coming up with new and interesting things to do with XAS and to further enhance the kind of skills I can come up with I came up with the idea of moving a the Skill event that spawns on the map, from a script call in the event. In my example I move it directly onto an enemy.
evid = $game_map.scan_nearest.to_i #This looks for the event with a specific tag closest to the player
locx = $game_map.events[evid].x #gets the x
locy = $game_map.events[evid].y #gets the y
$game_map.events[@event_id].moveto(locx,locy) #Moves THIS event to locx and locy
Which works wonderful. BUT it made me realize that the Area feature of XAS. (Check images and text here to understand fully what it is http://www.atelier-rgss.com/XAS/Web_Material/Manual2_Tool.html) centers the Area around the player not the event getting spawned in. In effect what this means is that the skill will be placed correctly but the Area does not.
I've stared at the XAS scripts for hours, what I've found thus far have not really been very helpful. At the moment I'm trying to add another Area type that will center around the Skill instead of the player.
Here is the main XAS script:
(Searching for Area or SQUARE should take you to what I believe are the relevant parts of the script).
http://pastebin.com/ACZe1XrS
Could anyone help me out?
Thank in advanced, you are awesome!!!
While coming up with new and interesting things to do with XAS and to further enhance the kind of skills I can come up with I came up with the idea of moving a the Skill event that spawns on the map, from a script call in the event. In my example I move it directly onto an enemy.
evid = $game_map.scan_nearest.to_i #This looks for the event with a specific tag closest to the player
locx = $game_map.events[evid].x #gets the x
locy = $game_map.events[evid].y #gets the y
$game_map.events[@event_id].moveto(locx,locy) #Moves THIS event to locx and locy
Which works wonderful. BUT it made me realize that the Area feature of XAS. (Check images and text here to understand fully what it is http://www.atelier-rgss.com/XAS/Web_Material/Manual2_Tool.html) centers the Area around the player not the event getting spawned in. In effect what this means is that the skill will be placed correctly but the Area does not.
I've stared at the XAS scripts for hours, what I've found thus far have not really been very helpful. At the moment I'm trying to add another Area type that will center around the Skill instead of the player.
Here is the main XAS script:
(Searching for Area or SQUARE should take you to what I believe are the relevant parts of the script).
http://pastebin.com/ACZe1XrS
Could anyone help me out?
Thank in advanced, you are awesome!!!
Last edited by a moderator:
