Hey, I'm making a hero that has two separate spell sets. Each spell set has 4 spells. She has 2 constant spells as well: Switch Tier and her ultimate (Incantation)
The problem right now is that the Switch Tier spell is supposed to toggle between the two spell sets, but it isn't working as intended. My idea of how to do this was to remove the current spells from the hero, and then add the other spell set's spells to the hero and set those abilities' levels to the levels (stored variable) of the previous spell set spells. Each spell in the first spell set corresponds to a spell in the second spell set, and levelling up either one of the "pair" will level up both. This might be a bit confusing so I'll put it into context with the first "pair" of spells:
The hero has the abilities Summer Red (first spell set) and Illumination (second spell set). However, Illumination is initially not available (it's not in the hero pallette). Initially, you start out with the first spell set available. When you use Switch Tier, Summer Red will dissappear (removed) and will be replaced with Illumination. Illumination should be the same level as the removed Summer Red. Therefore, if you level up and decide to put a skill point into Summer Red or Illumination, it will level up BOTH at the same time.
The error is that the Illumination skill doesn't show up when I use Switch Tier, and the Summer Red skill doesn't dissappear. Also, when I cast Summer Red, for some reason Switch Tier goes on cooldown as if it had been used (I suspect it IS being used, but I don't know for sure or why).
Here are the triggers involved. You should also know that in the Object Manager, the Summer Red and Illumination custom abilities SHARE THE SAME NORMAL/LEARN BUTTON POSITION. Switch Tier's normal button position is (2, 1):
In the initialization trigger, the variable Patchouli_CurrentTier is set to 1
The problem right now is that the Switch Tier spell is supposed to toggle between the two spell sets, but it isn't working as intended. My idea of how to do this was to remove the current spells from the hero, and then add the other spell set's spells to the hero and set those abilities' levels to the levels (stored variable) of the previous spell set spells. Each spell in the first spell set corresponds to a spell in the second spell set, and levelling up either one of the "pair" will level up both. This might be a bit confusing so I'll put it into context with the first "pair" of spells:
The hero has the abilities Summer Red (first spell set) and Illumination (second spell set). However, Illumination is initially not available (it's not in the hero pallette). Initially, you start out with the first spell set available. When you use Switch Tier, Summer Red will dissappear (removed) and will be replaced with Illumination. Illumination should be the same level as the removed Summer Red. Therefore, if you level up and decide to put a skill point into Summer Red or Illumination, it will level up BOTH at the same time.
The error is that the Illumination skill doesn't show up when I use Switch Tier, and the Summer Red skill doesn't dissappear. Also, when I cast Summer Red, for some reason Switch Tier goes on cooldown as if it had been used (I suspect it IS being used, but I don't know for sure or why).
Here are the triggers involved. You should also know that in the Object Manager, the Summer Red and Illumination custom abilities SHARE THE SAME NORMAL/LEARN BUTTON POSITION. Switch Tier's normal button position is (2, 1):
In the initialization trigger, the variable Patchouli_CurrentTier is set to 1
-
Switch Tier
-
Events
- Unit - A unit Starts the effect of an ability
-
Conditions
- (Ability being cast) Equal to Switch Tier (Patchouli)
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- Patchouli_CurrentTier Equal to 1
-
Then - Actions
- Unit - Remove Summer Red (Patchouli) from Great Unmoving Library 0001 <gen>
- Unit - Add Illumination (Patchouli) to Great Unmoving Library 0001 <gen>
- Unit - Set level of Illumination (Patchouli) for Great Unmoving Library 0001 <gen> to SummerRed_Level
- Set Patchouli_CurrentTier = 2
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- Patchouli_CurrentTier Equal to 2
-
Then - Actions
- Unit - Remove Illumination (Patchouli) from Great Unmoving Library 0001 <gen>
- Unit - Add Summer Red (Patchouli) to Great Unmoving Library 0001 <gen>
- Unit - Set level of Summer Red (Patchouli) for Great Unmoving Library 0001 <gen> to Illumination_Level
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Events
Last edited: