Region ID on an event?

Hey RPG MAKER community 🙂

I'm new here and wanted to know how to place Region ID on event.


I use the script call: "$gameMap.regionId($gameMap.event(this._eventId).x, $gameMap.event(this._eventId).y) == 1"


but it doesn't work :/


can someone help me, please?!


Thanks, Speazy.
Region ID is a map property of the tile/position, it cannot be placed on an event - only on the position of the event, and only in the editor (by default).


Please tell us what you want to do, not how you want to do it - then we can help you finding the correct method. So why do you want to place an region ID anywhere dynamically?
Hey Andar,


I want to do a "Tactical move system"! (and NOT "Tactical Battle system". it's two different things.)


I searched, but I didn't found anything usefull. Like here is a example what I did, and want to do:


Unbenannt.pngUnbenannt 1.pngUnbenannt 2.png


Using the Plugin "OrangeCustomEvents".


So, my Problem is if there is a Event and the Cell hit this Event, there should be no Cells behind him. Like this example:


Unbenannt 4.png


My question is: Is there any possibility to do this? Like I tried it with Region ID and it worked very well. But like you said you can't put Region ID on event. :/


So can you help me out? Please.


(Sorry for bad english) ^^


Thanks, Speazy!
Are you comparing the player's location with the event's?  I'd just do a direct comparison (or if it's something you need to do constantly, I'd write a little script that does the tests and provide an easy way to call it).
Yeah, I want to comparing the Player's location with the event's constantly! How can I do it? ^^ Here is again a example:


Unbenannt 5.png


The System must be know, if there is a Event, It should be no Cells behind them! 


Like I said it would work with Region ID.


Speazy.
but dynamic region IDs are a real problem that isn't easily solved, so it would be better to use different ways to check.


I would do the checks on placing the cells, and use labels to abort a partial sequence when an event is found.


Something like


check pos 1 for event


if no, place cell and move to pos 2


if yes, move to label for checking pos 5


and then order the checks and the cell placement not geometrically, but based on line of move from player, with the labels at the places for different directions (including diagonals, it's a bit more complex but the same principle)
Your Idea seems not working. :/


The Problem is after the Cell's are deleted, the Picture and the Event-Information is deleted NOT the event himself.... so Stupid:/


so after you check pos 1 for a Event. There could be a deleted Cell Event. So it would be move to label, for checking pos 5....


I don't know why you can't put Region ID's Ingame, It's pretty much annoying, because there is much more I want to do with this Movement system, so the best way would be to work with Region ID's... another option would be hard work.


So I ask you: Is there any "Plugins" to put Region ID's ingame or is there a "Move system Plugin" for my game? 


If not, then I will think to do my own Plugin about this. which will cost me a lot of time...
Please show screenshots of those event pages - and use [alt]-[prtscr], not simple [prtscr] to make them better readable
Never mind. I found a way to do this, without any Region or complicated Script calls. 🙂  


Thank you for the Answers,


Speazy.

 

Original thread: https://forums.rpgmakerweb.com/threads/region-id-on-an-event.66837/