The RPG Maker Resource Kit

RMRK RPG Maker Creation => VX Ace => Topic started by: &&&&&&&&&&&&& on July 18, 2013, 06:50:59 PM

Title: [RMVXA] Event touch OR Player touch (both at once)
Post by: &&&&&&&&&&&&& on July 18, 2013, 06:50:59 PM
1 or 2, both at once... I know it's worded weird, but this is what I'm wondering.

Example 1 -
Guard A is on duty, he's patrolling.
 Event touch: The player can run into him, without activating the event. :\
 Player touch: If the player stands still, the event won't activate. ::\\
Is there a way to have it check for ANY collision with the player?

Example 2 -
Guard B is on duty, he's patrolling. I want this to happen -
 Event touch (he caught you): Battle process starts against guard like normal.
 Player touch (you snuck up): You get a preemptive strike on him.

but how do I do this? I can set the event to either Player touch, or Event touch... but not both.
Title: Re: [RMVXA] Event touch OR Player touch (both at once)
Post by: AbsoluteIce on July 18, 2013, 09:41:31 PM
I don't know if this will work, I just got this idea from the top of my head at 5:30am in the morning, so forgive me  :V
Why don't you add a parallel event with a conditional branch 'if switch ... is on'? put the 1st page of the soldier sprite as event/player touch, use the selfswitch A/B option, and event whatever is necessary in the 2nd page while turning on the switch on the 2nd page aswell?