The RPG Maker Resource Kit

RMRK RPG Maker Creation => RPG Maker General => General Tutorials and Eventing => Topic started by: &&&&&&&&&&&&& on January 02, 2007, 04:02:38 AM

Title: Event Q,
Post by: &&&&&&&&&&&&& on January 02, 2007, 04:02:38 AM
I was wondering, if there is a way to make an event react when it is touched by another event. I was thinking of a puzzle, but I can only do it if I can make this work.

Example- You push a rock onto a switch to open a door.
Title: Re: Event Q,
Post by: Reives on January 02, 2007, 04:16:22 AM
By eventing:


Make 2 variables named obj X and obj Y

Make 2 variables named Destination X and Destination Y

Make a parallel process event, set objX and ObjY to the object's x and y location (available in the variables panel).

Set dest. X & Y to the destination's X and Y values.

Conditional branch: if objx = dest.x; then if objy = dest.y, execute commands.
Title: Re: Event Q,
Post by: &&&&&&&&&&&&& on January 02, 2007, 04:22:11 AM
I was think of something like that, thanks.
Could I just have the OBJECT LOCATION and have two conditional braches?
Title: Re: Event Q,
Post by: Reives on January 02, 2007, 04:25:29 AM
Eh, I'm not exactly sure what you mean.
Title: Re: Event Q,
Post by: &&&&&&&&&&&&& on January 02, 2007, 04:43:32 AM
Sorry, my ideas I come up with are not all that great, and that happen to be a "raw" one.
What I mean is can you have to contional branches in an event to check for X and Y.

Code: [Select]
Conditional branch X=10
 Conditional branch Y=1
  (open door)
 
 Else case

 End
Else case

End 


By eventing:


Make 2 variables named obj X and obj Y

Make 2 variables named Destination X and Destination Y

Make a parallel process event, set objX and ObjY to the object's x and y location (available in the variables panel).

Set dest. X & Y to the destination's X and Y values.

Conditional branch: if objx = dest.x; then if objy = dest.y, execute commands.


Could this be used to make a moving event react to the other?

Example- A moster that is running around and you have to touch it with a cage to capture it.
Title: Re: Event Q,
Post by: Reives on January 02, 2007, 05:21:13 AM
Yes that would work.

And yes, it can be used for the thing you are talking about. Although, it's the exact same thing I did a while ago and someone complained that it was so hard he didn't play past it. :/ But I don't really think it would be a prob.