- Joined
- Jul 22, 2015
- Messages
- 3,485
I have a tower in my map that uses Phoenix Fire (Fire Blast (Tier #)) as one of its passive abilities. Unfortunately, Phoenix Fire does not appear in the command card of the unit that has it
My fix around this is giving the tower a "fake passive" which doesn't actually do anything but show a description. The fake passive has 6 levels on it, each level describing the damage its supposed to be dealing, DoT duration, etc.
Fire Blast (Tier #) is seperated into 3 different abilities because I want each tier to change the Missle Art. Since there are 3 tiers, that means I need 3 seperate abilities :3 Whenever the tower upgrades to its next level, I have to change both the level of the fake passive + phoenix fire passive. Below is my current approach of setting the neccesary levels to their relevant tower level o: is there a better and or more efficient way of doing this? I feel like my way is extremely amateur. I manually added comments from the thread to explain what's going on exactly.
Fire Blast (Tier #) is seperated into 3 different abilities because I want each tier to change the Missle Art. Since there are 3 tiers, that means I need 3 seperate abilities :3 Whenever the tower upgrades to its next level, I have to change both the level of the fake passive + phoenix fire passive. Below is my current approach of setting the neccesary levels to their relevant tower level o: is there a better and or more efficient way of doing this? I feel like my way is extremely amateur. I manually added comments from the thread to explain what's going on exactly.
-
Set UpgradedTower = (Triggering unit)
-
Set UpgradedTower_Level = (Point-value of UpgradedTower)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
-------- --------
-
-------- Checking if UpgradedTower has the fake passive because only Fire Towers will have this passive --------
-
-------- --------
-
(Level of Fire Blast (Fake Passive) for UpgradedTower) Greater than or equal to 1
-
-
Then - Actions
-
-------- --------
-
-------- If pont value = 2, set level of fake passive to level 2 --------
-
-------- If pont value = 3, set level of fake passive to level 3 --------
-
Unit - Set level of Fire Blast (Fake Passive) for UpgradedTower to UpgradedTower_Level
-
-------- --------
-
-------- Level 1 & 2 Tower have Tier 1 --------
-
-------- Level 3 & 4 Tower have Tier 2 --------
-
-------- Level 5 & 6 Tower have Tier 3 --------
-
-------- Units will always have level 1 by default, so I only have to set it to level 2 when they upgrade --------
-
Unit - Set level of Fire Blast (Tier 1) for UpgradedTower to 2
-
Unit - Set level of Fire Blast (Tier 2) for UpgradedTower to 2
-
Unit - Set level of Fire Blast (Tier 3) for UpgradedTower to 2
-
-
Else - Actions
-