I got problem with one spell and one system... The first will be problem with system.
1. Done
2. Spell "Absorb". Its a ward-based spell. The ward have max mana 3000 points, it is invulnerable and invisible. Every 0.01 sec. i gets + (1 x level of Absorb for absorb_caster) mana points. If it has over (500 x level of Absorb for absorb_caster) mana points, it hits surrounding it enemy units with ((0.5 x (mana_ward_v x (level of Absorb for absorb_caster))) / (number of units in units within 400 from position of ward_v)). The trigger:
Reputation point for help ;X
1. Done
2. Spell "Absorb". Its a ward-based spell. The ward have max mana 3000 points, it is invulnerable and invisible. Every 0.01 sec. i gets + (1 x level of Absorb for absorb_caster) mana points. If it has over (500 x level of Absorb for absorb_caster) mana points, it hits surrounding it enemy units with ((0.5 x (mana_ward_v x (level of Absorb for absorb_caster))) / (number of units in units within 400 from position of ward_v)). The trigger:
- Absorb caster
- Events:
- Unit - A unit is casting ability
- Conditions:
- (Abiltiy being cast) equal to Absorb
- Actions:
- Set absorb_caster_v to (triggering unit)
-
absorb
-
Events
- Time - Every 0.01 seconds of game time
- Conditions:
-
Actions:
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions:
- (Number of units in (Units of type Ward)) equal to 1
-
Then - Actions
-
Unit Group - Pick every unit in (Units of type Ward) and do (Actions)
-
Loop:
- Set ward to (Picked unit)
- Unit - Set mana of (Picked unit) to ((Mana of (Picked unit)) + (1.00 x (Real((Level of Absorb for absorb_caster)))))
- Set ward_mana = (Mana of ward)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions:
- (Mana of (Picked unit)) greater or equal to (500.00 x (Real((Level of Absorb for absorb_caster))))
-
Then - Actions:
- Set ward_varia to (Random integer number between 1 and 10)
- If (ward_varia equal to 6) then do (Unit Group - Pick every unit in (Units within 400.00 of (Position of ward)) and do (If (((Owner of (Picked unit)) equal to Gracz12 (Brown)) or ((Owner of (Picked unit)) equal to Neutral - enemy )) then do (Unit - Cause ward to damage (Picked unit), dealing ((0.5 x (Real((Level of Absorb for absorb_caster))))) / (Real((Number of units in (unit within 400.00 of (position of ward))))) else do (Do nothing)
- If (ward_varia equal to 6) then do (Grupa jednostek - Pick every unit in (Units within 400.00 of (Position of ward)) and do (If (((Owner of (Picked unit)) equal to Gracz12 (Brown)) or ((Owner of (Picked unit)) equal to Neutral - enemy )) then do (Special Effect - Create a special effect at (position of (picked unit)) using Abilities\Spells\NightElf\Blink\BlinkTarget.mdl else do (Do nothing)
- If (ward_varia equal to 6) then do (Unit - Kill ward) else do (Do nothing)
-
Else - Actions:
- Do nothing
-
If - Conditions:
-
Loop:
-
Unit Group - Pick every unit in (Units of type Ward) and do (Actions)
- Else - Actions:
-
If - Conditions:
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions:
- (Number of units in (Units of type Ward)) greater than 1
-
Then - Actions:
-
Unit Group - Pick every unit in (Units of type Ward) and do (Actions)
-
Loop:
- Unit - Kill (Picked unit)
- Special Effect - Create a special effect at (Position of (Picked unit)) using Units\NightElf\Wisp\WispExplode.mdl
-
Loop:
-
Unit Group - Pick every unit in (Units of type Ward) and do (Actions)
- Else - Actions:
-
If - Conditions:
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Events
Reputation point for help ;X
Last edited: