# Modifying Skill Upgrades

With Skill Upgrades, you can change your Skills in many ways, per Passive Skills, Equipped Items, Active Status Effects/Crowd Controls, or anything else.

## GetSkillUpgrades:

<figure><img src="https://lh5.googleusercontent.com/Ou38COpC-hBnf0av2ROeApP1Dda3nd_mxQWbhVLJPdCG1u86fMrRad2TJiQOkKT0vFQwlB4BBFltg8ev9uZJDSz2o6teJDuSfdKqLvyp6jGZhTd3E4on6glPJh4fHbZ3y2BlymO94Przu6678SAiuJNP7tWbkm8nl9ve3G7VCkEC1lGmizr0f6fKw5zV" alt=""><figcaption></figcaption></figure>

Here you can set your variables for the upgrades.

For this example, we are using the _**Double Attack**_**&#x20;upgrade**, if we have the _**SM\_DoubleAttack**_ Skill learned we are setting **`DoubleAttackLearned`** to true.

All variables here will only get re-set on a newly learned Skill, LevelUp, Equipment Change, Status Effect change, or anything else that needs a Stat re-calculation.

## SetSkillUpgrades:

<figure><img src="https://lh5.googleusercontent.com/1aZ9ogoMivzAVayg6XAyrHXww8g1v3QCLZ02jWtYimzs6h1TaV4-EPtON-lQC2GQJwDFBi0ihT7p2LvJk5-Dor1niEfbTqJ0bH9ILUNZCVTs5Joz_yTGHgPBh-YGg9T-E7uhDTqLL5VvnP0o_PwLnkeVjSKKlkTugezcjgou6n2JPAcvdXBQzFXyamnY" alt=""><figcaption></figcaption></figure>

Here we are actually modifying the SkillStructure of the current used Skill. As for **Double Attack**, you can see that this skill upgrade is only available for the Physical Basic Attack Skill.&#x20;

Basically, that's how you add Skill Upgrades, there isn't just one way to add them, be creative and try to add as few calculations as possible into the **`SetSkillUpgrades`** and try to put it into the **`GetSkillsUpgrade`** instead.

Keep in mind that **`SetSkillUpgrades`** gets called every time you want to cast a skill.

\
