RPG Maker Forums

Hey there, I was wondering if anyone would be able to provide some help with eventing/possibly scripting. I'd like to know how to make events sense other events without using a heck ton of variables.
15909687610764596194218391677523.jpg
So, in this picture, every square is an event. One event would be somehow tagged as a bomb, and non-bombs would show how many bombs are touching it. Is there any way to do this without using, like, 9000 variables, because I'm planning to have an 8x8 grid, and that would be a heck of a lot of variables. Any advice you have would be helpful!

EDIT: There is a way I could do this using scripting and $game.variables.value = ["ex1, ex2,] At least, I think that would work... But, that would involve a lot of tinkering, like ( I'm gonna simplify this here) if x pos = variable +1 or x pos = variable -1 or x pos = variable and y pos = variable 2 plus one, minus one, or equal to then do this. I mean, I could do that, but there has to be an easier solution!

Latest Threads

Latest Profile Posts

Don't forget, aspiring writers: Personality isn't what your characters do, it is WHY they do it.
Hello! I would like to know if there are any pluggings or any way to customize how battles look?
I was thinking that when you start the battle for it to appear the eyes of your characters and opponents sorta like Ace Attorney.
Sadly I don't know how that would be possible so I would be needing help! If you can help me in any way I would really apreciate it!
The biggest debate we need to complete on which is better, Waffles or Pancakes?
rux
How is it going? :D
Day 9 of giveaways! 8 prizes today :D

Forum statistics

Threads
106,049
Messages
1,018,546
Members
137,835
Latest member
yetisteven
Top