• 🏆 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!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Need help for a spell!

Status
Not open for further replies.
Level 14
Joined
May 22, 2010
Messages
362
  • Melee Initialization
    • Events
      • Unit - A unit Finishes casting an ability
    • Conditions
      • (Ability being cast) Equal to Blink
    • Actions
      • Set Random = (Random integer number between 1 and 5)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • Random Equal to 3
        • Then - Actions
          • Hero - Modify Strength of (Casting unit): Add 10
        • Else - Actions
          • Do nothing
This will give the unit a 1 out of 5 chance to gain 10 str when it cast blink.
Change the triggering spell, chance and effect and you should be able to make what you want.
 
Level 5
Joined
Feb 3, 2012
Messages
107
can u be more specific? do u mean like a GUI spell or normal blizzard spell? if GUI WhiteDeath got it right. if normal blizzard spell, theres lots of tutorials out there ( i think). P.S. give WhiteDeath some +rep for helping.
 
Level 33
Joined
Mar 27, 2008
Messages
8,035
  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
    • If - Conditions
      • (Random integer number between 1 and 100) Less than or equal to 20
    • Then - Actions
      • -------- ACTIONS HERE --------
    • Else - Actions
Less than or equal to 20 from 1 ~ 100 = 20% of the time
 
Status
Not open for further replies.
Top