RPG Maker MZ Time Progress Battle Skill

FaizDhiya

Warper
Member
Joined
Oct 22, 2014
Messages
1
Reaction score
0
First Language
English
Primarily Uses
RMMZ
Hi

I want to ask, is it possible to make a skill that doesn't reduce the action gauge completely?
In example a skill that only reduce the gauge by 50% so the user can move again faster.
Or a skill that doesn't reduce the action gauge so the user can move again right after using that skill.
 

Aesica

undefined
Veteran
Joined
May 12, 2018
Messages
1,530
Reaction score
1,423
First Language
English
Primarily Uses
RMMV
This isn't really confirmed, but it should work. Probably. Make yourself a micro-plugin with the following code:

Code:
Game_Battler.prototype.clearTpbChargeTime = function() {
    this._tpbState = "charging";
    if (this._tpbChargeTime === 1) this._tpbChargeTime = 0;
};
Now (provided you have access to the formula box or some other way to use javascript code in your skills, you can use the following to set the battler's tpb gauge to something partial:

Code:
a._tpbChargeTime = x
Where 'x' is a floating point value between 0 and less than 1 (1 is the normal turn end value and will cause it to reset to 0 when the battler finishes its action, as per normal behavior. So for an attack skill that only depletes 50% of the battler's tpb:

Code:
a._tpbChargeTime = 0.5; a.atk - b.def
 

DoubleX

Just a nameless weakling
Veteran
Joined
Jan 2, 2014
Messages
1,789
Reaction score
941
First Language
Chinese
Primarily Uses
N/A
You may want to try this :)

For instance,
In example a skill that only reduce the gauge by 50% so the user can move again faster.
This notetag can be used:
Code:
<cooldown battler script val val: 1, -, 0.5>
Or,
Or a skill that doesn't reduce the action gauge so the user can move again right after using that skill.
This notetag can be used:
Code:
<cooldown battler script val val: 1, -, 1>
 

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

Latest Threads

Latest Posts

Latest Profile Posts

Frostorm wrote on Featherbrain's profile.
Hey, so what species are your raptors? Any of these?
... so here's my main characters running around inside "Headspace", a place people use as a safe place away from anxious/panic related thinking.
Stream will be live shortly! I will be doing some music tonight! Feel free to drop by!
Made transition effects for going inside or outside using zoom, pixi filter, and a shutter effect
I have gathered enough feedback from a few selected people. But it is still available if you want to sign up https://forums.rpgmakerweb.com/index.php?threads/looking-for-testers-a-closed-tech-demo.130774/

Forum statistics

Threads
105,992
Messages
1,018,193
Members
137,772
Latest member
Kirakirna
Top