What i need to know is how to create states that don't deal percentage damage but instead deal flat damage or further, a flat damage that scales based on the level of the user, currently i only know how to make states deal a % damage every turn which doesnt work on bosses and is just another state for me to make a boss immune to rather then giving people the ability to utilize status effects on bosses, any help will be appreciated 😀
creating states that use dots which aren't % based
RPG Maker MV SupportYou'll need a plug-in, as by default the engine doesn't support that. Try Yanfly's plug-ins, and see if they have a state plug-in with lunatic mode available yet.
Cant think of a method without plugins but...
Buff and state core
<Custom Regenerate Effect>
var hp_loss = Math.floor(user.level);
user.gainHp(-hp_loss);
</Custom Regenerate Effect>
Buff and state core
<Custom Regenerate Effect>
var hp_loss = Math.floor(user.level);
user.gainHp(-hp_loss);
</Custom Regenerate Effect>
I already had the buffs and states core, not experienced enough to use or work these things out, thanks for this i'm now just working out what i want to base the negative hp regen on specifically, i'm finding user.level with a multiplier i will choose at a later point to be the best so far however if i could work it out i would also consider using the level value of the actor who casted the state so its more based on how the actor has improved over time rather then being static and only valued at low-mid levels if i make it balanced. my best attempt was a1.level and a.level which just resulted in the userlevel completely ignoring the actors level, if its not possible with the current plugins, thank you anyway this works well enough 😀
Oh so you want the poison damage to be based on the attacker's level instead of the target's?
Change user to origin
So for example if hero is level 3 poison does 3 damage and if the hero is level 50 poison does 50 damage?
Try this:
<Custom Regenerate Effect>
this._poisondmg = origin.level;
var value = this._poisondmg * (-1);
user.gainHp(value);
</Custom Regenerate Effect>
Credit: Znikomek
Taken from the comment section of Yanfly's Buff and States Core
Also note; enemy's be default don't have levels. If you use a parameter like atk then any buffs/debuffs will apply to damage calculations
Change user to origin
So for example if hero is level 3 poison does 3 damage and if the hero is level 50 poison does 50 damage?
Try this:
<Custom Regenerate Effect>
this._poisondmg = origin.level;
var value = this._poisondmg * (-1);
user.gainHp(value);
</Custom Regenerate Effect>
Credit: Znikomek
Taken from the comment section of Yanfly's Buff and States Core
Also note; enemy's be default don't have levels. If you use a parameter like atk then any buffs/debuffs will apply to damage calculations
i didn't mention that i was using enemy levels so it was working for me because of that. Alright that new formula works for what i need, glad its possible without having to request a plugin for it thanks for showing me it
Original thread: https://forums.rpgmakerweb.com/threads/creating-states-that-use-dots-which-arent-based.56135/