RMRK is retiring.
Registration is disabled. The site will remain online, but eventually become a read-only archive. More information.

RMRK.net has nothing to do with Blockchains, Cryptocurrency or NFTs. We have been around since the early 2000s, but there is a new group using the RMRK name that deals with those things. We have nothing to do with them.
NFTs are a scam, and if somebody is trying to persuade you to buy or invest in crypto/blockchain/NFT content, please turn them down and save your money. See this video for more information.
Event Touch

0 Members and 1 Guest are viewing this topic.

**
Rep: +0/-0Level 68
RMRK Junior
-I need a script to use in event command in a certain map event to get X or Y position for the event itself from a command event inside it.

-I need a script to use in event command to check if certain tow map events was touch each other ,like when player touch event or vise versa ,but I want event touch event.

*
Rep:
Level 97
2014 Most Unsung Member2014 Best RPG Maker User - Engine2013 Best RPG Maker User (Scripting)2012 Most Mature Member2012 Favorite Staff Member2012 Best RPG Maker User (Scripting)2012 Best MemberSecret Santa 2012 ParticipantProject of the Month winner for July 20092011 Best Use of Avatar and Signature Space2011 Best RPG Maker User (Scripting)2011 Most Mature Member2011 Favourite Staff Member2011 Best Veteran2010 Most Mature Member2010 Favourite Staff Member
For the first, you can already set a variable directly by selecting Character -> This Event -> Map X (or Y)

So you can already do the first.

Your second request is a little unclear. If by "certain tow map events" you mean you only need to check if a couple of specific events are touching each other, you can use the method above to get the coordinates of the events and check them against each other. If you need it to be able to trigger anytime any event touches it or need it for a lot of events, then a script might be preferable.