I'm pretty slumped, does this script work anymore? Stat-dependent DOTs

Torrysan

Class System Enthusiast
Member
Joined
Mar 30, 2017
Messages
4
Reaction score
1
First Language
English
Primarily Uses
RMMV
Hi all. I saw this video:


And was interested in the possibilities... that is, until I found out it's not working. Implementation seems pretty straight forward, but for some reason it's not working correctly. I have the required plugins installed, and have checked the settings like 7 times to make sure nothing is turned off.

I'm creating a Bleed state, which would damage every turn by 15% of the caster's ATK. The debuff is applying and refreshing correctly, but it's not doing any damage. I bumped up the values to see if it had anything to do with my starting low ATK values, but it's doing it even at level 100. I'm figuring no matter how high the armor, it would at least tick for 1 damage...

I'm completely stuck. I'm certain I'm doing something wrong but the video seems so easy, my plugins are updated and I only use Yanfly so I don't see how there would be any conflicts. I'd appreciate any input you have on the matter.

Using this note tag:

<Custom Apply Effect>



target._customDotValue = origin.atk * 0.15; //change this line to change the damage formula of the DOT.



</Custom Apply Effect>



<Custom Remove Effect>



target._customDotValue = undefined;



</Custom Remove Effect>



<Custom Regenerate Effect>



if (target._customDotValue !== undefined) {



var value = target._customDotValue;



target.gainHp(-value);



target.startDamagePopup();



if (target.isDead()) {



target.performCollapse();



}



target.clearResult();



}



</Custom Regenerate Effect>
 
Last edited:

Kes

Veteran
Veteran
Joined
Aug 3, 2012
Messages
22,299
Reaction score
11,712
First Language
English
Primarily Uses
RMVXA
[move]Javascript/plugin support[/move]
 

Trihan

Speedy Scripter
Veteran
Joined
Apr 12, 2012
Messages
2,604
Reaction score
1,959
First Language
English
Primarily Uses
RMMV
Already helping him with this on Discord, I believe.
 

Zarsla

Veteran
Veteran
Joined
Jan 23, 2015
Messages
710
Reaction score
228
First Language
English
Primarily Uses
Use this:
<Custom Regenerate Effect>
var dmgform = origin.atk * 0.15;
target.gainHp(-dmgform);
target.startDamagePopup();



if (target.isDead()) {



target.performCollapse();



}



target.clearResult();



}
</Custom Regenerate Effect>

or this:
<Custom Regenerate Effect>
var dmgform = origin.atk * 0.15;
target.gainHp(-dmgform);
/<Custom Regenerate Effect>
 

Trihan

Speedy Scripter
Veteran
Joined
Apr 12, 2012
Messages
2,604
Reaction score
1,959
First Language
English
Primarily Uses
RMMV
We figured out the problem, it was something to do with having stb selected as the default system but the STB plugin not being on so BattleManager.isTurnBased was returning false and not calling the regenerateAll function.
 

Torrysan

Class System Enthusiast
Member
Joined
Mar 30, 2017
Messages
4
Reaction score
1
First Language
English
Primarily Uses
RMMV
Yeah, that was my bad. I didn't know to what degree the discord and the forums were separate entities >_<

Thank you all for your help, problem solved :)
 

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

Latest Threads

Latest Posts

Latest Profile Posts

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
How many parameters is 'too many'??

Forum statistics

Threads
105,862
Messages
1,017,049
Members
137,569
Latest member
Shtelsky
Top