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

passiv skill

Status
Not open for further replies.

Rui

Rui

Level 41
Joined
Jan 7, 2005
Messages
7,550
You would have to use triggers. When a unit buys that orb, you have to use

Random Intiger (or something like that <_<) between 1 and 100 (a function like this).

I don't know exacly how it works, because i never found it, i've searched for it so much : (.

-Rui
 
Level 13
Joined
May 5, 2004
Messages
1,330
Create sth like this:

Events
A Unit is attacked/taking damage

Conditions
Attacking Unit carries item

Actions
If (Random Integer between 1-100) equal to 1 then do (lightning spell) else (do nothing)
If (Random Integer between 1-100) equal to 2 then do (heal spell) else do nothing

Of course this isn't the correct syntax, but it should give you an idea how to create the trigger.
 
Status
Not open for further replies.
Top