• Check out the results of the Techtree Contest #19!
  • 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.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

Item ability cast triggering

Status
Not open for further replies.
Level 10
Joined
Jun 13, 2010
Messages
398
Hi,
I want to make an item when carried, giving a chance to cast Chain Lightning.
But I don't want the player to be able to just click the item and manually cast it.

How do I prevent a player from cast it manually?

  • Item Hammer of Storms
    • Events
      • Unit - A unit Is attacked
    • Conditions
      • (Item-type of (Item carried by (Attacking unit) in slot 1)) Equal to Hammer of Storms (MH)
    • Actions
      • Set A_Caster = (Attacking unit)
      • Set A_SingleTarget = (Attacked unit)
      • Set A_Counter = (Random integer number between 1 and 10)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • A_Counter Less than or equal to 3
        • Then - Actions
          • Hero - Order A_Caster to use (Item carried by A_Caster of type Hammer of Storms (MH)) on A_SingleTarget
          • Game - Display to (All players) the text: yeee
        • Else - Actions
          • Do nothing
Now I know you can abuse it by spamming "stop", because the attack will be triggered even tho the attack ain't succesfully done.
 
Status
Not open for further replies.
Back
Top