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