So I'm making a short game with a character who has an "artify" skill. The way I want it to work is, if you walk up to an object and you use the action button, the character just comments on it, but once they unlock this artify skill, if the character hits a different button, it unleashes a little radius of around 3 tiles and any events that can be "transformed" in the radius of this have a switch or self switch turned on which transforms the event. (Image changes, secret passages open up, talking to objects that were previously inanimate, that kind of thing)
Some of this I figured out. I can use Yanfly's button common events to bind the common event to a given key, we'll say "t" for transform.
I know that I can use maybe a parallax map event to track the player's location and compare it to the event location... somehow. Can probably figure that out with a little trial and error?
What I'm having trouble is figuring out how to make the individual events switch on.
Like let's say I get a conditional that checks something like: if tile distance between player and event a < 3 turn on switch 1. And then the switch transforms the event.
The thing is, there's going to be multiple events triggered by this ability, so is there any way to do this other than having the common event check for each and possible event that could be in its proximity and turning on a different switch for each?
Like say I want to use this ability and 20-30 events are effected by this, do I just need to build a condition to check each individual event and flip a different switch or is there a better way?
Some of this I figured out. I can use Yanfly's button common events to bind the common event to a given key, we'll say "t" for transform.
I know that I can use maybe a parallax map event to track the player's location and compare it to the event location... somehow. Can probably figure that out with a little trial and error?
What I'm having trouble is figuring out how to make the individual events switch on.
Like let's say I get a conditional that checks something like: if tile distance between player and event a < 3 turn on switch 1. And then the switch transforms the event.
The thing is, there's going to be multiple events triggered by this ability, so is there any way to do this other than having the common event check for each and possible event that could be in its proximity and turning on a different switch for each?
Like say I want to use this ability and 20-30 events are effected by this, do I just need to build a condition to check each individual event and flip a different switch or is there a better way?