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.
Script to allow events to approach and detect other Events

0 Members and 1 Guest are viewing this topic.

pokeball KazOffline
*
Rep: +0/-0Level 82
Hi,

I'm new to RPG Maker and I was wondering if there is a script I can add to allow an event to approach and be triggered by another event similar to how it can currently follow and be triggered by the player. Or is there another way to do this in the program already?

Thanks for your time.

-Kaz

pokeball KazOffline
*
Rep: +0/-0Level 82
Specifically:

If an event is moving (randomly around the map or on a move route) can it be approached by another event (without teleporting to it?) The situation I'm interested in setting up involves one event chasing me and another event chasing that event. Whichever one touches their target first wins a "point".

Here's a prototype of what I'm working on for reference:

http://kulimar.com/StockAweProto1.exe (36 mb)


When you start playing, there will be a guy with green hair who will try and catch the player. If you can avoid him and make it to the gray tombstone at the end, you will gain points (every 2 or 3 successful plays will increase your level and the speed at which you are able to move, making it easier to avoid the guy).

What I'd like to set up is a situation where the other character moving around on the map will chase the guy with the green hair (based on some conditions) and if he catches him, it will freeze that green haired guy for a few seconds and the green haired guy will lose points).

This is really all hacked together at the moment as I'm just starting to figure things out. After this I'm going to look into how to keep a score board up and running at all times while playing tongue.gif

-Kaz