• 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.

Chain Lighting Autocast need ???

Status
Not open for further replies.
Level 2
Joined
Jul 3, 2007
Messages
8
I need ability(passive) 20% chance to cast chain lightning...is it possible... i need triggers or map pls...am newbie :eekani:
 
Level 16
Joined
Mar 26, 2004
Messages
569
You'll need to use integers and a dummy unit. Trying to find the tut.

EDIT: Can't find it :s

EDIT2: I'll make a small example.
You'll have to prepare 2 abilities: The passive and active.

PASSIVE:
You can base this off critical strike (it's just for show). Just set critical strike chance to 0.

ACTIVE:
Base this one off of chainlightning. And make sure to set it's manacost to 0, else the dummy can't cast it (unless the dummy has mana for it.)

The order that you give the unit in the trigger needs to be the same that you based the ability of.

  • Events
    • Unit - A unit Is attacked
  • Conditions
    • (Unit-type of (Attacking unit)) Equal to Type
    • (Level of Chain Lightning(Passive) for (Attacking unit)) Greater than 0
  • Actions
    • Set Spell_Int = (Random integer number between 1 and 100)
    • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      • If - Conditions
        • Spell_Int Less than or equal to 20
      • Then - Actions
        • Unit - Create 1 Dummy for (Owner of (Attacking unit)) at (Position of (Attacking unit)) facing Default building facing (270.0) degrees
        • Unit - Add a 1.00 second Generic expiration timer to (Last created unit)
        • Unit - Add TheSpell(Based off Chain Lightning) to (Last created unit)
        • Unit - Order (Last created unit) to Orc Far Seer - Chain Lightning (Attacked unit)
      • Else - Actions
        • Do nothing
EDIT3: If someone can confirm that a tutorial that contains this hasn't been made, i'd gladly do it.
 

Attachments

  • PassiveChain.w3x
    14.7 KB · Views: 50
Last edited:
Level 2
Joined
Jul 3, 2007
Messages
8
A did the trigger...they are like twins but....doesnt work...maybe i have a wrong in the dummy...
 
Last edited:
Level 40
Joined
Dec 14, 2005
Messages
10,532
You could shorten the comparison

  • Spell_Int Less than or equal to 20
by making it these,
Set Spell_Int = (Random integer number between 1 and 10)
-and-
  • Spell_Int less than or equal to 2

Which makes absolutely no difference, and he could also make it =1 between 1 and 5.

Also, you can use the 'Orb of Slow' ability with Chain Lighting attached and your chance inputted.
 
Level 1
Joined
Mar 23, 2008
Messages
2
base the spell off of orb of ligning (new). change the purge to a no mana chain ligning.not that hard to do.:hohum:
 
Status
Not open for further replies.
Top