If anyone ever played Sacred 2 there are multiple spells for a hero's. Four spell roles, like one is for DPS another are buffs and another are spells. But what I like about the spell system is how you can customize your spells.
Like a ice shard spell can be leveled to be increased in strength. But you can also upgrade it with two choices three times. So the first upgrade you can choose more shards or slow. Second upgrade can increase damage or increase shards. The third upgrade has a slow or more damage. How would I do that upgrade system along with leveling the spells. Would I need triggers?
I've done this on some of my heroes with upgrades. Its pretty roundabout but it works. I have a unit with 3 spells he can learn. For each spell, there are 3 attributes the hero can upgrade 5 times each. This is 48 learn abilities so I had to use triggers to apply the upgrades because there are only 20 learn slots on a learn ability.
Upgrade area:
Create 6 search areas that increase in size (1 for the starting size)
Create 5 Upgrades that set the search area for your PsiStorm ability progressively larger
Create a trigger; Event: Use Dummy ability - Action: Tech Tree - Set Psi Storm Area 1 upgrade level to 1 for player (Triggering player)
To do this, create an ability, and a dummy ability for each upgrade. The dummy abilities are put in the learn ability and then a trigger applies the upgrade when ever the dummy ability is used.
EDIT: Since I have to do this for 2 more heroes on my current map, I think I'll go ahead and make a tutorial for this in the next couple days.
If anyone ever played Sacred 2 there are multiple spells for a hero's. Four spell roles, like one is for DPS another are buffs and another are spells. But what I like about the spell system is how you can customize your spells.
Like a ice shard spell can be leveled to be increased in strength. But you can also upgrade it with two choices three times. So the first upgrade you can choose more shards or slow. Second upgrade can increase damage or increase shards. The third upgrade has a slow or more damage. How would I do that upgrade system along with leveling the spells. Would I need triggers?
EDIT: This is a wiki page on one of the spells
http://www.sacredwiki.org/index.php5/Sacred_2:Glacial_Thorns
@Keyeszx: Go
I've done this on some of my heroes with upgrades. Its pretty roundabout but it works. I have a unit with 3 spells he can learn. For each spell, there are 3 attributes the hero can upgrade 5 times each. This is 48 learn abilities so I had to use triggers to apply the upgrades because there are only 20 learn slots on a learn ability.
Ex. Learn Psionic Storm duration: 1 sec; cost: 50 energy; area: .25;
Upgrades: duration: 1; 1.5; 2; 2.5; cost: 5% reduced cost; 10%; 15%; 20%; area: .5; 1; 1.5; 2 (Increases cost by 25 each level);
Upgrade area: Create 6 search areas that increase in size (1 for the starting size) Create 5 Upgrades that set the search area for your PsiStorm ability progressively larger Create a trigger; Event: Use Dummy ability - Action: Tech Tree - Set Psi Storm Area 1 upgrade level to 1 for player (Triggering player)
To do this, create an ability, and a dummy ability for each upgrade. The dummy abilities are put in the learn ability and then a trigger applies the upgrade when ever the dummy ability is used.
EDIT: Since I have to do this for 2 more heroes on my current map, I think I'll go ahead and make a tutorial for this in the next couple days.
I made a tutorial: http://forums.sc2mapster.com/resources/tutorials/22961-data-in-game-customizable-abilities/