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.
[RESOLVED] place enemies in a restricted area

0 Members and 1 Guest are viewing this topic.

**
Rep: +0/-0Level 81
RMRK Junior
Object: to have non-random enemiy encounters
Restrictions: enemies can only move in a predetermined area (not a map area)
                   enemies will move toward the player and stop at edge of above
                   enemies will resume random movement when player backs away from above
                   movement is orthogonal

A visual example of this is: ball on a string

I have tried writing an event for this with some success. The event breaks down during MOVE
TOWARD PLAYER. Also when trying to make an integer absolute. The event became hopelessy
nested when MOVE EVENT needed nine cases.

NOTE: modern algebra, I am unlearning, will soon be learning.
« Last Edit: May 20, 2010, 02:03:37 PM by Moxy »

**
Rep:
Level 83
I think that one of my scripts can help :

http://rmrk.net/index.php/topic,34614.0.html

But ... orthogonal ????
You can use my scripts freely . but not for commercial use .
:ccbync:
Don't encrypt your game !!!
Want to give me credit ? Easy ,add me in your game :

**
Rep: +0/-0Level 81
RMRK Junior
Thanks dricc, that will be useful to me.

**
Rep: +0/-0Level 81
RMRK Junior
OK, after further review, I was able to make an event that fullfilled the stated
objectives. It took 3 pages. First page, enemy random movement in restricted
area. Page 2, move toward player when player enters the restriced (doesn't
have to be the same) area. Page 3, collision detection and battle. So basically,
enemy wanders around, you get close enough, enemy runs toward you, you
defeat the enemy (or evade!), enemy flashes and resets. Newb time for creating
event - 5 HRS with sleeping on it! A nice learning exercise.

If anyone can tell me how to post event page screen shots, AND anybody cares
then I will do so. Orthogonal means non-diagonal movement (left right up down)
« Last Edit: May 21, 2010, 08:29:15 PM by Moxy »

**
Rep: +0/-0Level 81
RMRK Junior
there is an area option on maps just right click the map name and select new area this allows to set monsters for that area