Anyone know how to implement DoT damage?

TrentL111

Archmage
Veteran
Joined
Oct 13, 2018
Messages
33
Reaction score
12
First Language
English
Primarily Uses
RMMV
Hey all. Been trying to figure out how to do a custom poison formula that triggers at the end of every round.

I know the poison in the game is HP regen -10 percent, but I was wondering if there is a way to have a status that subtracts health like a regular damage formula, like the Extended Damage Over Time plugin from MZ.

Any help would be appreciated greatly!
 

Cyberhawk

Bravelion Leader
Veteran
Joined
Jan 9, 2019
Messages
111
Reaction score
74
First Language
English
Primarily Uses
RMMZ
It's a bit extra work to have it work the same but if my memory is right
Should be this:
<JS HP Slip Damage>
damage = Math.floor(target.mhp * 0.1) + 10;
</JS HP Slip Damage>
The underlined can be changed with
user or target.
Stat mhp, atk, def, etc.
Make sure it's a decimal for smaller numbers.
 

TrentL111

Archmage
Veteran
Joined
Oct 13, 2018
Messages
33
Reaction score
12
First Language
English
Primarily Uses
RMMV
Perfect! Got it working on my first try. Thanks so much guys!
 

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

Latest Threads

Latest Posts

Latest Profile Posts

Just finished composing a boss battle theme!
Scripted a multi-variable weather system that randomizes wind speed, cloudiness, rain, fogginess, etc, while attempting to realistically account for interactions between them (e.g. wind speed affects fogginess, cloudiness affects rain, etc), the current weather pattern, and the player's biome e.g. swamp, beach, etc. Now I "just" have to tie visuals and sounds to the variables so stuff actually happens...
I'm having a headache balancing the combat using flat defense so I'm gonna use percentual armor, in this pic, Simon has 16 on Defense which means all the incoming damage will be reduced by 16% this will ease my burden a bit.
!Have a nice day everybody¡
SO glad they patched outer worlds for switch! I can finally play it! Weird that other peeps are still having issues. I know it was really chugging on my lite when it first came out.

Forum statistics

Threads
105,555
Messages
1,014,614
Members
137,231
Latest member
anjing_gila
Top