Get event Id from event [x,y] coordinates RMVXA

macas1

Villager
Member
Joined
Mar 9, 2018
Messages
7
Reaction score
0
First Language
English
Primarily Uses
RMVXA
I am trying to make a farm plot where some of the tools effect more than one event. (ie, plowing a 3x1 lot). Essentially, I want to use the events current co-ordinates to find the events next to it and change a "self variable" (from another script) in that event. But for that I need to find it's id.

Would it be simple to do this or will I need to check every event on the map to see it the coordinates match? And if so do you have any tips on doing so because I'm not new to programming but I'm new to this environment.
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,035
Reaction score
13,672
First Language
English
Primarily Uses
RMMV
Get Location Info (tab 3 of event commands, right hand side, top group) will allow you to specify a location using variables, and put the event id into another variable. If it's 0, it means there's no event there.
 

macas1

Villager
Member
Joined
Mar 9, 2018
Messages
7
Reaction score
0
First Language
English
Primarily Uses
RMVXA
Thank you very much :) Now I can have event's effect the state of not just themselves but also the ones around it.
 
Last edited:

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Pootscooter wrote on Pharonix's profile.
Hey @Pharonix, just wondering what you're up to lately and if you've had an opportunity to check out the LTBS thread in the past few days...(a couple of us could really use your expertise). Hope you are well and Happy Thanksgiving!
Anyone know the best size image to put in signature?
Well, the local collections agency is hiring... bleh. I'm not rude enough for them to hire me. Even the people they collect FOR don't like dealing with them. >.>
EA: "Kids are buying currency, not using money to gamble. It shouldn't be illegal!"
Me: "So... kids should be allowed into casinos to buy poker chips and not spend them at the blackjack table? Pretty sure, even buying currency used to gamble is illegal for children."
Been hard at work in photoshop working with MOG scripts for main menu & victory result screens, might do all my maps and Npc chatter this week too!

Forum statistics

Threads
105,500
Messages
1,014,214
Members
137,155
Latest member
diegodevin
Top