I have no idea if there’s an easier way to achieve the effect that this particular eval collection snippet wants to achieve. If there is, feel free to share it with me. Otherwise stick to my instructions.
Everytime an ally with the devouring touch deals damage, a portion of that damage will be added to his ATK and MAT. Of course you’re not limited to these params. You can increase/decrease whichever you want.
So let’s look at one of Dean’s skills. This is the damage the skill will normally deal:
After being affected with the devouring touch and dealing some damage, it looks like this:
The damage surged quite a bit! The goal of Devouring Touch is to make an ally accumulate a lot of ATK and MAT as fast as possible in order to deal enormous damage before the state wears off.
To recreate this effect you’ll need to do the following:
In the damage box of your “Devouring Touch” spell, you’ll need to write this:
I recommend setting the damage type to recover MP, so that there will not be any popups. What we just did here is defining a variable called Devour_Container. It holds the value 0. Remember that each time the skill is used the counter will be set to 0 so make sure the duration of the state is shorter than the cooldown of the skill.
After you did that create a “Devouring Touch” state. In the state’s notebox, use this:
<Custom Establish Effect> user._paramPlus -= Devour_Container; user._paramPlus -= Devour_Container; Devour_Container += Math.floor(value * 0.5) user._paramPlus += Devour_Container; user._paramPlus += Devour_Container; </Custom Establish Effect> <Custom Remove Effect> user._paramPlus -= Devour_Container; user._paramPlus -= Devour_Container; Devour_Container = 0; </Custom Remove Effect>
Now read this carefully!
Do you see those user._paramPlus[x] parts? Those determine which param will be raised. I used the values 2 and 4 which refer to ATK (2) and MAT (4). Here’s a short list of what number refers to what param:
0 – HP
1 – MP
2 – ATK
3 – DEF
4 – MAT
5 – MDF
6 – AGI
7 – LUK
You can use as many user._paramPlus[x] as you want. If you decide to add a new param or change the ones in the code above, please remember that you have to change EACH iteration of that user._paramPlus[x].
Example: You’d like the state to raise ATK and DEF. So you wouldn’t touch user._paramPlus since that will raise ATK which is what you want. You’d change user._paramPlus though, since that raises MAT which you don’t want. So what you want to do, is to change each user._paramPlus to user._paramPlus since the number 3 refers to DEF.
If you want to change the amount that the states go up by just alter Line 4. The important part here is the one within the brackets. Change (value * 0.5) to anything you want. Value stands for the damage done to the enemy.
I know this Eval Collection post is rather complicated. If there are questions feel free to ask!