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

Multicritical probleme

Status
Not open for further replies.
Level 4
Joined
Mar 6, 2007
Messages
73
I tried a trigger spell called instability with 3 critical ability called instability 1-2-3 in it.

Theres the trigger :

Instability
Events
Unit - A unit Learns a skill
Conditions
(Learned Hero Skill) Equal to Instability 1
Actions
Unit - Remove Instability 3 from (Triggering unit)
Unit - Remove Instability 2 from (Triggering unit)
Unit - Add Instability 3 to (Triggering unit)
Unit - Add Instability 2 to (Triggering unit)
Unit - Set Level of Instability 3 for (Triggering unit) to (Level of Instability 1 for (Triggering unit))
Unit - Set Level of Instability 2 for (Triggering unit) to (Level of Instability 1 for (Triggering unit))

I wanted to hide the icon of instability 2-3 so i disabled them. It stopped working. When i enabled all is ok but I want to hide the icons. Whats wrong??
 
Level 8
Joined
Jan 18, 2007
Messages
331
i think you shuld set the (triggering unit) to a more specific unit, then why remove the abilitys and then adding em agan? then if you disable any thing it wont work! disable=stop working .... welll try this.
 
Level 4
Joined
Mar 6, 2007
Messages
73
Instability
Events
Unit - A unit Learns a skill
Conditions
(Learned Hero Skill) Equal to Instability 1
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Level of Instability 1 for (Triggering unit)) Equal to 1
Then - Actions
Unit - Add Instability 2 to (Triggering unit)
Unit - Add Instability 3 to (Triggering unit)
Player Group - Pick every player in (All players) and do (Actions)
Loop - Actions
Player - Disable Instability 2 for (Picked player)
Player - Disable Instability 3 for (Picked player)
Else - Actions
Unit - Set Level of Instability 3 for (Triggering unit) to (Level of Instability 1 for (Triggering unit))
Unit - Set Level of Instability 2 for (Triggering unit) to (Level of Instability 1 for (Triggering unit))
I got inspiration from what u write and i did this. That work like i wanted. Thx :D
 
Status
Not open for further replies.
Top