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

problem with my spell

Status
Not open for further replies.
Level 1
Joined
Oct 12, 2004
Messages
2
hi i tryed to make a custom revive skill but theres a little problem. but 1st heres the spell:

revive prozent
Events
Unit - A unit Dies
Conditions
(Unit-type of (Dying unit)) Equal to Enforcer
Actions
Unit - Create 1 dummyreviveskill for Neutral Passive at (Position of (Dying unit)) facing Default building facing (270.0) degrees
Set reviveproz1 = (Random integer number between 1 and 5)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
reviveproz1 Equal to 1
Then - Actions
Do nothing
Else - Actions
Do nothing
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
reviveproz1 Equal to 2
Then - Actions
Do nothing
Else - Actions
Do nothing
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
reviveproz1 Equal to 3
Then - Actions
Do nothing
Else - Actions
Do nothing
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
reviveproz1 Equal to 4
Then - Actions
Do nothing
Else - Actions
Do nothing
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
reviveproz1 Equal to 5
Then - Actions
Wait 10.00 seconds
Hero - Instantly revive (Dying unit) at (Position of (Last created unit)), Show revival graphics
Else - Actions
Do nothing
Wait 12.00 seconds
Unit - Remove (Last created unit) from the game


so this spell gives the hero 20% chance to revive. but the problem is i want to make 3 lvls of the skill. each level with higher chance. so i need a trigger to check the skilllevel that the hero got. thats the point where i need help because i cant find anything to check the level of the skill.

sry if u cant understand anything. my english is not the best;) thx and bye
 
Level 1
Joined
Oct 13, 2005
Messages
3
its simple make a new trigger that if the ability level is equal to 1 then turn on the trigger u made then if ability level is equal to two turn of your trigger and turn on the other trigger that would be for the lvl 2 of the desired ability
 
Status
Not open for further replies.
Top