I have a unit that can learn lots of spells during level up, but it can only have 4 spells at once. It learns the first spell at lvl 1, second at lvl 3, third at lvl 7, fourth at lvl 10. The fifth spell must be learned at lvl 13, but to do so the player must give up on one of the previous spells to learn the new one. So, if he types is -change 1, the first spell will be changed, if he types -change 2, the second will be changed, and so on until the fourth spell.
Let's say the palyer types in -change 2 to change his second spell.
To do so, i used
- first spell remains the same
- second spell is replaced with the third spell
- third spell is replaced with the fourth spell
- fourth spell is the new learned spell
I have the Art - Button position to 0,2 so that each spell will be moved towards bottom left corner.
So how do i do that the abilities won't swap places any more?
Let's say the palyer types in -change 2 to change his second spell.
To do so, i used
-
Events
-
player types is -change 2
-
-
Conditions
-
these are not important right now
-
-
Actions
-
Unit - Remove Ability2 from (Picked Unit)
-
Unit - Add NewAbility to (Picked Unit)
-
- first spell remains the same
- second spell is replaced with the third spell
- third spell is replaced with the fourth spell
- fourth spell is the new learned spell
I have the Art - Button position to 0,2 so that each spell will be moved towards bottom left corner.
So how do i do that the abilities won't swap places any more?