Preserved forum archive. This topic stores the original first post and locally mirrored RPG Maker Web attachments when available. It is posted by the BMMPlay archive account, not by the original creator.
Original Source
- Original title: Action Sequence Nested IF
- Original author: SergeofBIBEK
- Original date: May 31, 2017
- Source thread: https://forums.rpgmakerweb.com/threads/action-sequence-nested-if.79325/
- Source forum path: Game Development Engines > RPG Maker Javascript Plugins > JS Plugin Releases (RMMV)
Summary
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**
Archived First Post
Action Sequence Nested IF 1.00
SergeofBIBEK
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
Then end the IF with the following command:
Code:
END
Code:
<Target Action>
if user.mp > 100
animation 5: target
wait for animation
action effect
mp -100: user, show
wait: 10
end
</Target Action>
Code:
ELSE
ELSE IF condition
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>
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>
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!
Downloads / Referenced Files
Log in to download
Log in, then follow the RPG Maker Developers Group to see these download links.
Log in to downloadLicense / Terms Note
**Credit and Thanks** SergeofBIBEK (me!) Yanfly: You couldn't even nest IFs in Action Sequences without Yanfly's amazing Action Sequences plugins!! **License:**
Creator Claims / Removal
If you are the original creator and want this listing reassigned, edited, or removed, join BMMPlay and contact the moderators with proof that matches the original RPG Maker Web profile, linked GitHub, itch.io page, or another public creator identity.
Replies (0)
No replies yet.
0
replies
6
views
Topic Summary
Loading summary...