Hey everyone,
Im new to the RPG Maker and Javascript and still have some problems here and there...
What I'm trying to do right now is to check if there is a Event with a certain name on a specified tile.
What I got so far is that I can use $gameMap.eventIdXy(x,y) to get the Id of an event on a certain position
and then get the name of this event with $dataMap.events[id].name.
So if I have multiple Events with the Nametag "Boulder" and one of them is on the specified position I can now check if thats
the case. My problem now is that If there is another event on the same position I only get the name of one of the events.
(I think it's always the one with the lower Event ID?)
How can I check if one of the Events is the one named "Boulder" as example?
Im thankfull for any help.
Im new to the RPG Maker and Javascript and still have some problems here and there...
What I'm trying to do right now is to check if there is a Event with a certain name on a specified tile.
What I got so far is that I can use $gameMap.eventIdXy(x,y) to get the Id of an event on a certain position
and then get the name of this event with $dataMap.events[id].name.
So if I have multiple Events with the Nametag "Boulder" and one of them is on the specified position I can now check if thats
the case. My problem now is that If there is another event on the same position I only get the name of one of the events.
(I think it's always the one with the lower Event ID?)
How can I check if one of the Events is the one named "Boulder" as example?
Im thankfull for any help.