I need a script or event that activates a switch whenever a player steps on a region tile.
Thanks in advance, and sorry if this is super easy... I just legitimately can't figure out how.
To be clear I dont mean physical switches, like levers and buttons; I mean switches under the eventing tab.
maybe try a parallel event that checks the region of the tile the character currently is?
Sorry.... I Thought the forum sticky told me not to edit original body text to make it easier to find using search functions.
And adikt, the only thing I can find for that is checking a specific tile on the map, and I need this to happen for quite a few tiles, and it has to be a tile that is currently under the player.
The end goal is to make a random event that only happens in a certain region that the player is standing on.
You can obtain the player's X and Y and put them into variables using event commands...
Then you use those two variables to select the tile in the Get Location Info command
Ahh, alright I got it. Thanks for the help.
You need to use several steps with variables to get that info.
1) control variable [001] : Game Data : Character : Player : Map X
2) control variable [002] : Game Data : Character : Player : Map Y
3) Get Location Info : Variable [003] : Region ID : Designation by Variable [001], [002]
4) Conditional Branch : Variable [003] == Region ID to be checked
That way you'll always check for the current position's Regon ID if you place that in a parallel process
Thanks Andar, adikt answered the question but that is helpful because it showed me exactly what to do!
yeah, I'm at work and my boss is beside me so I cannot really do much...
No problems man, Yours was equally as helpful didn't mean to make it sound otherwise haha.
You shouldn't make huge changes to your original post, but it's okay to edit it to add content. The rule is there so people don't post asking one question, then when it's answered edit the original post and ask something different entirely.
This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.