Hello everyone, I am thinking of making a skill increase the user base off enemy stats (could increase the user by 2% of their stats for example). Looked into changing parameters (but that requires it to be a certain actor) and looking into adding a buff but dont know how to make it a variable base off enemy stats.
For info: I am trying to make a Gluttony skill. I am using VisuStella plugins.
Hi, I am not sure what the request is, but I'm guessing that you want a skill that increases the user's stats (HP, MP, ATK, etc...) by 2% of the enemy's same stats...? So the user gains 2% of the enemy's HP, 2% of the enemy's MP, 2% of the enemy's ATK, and so forth...?
No, because you're using the same variable on every line. If you say user.gluttony is equal to 2% of the target's defense, then it is.
If you say user.glottony is equal to 2% of the target's matk, then it is.
A variable can't mean multiple things. You would have to make each one a unique name.
Also, none of those lines are actually adding anything to the actor.