Chaos Project

RPG Maker => General Discussion => Topic started by: Kathis on February 29, 2008, 02:30:48 am

Title: question about events
Post by: Kathis on February 29, 2008, 02:30:48 am
(was told it was fine to post this here)

I was wondering if anyone has ever figured out a way to make an event do something when it is overlaping another events

say a cat is following you, and you lead it to a certain point like a village, the owner will go, "Fluffy you brought my kitty home thank you so much" and give you something for your troubles.

I am aware of the follow hero. but what if the cat is slow? I don't want it so you just have to action key the cat then talk to the girl, no I want the cat to cross a line of events

so my question is, is this possible? I am sure it is but how does one do this?
Title: Re: question about events
Post by: Nortos on February 29, 2008, 03:14:42 am
sure just on the event page in bottom left corner click on through
Title: Re: question about events
Post by: Kathis on February 29, 2008, 03:28:32 am
not what I ment.... I don't want the event to be "phasable" I want the event to change a self switch or change something, when it hits another event, like crosses walks over it... something... I know the hero can do this, I want to know if an event can do this.

for example, what if you were racing something.. and it won...how would it know that it crossed the finishing line? without using varibles. such as move +1 or wait or timer I need it to be a random cross for example. of if the npc said, take this monster and lead him to the lake. well I don't want the event to trigger untill that monster is close to the lake rather than stuck due to a rock being in the path to you. ( and I don't want it to be phasable like a ghost -_-
Title: Re: question about events
Post by: Nortos on February 29, 2008, 03:41:44 am
hmm not too sure there is of course the 
($game_map.events[5] - $game_map.events[29].x <= -1)
  and use a conditational branch with this in the script. This would occur if the 5 is like less than 1 space away from 29 and than do stuff like this
 ($game_map.events[2].x - $game_map.events[1].x <= -1) && ($game_map.events[2].x - $game_map.events[1].x >= -5) && ($game_map.events[2].y - $game_map.events[1].y >= -1) && ($game_map.events[2].y - $game_map.events[1].y <= 1)

which would mean the event would only occure when the other event is within the stated x and y's of the 2nd event oh and make sure it's parallel proccess
Title: Re: question about events
Post by: Kathis on February 29, 2008, 04:18:28 am
I am having problems following numbers, can you explain this methoid more clear if possible.
Title: Re: question about events
Post by: nerissya on February 29, 2008, 04:19:37 am
YEah i couldn't understand anything either... =)
Title: Re: question about events
Post by: Nortos on February 29, 2008, 08:52:59 pm
I'll make a demo one sec

EDIT:
http://www.sendspace.com/file/q4ac0d (http://www.sendspace.com/file/q4ac0d)
Title: Re: question about events
Post by: Fantasist on March 03, 2008, 11:54:56 am
Or, if you need the (two) events to absolutely overlap:
$game_map.events[5].x == $game_map.events[29].x #checks for x
$game_map.events[5].y == $game_map.events[29].x #checks for y


This is all fine, but I get the feeling this can be done with events alone... I may be wrong. I checked the event commands just now, and I didn't find anything. I could be wrong.
Title: Re: question about events
Post by: Nortos on March 04, 2008, 02:14:19 am
yeah I couldn't really find anything
Title: Re: question about events
Post by: darklight on March 17, 2008, 05:25:27 am
Hmm, I would use 'event touch' as the trigger.

This is how I would do the cat example, in simplified terms:
- Player finds/runs into cat, who follows player
- Player crosses a bottleneck that forces him/her to activate a switch named "Cat Found"
- Player talks to the owner, who says "Oh you found my kitty"
- Cat has a move route that brings it to the owner; this move route is activated once "Cat Found" is turned on

Anyway, I dunno if that made sense :/ But good luck!