• 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.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

nid help plss... about item abilities

Status
Not open for further replies.
Level 2
Joined
Nov 17, 2006
Messages
11
how do i make an item that can cast spell....
eg: The Legendary Sword, got 20% chance to cast frostnova, 10% chance to cast eruption, 15% to cast chain lightning

how do they do those?? like dota(mealstorm, mjlonir)

help me plss ><
 
Maybe you should trigger it so if a unit attacks, pick a random number 1-5. If 1 cast chainl lightning on target. If two, cats eruption on target. You would probably put a dude behind teh scenes with the spell and infinite mana, pimped mana regain, and version sof the spells with no cooldown. Thats how I would do it, Im not sure about the professional way though.
 
The Solution
Events
Unit - A unit Is attacked
Conditions
(Item being manipulated) Equal to No item
Actions
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 15
Then - Actions
Unit - Create 1 Dummy Unit for (Owner of (Attacking unit)) at (Position of (Attacking unit)) facing (Facing of (Attacked unit)) degrees
Unit - Add a 1.50 second Generic expiration timer to (Last created unit)
Unit - Add Chain Lightning to (Last created unit)
Unit - Order (Last created unit) to Orc Far Seer - Chain Lightning (Attacked unit)
Else - Actions
Do nothing

For you :D
 
Change no item for your item, chain lightning by your spell and you can add variable for multiinstansibility.
 
Status
Not open for further replies.
Back
Top