Help - Search - Members - Calendar
Full Version: A little help on eventing (Solved)
RPG RPG Revolution Forums > Game Engines > RPG Maker XP Discussion
Vexus
Hi so I was fooling around on a map to test something and I thought I knew pretty much how events work but for this specific thing I can't find a way and even searching on the web didn't find any help so here I try asking.

I have bandit and rabbit events on a map the bandit moves on auto route while the rabbit moves randomly, is there a way if the rabbit event blocks or gets near the bandit event make the bandit turn hostile and attack the rabbit?

I'm trying to make the world more alive by having conflicts on beasts vs beasts and even npcs vs beasts or other npcs.

Would I need a script or I can do it with events?
SleepingSirenx
That is applicable via Events. All you have to do is like this:
Make 3 Events:
1 for the bandit
1 for the rabbit
and 1 for a parallel process.

In the Event via Parallel Process,
Create a Set Move Route : Bandit to any place you want the bandit to go.
Calculate the steps created by the bandit then,
Create a Set Move Route : Rabbit to the last step of the bandit then,
Create a Show Animation targeted to the Rabbit, the animation must be an attack animation.
Then Set Move Route : Rabbit and select Change Graphic and find a suitable graphic that like shows the rabbit dead.

The format of the Set Move Route is like this :

[ ] [ ] [ ] [ ] [x]
[ ] [ ] [ ] [ ] [ ]
[ ] [ ] [ ] [y] [ ]
[ ] [ ] [ ] [ ] [ ] ---> this is the starting position of the events x for bandit, y for rabbit

then,

[ ] [ ] [ ] [ ] [ ]
[ ] [ ] [x] [ ] [ ]
[ ] [ ] [ ] [y] [ ]
[ ] [ ] [ ] [ ] [ ] ----> here is what it looks like after the set move route event for the bandit.

[ ] [ ] [ ] [ ] [ ]
[ ] [ ] [x] [ ] [ ]
[ ] [ ] [y] [ ] [ ]
[ ] [ ] [ ] [ ] [ ]-------> then position the rabbit in front of the bandit and then the Show Animation commence followed by the Change Graphic is said earlier. Hope I was clear in explaining this to you. If you have questions or anything, don't hesitate to ask. Well then, good luck!
Vexus
Yea but I wanted to try and make it random.

Meaning the rabbit walks randomly and only if it comes near the bandit it should trigger the event else nothing happens.

I know it could be hard to do since there is only player touch and event touch nothing about a trigger when an event touches another event unless it's possible with a script.

[Edit]

Found a script that does this so this thread can be closed.

Thanks for the help anyways smile.gif

And for those who wanted something like this in their game and want to found out how I solved it:

http://forum.chaos-project.com/index.php/topic,9516.0.html
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2013 Invision Power Services, Inc.