Toggle-Status that allows Double attack but cost MP...help?

Iaco92

Warper
Member
Joined
Mar 4, 2017
Messages
3
Reaction score
0
First Language
Italian
Primarily Uses
RMMV
Hey there,
as the title said, I'm trying to create a Status that allows your actor to do double attack per turn but drains MP every turn, while active.
Basically, I have this archer character that can active a skill "Double Shot" that gives him a state (Double Shot, as a matter of fact) which allows him to attack twice per turn. In return he lose 10% of his max MP every turn.
I've actually made it to this point, the problem is that I would like to remove the state if the hero doesn't have enough MP. I know it can't be that hard to resolve this, but I couldn't find any tutorial or thread that could help.
 

Trihan

Speedy Scripter
Veteran
Joined
Apr 12, 2012
Messages
2,604
Reaction score
1,960
First Language
English
Primarily Uses
RMMV
Give the state an Action Times+: 100% and Ex-Parameter: MP Regeneration -10% trait, then use the following notetag:

Code:
<Custom Turn End Effect>
  if (target.mp < target.mmp * 0.1) {
    target.removeState(state.id);
  }
</Custom Turn End Effect>
Note that this requires Yanfly's Buffs & States Core.
 

Iaco92

Warper
Member
Joined
Mar 4, 2017
Messages
3
Reaction score
0
First Language
Italian
Primarily Uses
RMMV
Nice, thanks for the answer!
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

so hopefully tomorrow i get to go home from the hospital i've been here for 5 days already and it's driving me mad. I miss my family like crazy but at least I get to use my own toiletries and my own clothes. My mom is coming to visit soon i can't wait to see her cause i miss her the most. :kaojoy:
Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD

Forum statistics

Threads
105,868
Messages
1,017,074
Members
137,578
Latest member
JamesLightning
Top