WetNightmare

Warper
Member
Joined
Sep 15, 2023
Messages
2
Reaction score
1
First Language
English
Primarily Uses
RMMV
I'm trying to have a stealth mechanic to gain the upper hand during battles by sneaking up behind an enemy, but I'm having issues trying to get both sides of it working at the same time.

Getting spotted needs a parallel trigger to continually scan for the player in front of them, but starting the battle from behind them needs an action button trigger, which makes one of them cancel out.

Is it possible to have simultaneous triggers? or is there a way to do this with scripts or something?
 

TESTOSTERONE

Nosey aren't ya?
Regular
Joined
Feb 11, 2017
Messages
676
Reaction score
3,807
First Language
English
Primarily Uses
RMMV
Can you have a separate parallel event controlling your enemy NPC and handling the scanning?
Then your enemy NPC can have action button trigger.
 

Trihan

Speedy Scripter
Regular
Joined
Apr 12, 2012
Messages
6,820
Reaction score
7,813
First Language
English
Primarily Uses
RMMZ
^ This. Have a separate event checking for the player being in proximity.
 

ATT_Turan

Forewarner of the Black Wind
Regular
Joined
Jul 2, 2014
Messages
12,479
Reaction score
10,890
First Language
English
Primarily Uses
RMMV
The other option is to use Yanfly's Event Chase Player plugin. This allows you to set a chase radius and the requirement to be able to see the player, and that goes into the event's custom move route. So the event overall can still be Action Trigger.
 

WetNightmare

Warper
Member
Joined
Sep 15, 2023
Messages
2
Reaction score
1
First Language
English
Primarily Uses
RMMV
The other option is to use Yanfly's Event Chase Player plugin. This allows you to set a chase radius and the requirement to be able to see the player, and that goes into the event's custom move route. So the event overall can still be Action Trigger.
This is what I ended up going with, thanks for the suggestion!
 

AquaEcho

Script Kitty
Regular
Joined
Sep 20, 2021
Messages
2,215
Reaction score
1,622
First Language
English
Primarily Uses
RMMV
There is also Galv Event Start Types but wacky things happen if you use it in a parallel event. i.e. an action trigger command will run over and over again

Maybe it can be mediated with wait commands, I haven't tried it
 

Latest Threads

Latest Profile Posts

Did you know that it is less than two days until you can open your first advent calendar door? Are you as hyped as I am?
*Goes away*
*Returns after a few days to see what's happening*
*Sees what's happening*
ErifB_2.pngLuminusActor_DMG_6.png
Sooooo close to picking a game idea for the jam. That's almost halfway done, right? :D
I have completed what is clearly the most important part of participating in the game jam: coming up with a name!

Forum statistics

Threads
136,572
Messages
1,267,704
Members
180,261
Latest member
Sero
Top