RPG Maker Forums

Action Sequence Nested IF 1.00
SergeofBIBEK

Hey everyone! I made a plugin that I think would be useful to hardcore action sequence makers!

**Introduction**

This is a really simple plugin. It allows you to nest IF statements in action sequences.

**How to Set Up**

Place this plugin below YEP_BattleEngineCore.

**How to use IF in Action Sequences**

To start an IF, use the following command:
Code:
     IF condition
The condition is whatever you would put in a normal JS IF statement.

Then end the IF with the following command:
Code:
     END
Here is an example:
Code:
     <Target Action>
     if user.mp > 100
     animation 5: target
     wait for animation
     action effect
     mp -100: user, show
     wait: 10
     end
     </Target Action>
You can also still use else and else if like this:
Code:
     ELSE
     ELSE IF condition
The condition follows all the same rules as the IF conditions
Code:
     <Target Action>
     if user.mp > 100
     animation 5: target
     wait for animation
     action effect
     mp -100: user, show
     wait: 10
     else
     animation 3: user
     wait for animation
     mp +50: user, show
     end
     </Target Action>
But Wait! There's more!
Now you can nest your if statements!
Code:
     <Target Action>
     
     if user.mp > 100
     animation 5: target
     wait for animation
     action effect
     mp -100: user, show
     wait: 10
     
     if user.hp > 100
     animation 3: user
     wait for animation
     action effect
     hp -100: user, show
     end
     
     end
     </Target Action>
In this example the user will do damage if their mp is OVER 100,
then do damage again if their hp is OVER 100. If their mp is
is UNDER 100 then nothing will happen. EVEN if their HP is 101+.

Since that if is inside the other if, it won't happen unless the
first IF's conditions are met. Nest IFs, just like JS!

**Script**

*You can get the latest version here:*
[Action Sequence Nested IF](https://www.dropbox.com/s/z4tvqmc2u9mmtn8/SergeofBIBEKActionSequenceNestedIf.js?dl=0)

**Credit and Thanks**

SergeofBIBEK (me!)

Yanfly: You couldn't even nest IFs in Action Sequences without Yanfly's amazing Action Sequences plugins!!

**License:**

Free for any use, do whatever you want. Don't even have to credit me anywhere!

Latest Threads

Latest Posts

Latest Profile Posts

Our latest feature is an interview with... me?!

People4_2 (Capelet off and on) added!

Just beat the last of us 2 last night and starting jedi: fallen order right now, both use unreal engine & when I say i knew 80% of jedi's buttons right away because they were the same buttons as TLOU2 its ridiculous, even the same narrow hallway crawl and barely-made-it jump they do. Unreal Engine is just big budget RPG Maker the way they make games nearly identical at its core lol.
Can someone recommend some fun story-heavy RPGs to me? Coming up with good gameplay is a nightmare! I was thinking of making some gameplay platforming-based, but that doesn't work well in RPG form*. I also was thinking of removing battles, but that would be too much like OneShot. I don't even know how to make good puzzles!
one bad plugin combo later and one of my followers is moonwalking off the screen on his own... I didn't even more yet on the new map lol.

Forum statistics

Threads
106,035
Messages
1,018,450
Members
137,820
Latest member
georg09byron
Top