Increasing a State's effect through variables or other

First of all, this might be achievable using Yanfly's Lunatic scripts, but I know absolutely 0% coding language, and wouldn't know where to start.

Secondly, if this request is a pain in the ass to make for me, maybe you can try to help me come up with another way of doing it? I do have a Plan B, explained below.

Okay, here it goes ^_^

I have a Rogue-like actor who uses daggers. She learns an ability called "Poison Tip I" early on which is a skill that adds a State for a few seconds - it's an ABS combat system so my states are in seconds instead of turns - that adds Attack State: Poison 40%. So, she has the chance of poisoning her targets. Later, she gets the skill Poison Tip II, which adds Attack State: Poison 60%.

The problem:

What I want to give her is the ability to increase the Poison DMG by adding points into a certain variable. I am using a Skill Tree system, so she can have 1/5 points in "increase dmg" which would change the Poison HRG rate to -15%, then 2/5 would change it to -20%, etc.

I would love to have some help with this through scripting because this problem repeats itself for all of my other classes (having a passive increase to a state's effect, such as my Occultist's DoT damage abilities, my healer's HoTs, etc.)

I know I can achieve this by making a ton of states and skills to take into account what the actor has learned. So when the actor learns 1/5 PoisonDMGIncrease, I could theoretically have them forget "Poison Tip II" and then learn "Poison Tip II-1", which adds State "Poison II" instead of regular Poison. Then I'd just have to go in and make 5 different "Poisons" and 5 different "Poison Tip II"s which is a nightmare. I would also have to do that for all of my classes' abilities that utilize these effects.

Because of this, I'm seeing if there is a script that could help me instead, to save a lot of time and energy. I was thinking a simple notetag in the state that checks a certain variable, and then sets the "hrg" or other ex-parameter to a certain percentage. "If Poison Variable = 2, then HRG = -15%. If Poison Variable = 3, then HRG = -20%." or something.

Alright! Thanks guys! Lemme know ^_^;
Do you want this poison to wear off, or never wear off? I think it may be possible to do this entirely with skill formulas.

Check these out: http://www.rpgmakervxace.net/topic/2340-how-to-make-the-most-of-custom-formulae-part-1/

http://forums.rpgmakerweb.com/index.php?/topic/7975-skill-ideas-you-can-do-with-custom-formula/

I'll see if it actually is possible, meanwhile, you can check out the links above.

edit: Nevermind, it seems that skills can't deal damage over multiple turns. You'd probably need a script for this, but I still recommend reading the skill formulas. They make for interesting gameplay 🙂 Sorry I couldn't help!
Do you want this poison to wear off, or never wear off? It's possible to do this easily with skill formulas.

Check these out: http://www.rpgmakervxace.net/topic/2340-how-to-make-the-most-of-custom-formulae-part-1/

http://forums.rpgmakerweb.com/index.php?/topic/7975-skill-ideas-you-can-do-with-custom-formula/

I'll write a step-by-step if you need additional help, meanwhile, you can check out the links above.
Thanks Mjshi!

I'm looking through these and I can definitely see how it could help. I guess my issue here is trying to figure out how to make a skill act as a state (add chance to poison on basic attacks), and then do damage over time.

But to answer your question, I do want the Poison to wear off. Both the Poison Tip passive "buff" state on the actor, and the Poison effect on the enemy. Poison Tip should be an ability that the actor needs to activate every so often (because I have other Tip abilities that they gain access to, like Ice Tip which will have a chance to freeze an enemy).
Ah, yeah, I've tried fiddling with the skills, but it seems that only states can deal damage over time... you'd still need a script for this.

edit: although, it may be possible to check for a variable within the skill formula, then apply a state based on the variable value.
Okay, here's what I've found.

By using

$game_variables[id] == 1? if true : if false

; newline

a.add_state(id)

you could probably get this to work without scripting. I'm going to try to get a demo project working for this, though.
edit: although, it may be possible to check for a variable within the skill formula, then apply a state based on the variable value.
That would work~

Then I would only need to make 5 different states with varying HRGs, which is doable.

if $game_variables[x]=5;add_state(2);elseif $game_variables[x]=4;add_state(3);elseif $game_variables[x]=3....Hahaha okay it's very obvious I have no idea what I'm doing here......

Edit: oops you beat me to it! *reads*
Wait, I got it! I think...

Preliminary skill formula (tested and confirmed that it works (yay!))

p = $game_variables[1] ; b.add_state(27 + p)

Variable [1] is the variable you're adding to in the poison ability

b.add_state adds the poison state, and what's REALLY awesome is that you have your normal poison state, then you have +p! So if your poison layout is like

lqiwshc.png


Each +1 to the poison variable will add a different state, in order of increasing intensity 😀
And here's a demo project: 

Project3.zip
Thanks so much for your help, mjshi! I really appreciate you making the demo file for me and everything. This formula works perfectly for my actors with DoT damages and whatnot.

It's almost exactly what I need, but for my Rogue, unfortunately, my problem is one step deeper.

The skill "Poison Tip" adds the state to user "Poison Tip" which has the feature "Attack State: Poison 40%."

Then

The skill "Poison Tip II"  adds the state to user "Poison Tip II" which has the feature  "Attack State: Poison 60%."

The formula would still work in saving me some time, but I still need to make 5 different Poison Tip states to apply the 5 different Attack States. Y'know?  Unless there is a way to manipulate the Attack State through variables.

Poison Tip III (although still displayed as Poison Tip II) - Attack State: Dangerous Poison

Poision Tip IV (same as above) - Attack State: Fatal Poison

I could do that, of course, because the problem is only with this one class. I suppose that's not a problem =]

My life is so much easier for my other classes though, for sure. Thank you, mjshi!!
Okay, this is a bit confusing, so let me get these mechanics straight.

So, if the player uses the skill Poison Tip, then their attacks have a percent chance of inflicting a poison.

This percent chance is completely independent of the poison hp damage % variable in the skill tree, and the various I, II, III version of Poison Tip are learned separately from the poison's increase damage skill.

The flow of the damage would be something like this? http://s22.postimg.org/7bl17inmp/image.jpg

I'm pretty sure this is still possible through the skill formulas. I'll get back to you in an hour or two, I need to go eat something.
Okay, this is a bit confusing, so let me get these mechanics straight.

So, if the player uses the skill Poison Tip, then their attacks have a percent chance of inflicting a poison.

This percent chance is completely independent of the poison hp damage % variable in the skill tree, and the various I, II, III version of Poison Tip are learned separately from the poison's increase damage skill.

The flow of the damage would be something like this? http://s22.postimg.org/7bl17inmp/image.jpg

I'm pretty sure this is still possible through the skill formulas. I'll get back to you in an hour or two, I need to go eat something.
That's exactly right.

Poison Tip I (1/2 skill points in the tree for this ability) has a 40% chance of poisoning the enemy on basic attacks.

Poison Tip II (2/2 skill points in the tree for this ability) has a 60% chance.

Farther down the tree there is a "Poison Damage Up" ability. So, with the Poison Tip buff/state active on the player, there is still a 60% chance of poisoning, but the HRG from the Poison would be greater.

Attached is what I've crafted up since talking to you, and I think it'll do fine. It's more States than I wanted, so more micromanaging, but because these "on basic attacks" abilities are few (only about 3 or 4 based on my plans so far), then it shouldn't be too bad. The formula you made for me looks great for the other abilities. My Occultist, for example, has a DoT ability, and then gets the same "Damage Up" 5-point ability in the tree, but she's using skills so you're formula works perfectly 😀 This rogue focuses on basic attacks, which is why its a little more complicated ^_^

Poison.png
You can never have too many states 😛 The maximum is 999, after all.

It's possible to reduce your number of states by, like, 3 entries or so through Victor's Custom Slip Effects script, but his dropbox has been disabled for awhile. That script is lost to us forever u.u

So this is solved, then?

Original thread: https://forums.rpgmakerweb.com/threads/increasing-a-states-effect-through-variables-or-other.43600/