Yeah I'm looking at it and don't understand why either...that's odd. I'll have to implement it in my game and mess around with it after I get off work this evening.
I love this solution though - I was worried from the start I would have to make it a passive state but this is so much simpler!
I didn't test the scriptlets version on self-heal. Though if it IS doing that additional healing, it would be fairly simple to add in a condition where it doesn't do the self-heal if the target is the user.
So I think bhindi's version is easier and simpler to use, mine allows for more control without having to have duplicate skills. It only does the self-heal if the caster has the <healer> notetag, and the rate can be defined by setting a variable, so you can use whatever parameter you want.
Damage formulas shouldn't differentiate between a and b when the target is the user. Well, they will, but a references the caster, and b references the target, which in this case is also the caster, so ... same thing.
Awesome! It's working! Thanks so much!
One last question just for my own curiosity - would it be possible to get this formula working if Variance was involved? In my testing, it didn't seem to take it into account for the self-heal. I was just wondering if it's possible. Not a big deal if it can't,
It works fine with or without variance. I had it turned off while trying to figure out what the two different numbers that I was getting were. It was apparently the whole number and the decimal. I didn't have it turned off for any particular reason. To the best of my knowledge it would work just like any other heal skill, regardless of database parameters you set.
Edit: If you mean variance for the caster, I'm sure you could just add a random number generator in that formula, but I think the variance values only apply to the target.
Testing something currently, brb
Yeah I meant applying the variance to the caster. But I see what you're saying - the variance only applies to the target, and the formula doesn't actually look at that.
This was perfect - exactly what I needed! Thank you so much for your work on this!
No problem. Both glad and surprised I could help.