I'm trying to create an item that reduces the mana cost of all the hero's skills. But it's not working. Strangely, when I learn a hero's skill point, the mana cost of that skill changes even though I haven't created an event for it.
Can someone test this field mana cost function? And show me a solution?
Item Description: When holding this item reduces the mana cost of all hero skills by 50%.
I know I'll have to create a Trigger for when the hero learns a skill, to update the item's effect.
Can someone test this field mana cost function? And show me a solution?
Item Description: When holding this item reduces the mana cost of all hero skills by 50%.
I know I'll have to create a Trigger for when the hero learns a skill, to update the item's effect.
-
Sobe Mask
-
Events
-
Unit - A unit Acquires an item
-
-
Conditions
-
(Item-type of (Item being manipulated)) Equal to Máscara Sobi
-
-
Actions
-
For each (Integer A) from 1 to 4, do (Actions)
-
Loop - Actions
-
Ability - Set Ability: (Unit: (Hero manipulating item)'s Ability with Ability Code: Hero_Abilities[(Integer A)])'s Integer Level Field: Mana Cost ('amcs') of Level: (Level of Hero_Abilities[(Integer A)] for (Hero manipulating item)) to ((For (Hero manipulating item), Mana cost of Hero_Abilities[(Integer A)], Level (Level of Hero_Abilities[(Integer A)] for (Hero manipulating item)).) / 2)
-
-
-
Ability - Set Ability: (Unit: (Hero manipulating item)'s Ability with Ability Code: Luz Sagrada )'s Integer Level Field: Mana Cost ('amcs') of Level: (Level of Luz Sagrada for (Hero manipulating item)) to ((For (Hero manipulating item), Mana cost of Luz Sagrada , Level (Level of Luz Sagrada for (Hero manipulating item)).) / 2)
-
-
-
Sobe Mask off
-
Events
-
Unit - A unit Loses an item
-
-
Conditions
-
(Item-type of (Item being manipulated)) Equal to Máscara Sobi
-
-
Actions
-
For each (Integer A) from 1 to 4, do (Actions)
-
Loop - Actions
-
Ability - Set Ability: (Unit: (Hero manipulating item)'s Ability with Ability Code: Hero_Abilities[(Integer A)])'s Integer Level Field: Mana Cost ('amcs') of Level: (Level of Hero_Abilities[(Integer A)] for (Hero manipulating item)) to (Mana cost of Hero_Abilities[(Integer A)], Level (Level of Hero_Abilities[(Integer A)] for (Hero manipulating item)).)
-
-
-
-
-
Hero
-
Events
-
Unit - A unit Sells a unit
-
-
Conditions
-
((Sold unit) is A Hero) Equal to True
-
-
Actions
-
Unit - Remove Taverna 0006<gen> from the game
-
Unit - Remove Camponês (Gênero masculino) 0000<gen> from the game
-
Set VariableSet Hero = (Sold unit)
-
Hero - Set Hero Hero-level to 10, Hide level-up graphics
-
Hero - Modify unspent skill points of Hero: Subtract 3 points
-
-------- Items --------
-
Player - Set Player 1 (Red).Current gold to 1000
-
Unit - Create 1 Mercado for Neutral Passive at (Position of Taverna 0006<gen>) facing Default building facing degrees
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Unit-type of (Sold unit)) Equal to Dark Ranger
-
-
Then - Actions
-
Ability - Set Ability: (Unit: (Sold unit)'s Ability with Ability Code: Onda de Choque )'s Integer Level Field: Attacks Prevented ('Nsi1') of Level: 1 to 8
-
-
Else - Actions
-
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Unit-type of (Sold unit)) Equal to Paladino
-
-
Then - Actions
-
Set VariableSet Hero_Abilities[1] = Martelo da Justiça
-
Set VariableSet Hero_Abilities[2] = Luz Sagrada
-
Set VariableSet Hero_Abilities[3] = Retribuição
-
Set VariableSet Hero_Abilities[4] = Intervenção Divina
-
-
Else - Actions
-
-
-