RMMV How do I make an enemy attack and run away in the same skill?

silent_drew

Regular
Regular
Joined
Aug 18, 2017
Messages
40
Reaction score
1
First Language
English
Primarily Uses
RMMV
I'm trying to make an enemy who does the following:
  1. runs up a player
  2. attacks
  3. keeps going until they're off screen
  4. flees from battle once off screen
I've gotten the first 3 to work via Action Sequences, but I can't find any plugin or tool for this.
 

SGHarlekin

Orc Jester
Regular
Joined
Jun 29, 2020
Messages
1,371
Reaction score
1,985
First Language
German
Primarily Uses
RMMV
You could probably call a common event at the end of your skill that uses force action to execute a different skill that has the escape sequence and escape battle action effect I'd say.

Alternatively, since you can run js evals in Action Sequence, you can probably just run some kind of battler.escape eval and achieve the same thing.
 
Last edited:

Shaz

Keeper of the Nuts
Global Mod
Joined
Mar 2, 2012
Messages
46,153
Reaction score
16,959
First Language
English
Primarily Uses
RMMV

I've moved this thread to Plugin Support. Thank you.

 

SGHarlekin

Orc Jester
Regular
Joined
Jun 29, 2020
Messages
1,371
Reaction score
1,985
First Language
German
Primarily Uses
RMMV
@SGHarlekin That's almost exactly it.

@silent_drew Try just putting as the last command of your action sequence:
Code:
eval user.escape()
Haha couldn't find it right away on the script call document, but I wanted to at least point in the right direction. Glad you're here as usual to save the day :D
 

Latest Threads

Latest Posts

Latest Profile Posts

ThereseIdleWIP2.gif
Design finished. Onto finishing the entire sprite sheet and alternative colours now
What does it say about you when a mushroom is your best friend?
If a game had a moral-choice system at the beginning 3 chapters where defeating an on-screen encounter grants a "-2" at the end of the level whereas evading it granted "+2" at the end of the chapter, and then each chapter also had a dialogue choice that'd give/take points depending on the answer the player gives, how many points would you expect to gain from the dialogue choices?
Dynamic.png

My next plugin will be:

DYNAMIC SWITCHES! (For RPG MAKER MZ)

What does this plugin allow?

Basically it allows you to create switches that work even though the game is closed.

Example of use:

You can make a system that you can only run a mini game once a day (or an event or whatever you want) and you have to wait 24 hours to play again.

I open thread here...
Brain: Hey! Let's draw something inspired by Tangela.
Result: Hartestant.png

Brain: What the hell man! That's it, I'm out!

Forum statistics

Threads
134,797
Messages
1,250,750
Members
177,592
Latest member
ywio2587
Top