• 💀 Happy Halloween! 💀 It's time to vote for the best terrain! Check out the entries to Hive's HD Terrain Contest #2 - Vampire Folklore.❗️Poll closes on November 14, 2023. 🔗Click here to cast your vote!
  • 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • 🏆 HD Level Design Contest #1 is OPEN! Contestants must create a maze with at least one entry point, and at least one exit point. The map should be made in HD mode, and should not be openable in SD. Only custom models from Hive's HD model and texture sections are allowed. The only exceptions are DNC models and omnilights. This is mainly a visual and design oriented contest, not technical. The UI and video walkthrough rules are there to give everyone an equal shot at victory by standardizing how viewers see the terrain. 🔗Click here to enter!

[Spell] Need help with passive spell

Status
Not open for further replies.
Level 4
Joined
Dec 16, 2013
Messages
84
Hello how to make skill like this
sorry for my english
Every hero cast spell 1 and 2, create a random explosion arround the hero?

The spell is: Passive, only trigger by casting active spell 1 and 2, and i can setup explosion range arround the hero

how? thanks
 
Level 20
Joined
Jul 14, 2011
Messages
3,213
What's your native language?

1) On Cast Spell1 set Boolean1 == True.
2) On Cast Spell2 check if Bollean1 == True, if it's, do te explotion (Either triggered or dummy spell, however you want) and set Boolean1 == false agaín.
3) If there is an specific time-lapse the unit has to cast the Spell2 after having used Spell1, use a timer on Spell1 Cast to set the Boolean1 == false after it expires.
 
Level 25
Joined
May 11, 2007
Messages
4,652
  • asddasdas
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Level of Passive ability that allows the player to do an explosion for (Triggering unit)) Greater than 0
      • Or - Any (Conditions) are true
        • Conditions
          • (Ability being cast) Equal to Active Ability 1
          • (Ability being cast) Equal to Active Ability 2
    • Actions
      • -------- Do your effect here --------
      • Set ExplosionDamage = 100.00
      • Set ExplosionRadius = 300.00
      • Set tempPoint1 = (Position of (Triggering unit))
      • Set tempGroup1 = (Units within ExplosionRadius of tempPoint1 matching ((((Owner of (Matching unit)) is an enemy of (Owner of (Triggering unit))) Equal to True) and (((Matching unit) is alive) Equal to True)))
      • Unit Group - Pick every unit in tempGroup1 and do (Actions)
        • Loop - Actions
          • Unit - Cause (Triggering unit) to damage (Picked unit), dealing ExplosionDamage damage of attack type Spells and damage type Normal
      • -------- Special Effects --------
      • Special Effect - Create a special effect at tempPoint1 using Abilities\Weapons\Mortar\MortarMissile.mdl
      • Special Effect - Destroy (Last created special effect)
      • -------- Cleanup the variables/leaks, I'm too lasy atm :) --------
 
Level 4
Joined
Dec 16, 2013
Messages
84
  • asddasdas
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Level of Passive ability that allows the player to do an explosion for (Triggering unit)) Greater than 0
      • Or - Any (Conditions) are true
        • Conditions
          • (Ability being cast) Equal to Active Ability 1
          • (Ability being cast) Equal to Active Ability 2
    • Actions
      • -------- Do your effect here --------
      • Set ExplosionDamage = 100.00
      • Set ExplosionRadius = 300.00
      • Set tempPoint1 = (Position of (Triggering unit))
      • Set tempGroup1 = (Units within ExplosionRadius of tempPoint1 matching ((((Owner of (Matching unit)) is an enemy of (Owner of (Triggering unit))) Equal to True) and (((Matching unit) is alive) Equal to True)))
      • Unit Group - Pick every unit in tempGroup1 and do (Actions)
        • Loop - Actions
          • Unit - Cause (Triggering unit) to damage (Picked unit), dealing ExplosionDamage damage of attack type Spells and damage type Normal
      • -------- Special Effects --------
      • Special Effect - Create a special effect at tempPoint1 using Abilities\Weapons\Mortar\MortarMissile.mdl
      • Special Effect - Destroy (Last created special effect)
      • -------- Cleanup the variables/leaks, I'm too lasy atm :) --------

thank you
 
Status
Not open for further replies.
Top