What I'm trying to do is find the script calls for the following commands
Control variables > set to > game data > this events map X
Control variables > set to > game data > this events map Y
Control variables > set to > game data > this events facing direction
I can see exactly how to do it without a script call, but Ideally I need to use the script call so I can do it inside of a set move route.
I've looked everywhere and cannot figure out how to do this with a script call. Am I just being silly and/or blind?
Any help is greatly appreciated
Edit: Oh yeah ace hmmmm
Edit2:
Yeee theo also got it below <3 Here replace # with variable #, no 0s in front!
And if you can put them all in one script call remember to put ; at the end of the line!
$game_variables[#] = $game_map.events[event_id].x
$game_variables[#] = $game_map.events[event_id].y
$game_variables[#] = $game_map.events[event_id].direction
I believe that `this._eventId` contains the id of the event on the current map. Been a while, but im sure its that. could use that to get the position data to store in your variables. 🙂
edit: ninjad </3
oh wait. vx ace... hmmm... been even longer lol 😀
try replace @event_id with self.event_id 🙂
(assuming your doing a script call with those as the script code)
woops wrong text entry box, mbad on the double post
side note: I remember trying to login when my username became ????'s... that was a fun day... 😀
Yeah it's variable 12 and I'm only inputting [12]
should probably explain, Ive been using RMVXA for about 6 years, just never delved into scripting much but I know the barebones basics
Trying replacing [event_id] with the id number of the event concerned. So your first example might read
$game_variables[4] = $game_map.events[15].x
😅 If putting in the eventid as kes says works, but the previous event ID calls don't then it might be unable to grab it from in the move-route script call I guess qvq Maybe cuz it might be trying to grab the eventID of "move-route" rather than the actual event? Not sure.
I don't remember for ace cuz it's pretty old now~ So you might have to program some of the move-route, then do event stuff, then do the rest of the move-route depending on how you have it set up.
Also if you're trying to do this in a common event, it's super wonky (Just double checking that's not the case here).