• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Problem with one spell and one system

Status
Not open for further replies.
Level 9
Joined
May 27, 2006
Messages
498
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:
  • 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
        • Else - Actions:
      • 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
        • Else - Actions:
This spell trigger does special effects too, but it doesn`t wait for mana to fill and does not damage enemy units. I copied this spell from one of my other maps, where it worked correclty, and after copying it doesnt work ; / Please help, people.
Reputation point for help ;X
 
Last edited:
This is correct GUI:
cnp.jpg

Then paste it between the [TRIGGER]paste here[/TRIGGER] tags
 
Last edited:
Level 9
Joined
May 27, 2006
Messages
498
Now there is no problem with teleport, I fixed it... But i still have problem will the spell ;F

@PurplePoot
HappyTauren said:
  • (Picked unit) not equal to Hero Teleport
makes no sense to me...

I wrote like this... and they said that it`s not correct ; p

@Down
Sry, but i have had to translate some part of trigger to eng, and i didn`t know how to translate "loop" (but now i know :p)
 
Last edited:
Status
Not open for further replies.
Top