macas1

Villager
Member
Joined
Mar 9, 2018
Messages
7
Reaction score
1
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

Global Moderators
Global Mod
Joined
Mar 2, 2012
Messages
44,200
Reaction score
15,547
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
1
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:

Latest Threads

Latest Posts

Latest Profile Posts

since all my maps are hand drawn... I admit, I super envy those who can make the tileset's work. I'm garbage at mapping, but slightly less bad at just drawing my own areas. plus it's easier to draw my own sprites than edit others to look like my characters.
Guys, I made a trailer! And, I also launched the Steam page! If you would like to support the game, please Wishlist it :ahappy: ->
working on some tilesets _ノ乙(、ン、)_

CIBl8xT.png


Oq8WKHX.png
aww man, color hex code #C4C4C4 doesn't work for the tint value in this scene I need something darker, which stinks just because I liked that one it was my favorite plastic explosive three times...#696969 (nice) should work better (WHY IS MY BRAIN LIKE THIS)
Tell it to me straight, doc. If I've been trying to piece together a "shorter" game to learn stuff outside of game jams... am I just running away from my WIP? :v

Forum statistics

Threads
117,284
Messages
1,106,127
Members
153,467
Latest member
Kip_
Top