RPG Maker Forums

TE QUESTION

Hmmm... is it possible to check if the tile in front of the player is in a specific region? I want to basically make a check for if the tile in front of the actor is a specific region when using conditions with script or plugin calls for a conditional branch. Or more specifically I want to an action button on the tile ahead which uses a tool (already have) but for it to only work if that tile is within a specific region (this is the part I dont qvq).

I was hoping to be able to accomplish that with some more well-known plugins but... qvq I am just not good enough with coding or really understanding a lot of the code yet to sift through it, so I'm not sure if it can be used that way even with the knowledge!

Alternatively, if there is no way to do this do you think it would be possible for someone to script, or are regions just super meh about these kinds of things and I should go a different route?


_____________________________________________


PLUGINS

I have Yanfly's region events, and a few other of their lovely scripts (i.e. also listed below) if they are helpful, plus galv's tools installed (using tools from this script triggers a common event) I just need a way for that common event to check if the tile it is about to be used on (one tile ahead of the character) is within a specified region.


Others that might help?


_____________________________________________



CURRENT WORKAROUND


The road I am heading down right now is using a region that activates a switch allowing the tool to be used, and outlining that region in event tiles that when the tools are used on it has no effect or nullifies the effect + when they step on it deactivates the tool. It's really messy with event tiles all around it you can't place other events on, feels less fluid than the above working would, and is basically a ton of events if used on other applications. @-@


I also thought of using this method but I am not 100% sure how to. I would need to check what direction the player is facing then check the tile 1 ahead of that direction, if it's a region tile then go forth young tool, but if it isn't it just wouldn't do anything! :)
If you have an example of how I could put that in well even as a last case scenerio I would still be quite happy!


_____________________________________________


THANKS AND THANKS AGAIN!
For taking the time to read through my ramblings aaahh- I was very nervous to ask about this (oops!)
but having a solution or alternative perhaps to help with this would be GREATLY appreciated and I'll luv you forever. qvq

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,547
Members
137,835
Latest member
yetisteven
Top