- Joined
- Oct 20, 2019
- Messages
- 60
Hello, i'm trying to do a simple spell power system for my map and i can't figure out how to solve my problem, so im hoping to get some help here =)
i can make an item increase or lower the spell power on a hero, making that hero do more spell damage with his abilitys BUT...
heres my issue, for some reason the system can't really keep up with how much spell power each hero with spell power items should have and finally creating absurb amounts of spell power on heroes with those items so that they eventually one shot enemy targets with thier spells
i would really appreciate some help =)
Here's how it looks
SpellPowerInteger = no array
SpellPowerUnit = array 10
SpellPowerValue = Real array 10
SpellPowerZero = Real no array
i can make an item increase or lower the spell power on a hero, making that hero do more spell damage with his abilitys BUT...
heres my issue, for some reason the system can't really keep up with how much spell power each hero with spell power items should have and finally creating absurb amounts of spell power on heroes with those items so that they eventually one shot enemy targets with thier spells
i would really appreciate some help =)
Here's how it looks
SpellPowerInteger = no array
SpellPowerUnit = array 10
SpellPowerValue = Real array 10
SpellPowerZero = Real no array
-
SP Acquire
-
Events
- Unit - A unit Acquires an item
- Conditions
-
Actions
- Set VariableSet SpellPowerInteger = (Player number of (Owner of (Triggering unit)))
- Set VariableSet SpellPowerUnit[SpellPowerInteger] = (Triggering unit)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (SpellPowerUnit[SpellPowerInteger] has an item of type Common Spellstaff) Equal to True
-
Then - Actions
- Set VariableSet SpellPowerValue[SpellPowerInteger] = (SpellPowerValue[SpellPowerInteger] + (SpellPowerZero + 6.00))
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (SpellPowerUnit[SpellPowerInteger] has an item of type |c007d7d7dUncommon Spellstaff|r) Equal to True
-
Then - Actions
- Set VariableSet SpellPowerValue[SpellPowerInteger] = (SpellPowerValue[SpellPowerInteger] + (SpellPowerZero + 12.00))
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (SpellPowerUnit[SpellPowerInteger] has an item of type |c006969FFRare Spellstaff|r) Equal to True
-
Then - Actions
- Set VariableSet SpellPowerValue[SpellPowerInteger] = (SpellPowerValue[SpellPowerInteger] + (SpellPowerZero + 18.00))
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (SpellPowerUnit[SpellPowerInteger] has an item of type |cFFBE00FEEpic Spellstaff|r) Equal to True
-
Then - Actions
- Set VariableSet SpellPowerValue[SpellPowerInteger] = (SpellPowerValue[SpellPowerInteger] + (SpellPowerZero + 24.00))
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (SpellPowerUnit[SpellPowerInteger] has an item of type Common Battlestaff) Equal to True
-
Then - Actions
- Set VariableSet SpellPowerValue[SpellPowerInteger] = (SpellPowerValue[SpellPowerInteger] + (SpellPowerZero + 6.00))
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (SpellPowerUnit[SpellPowerInteger] has an item of type |c007d7d7dUncommon Battlestaff|r) Equal to True
-
Then - Actions
- Set VariableSet SpellPowerValue[SpellPowerInteger] = (SpellPowerValue[SpellPowerInteger] + (SpellPowerZero + 12.00))
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (SpellPowerUnit[SpellPowerInteger] has an item of type |c006969FFRare Battlestaff|r) Equal to True
-
Then - Actions
- Set VariableSet SpellPowerValue[SpellPowerInteger] = (SpellPowerValue[SpellPowerInteger] + (SpellPowerZero + 18.00))
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (SpellPowerUnit[SpellPowerInteger] has an item of type |cFFBE00FEEpic Battlestaff|r) Equal to True
-
Then - Actions
- Set VariableSet SpellPowerValue[SpellPowerInteger] = (SpellPowerValue[SpellPowerInteger] + (SpellPowerZero + 24.00))
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (SpellPowerUnit[SpellPowerInteger] has an item of type Common Book of Death) Equal to True
-
Then - Actions
- Set VariableSet SpellPowerValue[SpellPowerInteger] = (SpellPowerValue[SpellPowerInteger] + (SpellPowerZero + 12.00))
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (SpellPowerUnit[SpellPowerInteger] has an item of type |c007d7d7dUncommon Book of Death|r) Equal to True
-
Then - Actions
- Set VariableSet SpellPowerValue[SpellPowerInteger] = (SpellPowerValue[SpellPowerInteger] + (SpellPowerZero + 24.00))
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (SpellPowerUnit[SpellPowerInteger] has an item of type |c006969FFRare Book of Death|r) Equal to True
-
Then - Actions
- Set VariableSet SpellPowerValue[SpellPowerInteger] = (SpellPowerValue[SpellPowerInteger] + (SpellPowerZero + 36.00))
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (SpellPowerUnit[SpellPowerInteger] has an item of type |cFFBE00FEEpic Book of Death|r) Equal to True
-
Then - Actions
- Set VariableSet SpellPowerValue[SpellPowerInteger] = (SpellPowerValue[SpellPowerInteger] + (SpellPowerZero + 48.00))
- Else - Actions
-
If - Conditions
-
Events
-
SP Lose
-
Events
- Unit - A unit Loses an item
- Conditions
-
Actions
- Set VariableSet SpellPowerInteger = (Player number of (Owner of (Triggering unit)))
- Set VariableSet SpellPowerUnit[SpellPowerInteger] = (Triggering unit)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Item-type of (Item being manipulated)) Equal to Common Spellstaff
-
Then - Actions
- Set VariableSet SpellPowerValue[SpellPowerInteger] = (SpellPowerValue[SpellPowerInteger] - 6.00)
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Item-type of (Item being manipulated)) Equal to |c007d7d7dUncommon Spellstaff|r
-
Then - Actions
- Set VariableSet SpellPowerValue[SpellPowerInteger] = (SpellPowerValue[SpellPowerInteger] - 12.00)
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Item-type of (Item being manipulated)) Equal to |c006969FFRare Spellstaff|r
-
Then - Actions
- Set VariableSet SpellPowerValue[SpellPowerInteger] = (SpellPowerValue[SpellPowerInteger] - 18.00)
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Item-type of (Item being manipulated)) Equal to |cFFBE00FEEpic Spellstaff|r
-
Then - Actions
- Set VariableSet SpellPowerValue[SpellPowerInteger] = (SpellPowerValue[SpellPowerInteger] - 24.00)
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Item-type of (Item being manipulated)) Equal to Common Battlestaff
-
Then - Actions
- Set VariableSet SpellPowerValue[SpellPowerInteger] = (SpellPowerValue[SpellPowerInteger] - 6.00)
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Item-type of (Item being manipulated)) Equal to |c007d7d7dUncommon Battlestaff|r
-
Then - Actions
- Set VariableSet SpellPowerValue[SpellPowerInteger] = (SpellPowerValue[SpellPowerInteger] - 12.00)
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Item-type of (Item being manipulated)) Equal to |c006969FFRare Battlestaff|r
-
Then - Actions
- Set VariableSet SpellPowerValue[SpellPowerInteger] = (SpellPowerValue[SpellPowerInteger] - 18.00)
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Item-type of (Item being manipulated)) Equal to |cFFBE00FEEpic Battlestaff|r
-
Then - Actions
- Set VariableSet SpellPowerValue[SpellPowerInteger] = (SpellPowerValue[SpellPowerInteger] - 24.00)
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Item-type of (Item being manipulated)) Equal to Common Book of Death
-
Then - Actions
- Set VariableSet SpellPowerValue[SpellPowerInteger] = (SpellPowerValue[SpellPowerInteger] - 12.00)
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Item-type of (Item being manipulated)) Equal to |c007d7d7dUncommon Book of Death|r
-
Then - Actions
- Set VariableSet SpellPowerValue[SpellPowerInteger] = (SpellPowerValue[SpellPowerInteger] - 24.00)
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Item-type of (Item being manipulated)) Equal to |c006969FFRare Book of Death|r
-
Then - Actions
- Set VariableSet SpellPowerValue[SpellPowerInteger] = (SpellPowerValue[SpellPowerInteger] - 36.00)
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Item-type of (Item being manipulated)) Equal to |cFFBE00FEEpic Book of Death|r
-
Then - Actions
- Set VariableSet SpellPowerValue[SpellPowerInteger] = (SpellPowerValue[SpellPowerInteger] - 48.00)
- Else - Actions
-
If - Conditions
-
Events
-
SP Damage
-
Events
- Game - DamageModifierEvent becomes Equal to 1.00
-
Conditions
- IsDamageSpell Equal to True
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
Or - Any (Conditions) are true
-
Conditions
- (DamageEventSource has an item of type Common Spellstaff) Equal to True
- (DamageEventSource has an item of type |c007d7d7dUncommon Spellstaff|r) Equal to True
- (DamageEventSource has an item of type |c006969FFRare Spellstaff|r) Equal to True
- (DamageEventSource has an item of type |cFFBE00FEEpic Spellstaff|r) Equal to True
- (DamageEventSource has an item of type Common Battlestaff) Equal to True
- (DamageEventSource has an item of type |c007d7d7dUncommon Battlestaff|r) Equal to True
- (DamageEventSource has an item of type |c006969FFRare Battlestaff|r) Equal to True
- (DamageEventSource has an item of type |cFFBE00FEEpic Battlestaff|r) Equal to True
- (DamageEventSource has an item of type Common Book of Death) Equal to True
- (DamageEventSource has an item of type |c007d7d7dUncommon Book of Death|r) Equal to True
- (DamageEventSource has an item of type |c006969FFRare Book of Death|r) Equal to True
- (DamageEventSource has an item of type |cFFBE00FEEpic Book of Death|r) Equal to True
-
Conditions
-
Or - Any (Conditions) are true
-
Then - Actions
- Set VariableSet DamageEventAmount = (DamageEventAmount + SpellPowerValue[SpellPowerInteger])
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Events