- Joined
- Jan 31, 2014
- Messages
- 67
I created a trigger
Its quite simple compared to others , but for some reason it wont work , I tried more then 10 times and nothing .Could someone who actually know this stuff (more then basic) help me out?
-
Strange meat
-
Events
-
Unit - Farmer 0003 <gen> Uses an item
-
-
Conditions
-
(Item-type of (Item being manipulated)) Equal to StrangeMeatItem
-
-
Actions
-
Set StrangeBuff = (Random integer number between 1 and 7)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
StrangeBuff Equal to 1
-
-
Then - Actions
-
Special Effect - Create a special effect attached to the chest of (Triggering unit) using Abilities\Spells\Human\Heal\HealTarget.mdl
-
Set StrangeEffect = (Last created special effect)
-
Unit - Set life of (Triggering unit) to ((Life of (Triggering unit)) + 5.00)
-
Wait 1.00 seconds
-
Special Effect - Destroy StrangeEffect
-
Unit - Set life of (Triggering unit) to ((Life of (Triggering unit)) + 5.00)
-
Wait 1.00 seconds
-
Unit - Set life of (Triggering unit) to ((Life of (Triggering unit)) + 5.00)
-
-
Else - Actions
-
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
StrangeBuff Equal to 2
-
-
Then - Actions
-
Special Effect - Create a special effect attached to the origin of (Triggering unit) using Abilities\Spells\Undead\AnimateDead\AnimateDeadTarget.mdl
-
Set StrangeEffect = (Last created special effect)
-
Unit - Set life of (Triggering unit) to ((Life of (Triggering unit)) - (Random real number between 5.00 and 10.00))
-
Wait 1.00 seconds
-
Unit - Set life of (Triggering unit) to ((Life of (Triggering unit)) - (Random real number between 5.00 and 10.00))
-
Special Effect - Destroy StrangeEffect
-
Wait 1.00 seconds
-
Unit - Set life of (Triggering unit) to ((Life of (Triggering unit)) - (Random real number between 5.00 and 10.00))
-
-
Else - Actions
-
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
StrangeBuff Equal to 3
-
-
Then - Actions
-
Special Effect - Create a special effect attached to the origin of (Triggering unit) using Abilities\Spells\Demon\DarkPortal\DarkPortalTarget.mdl
-
Set StrangeEffect = (Last created special effect)
-
Unit - Reset ability cooldowns for (Triggering unit)
-
Wait 1.00 seconds
-
Special Effect - Destroy StrangeEffect
-
-
Else - Actions
-
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
StrangeBuff Equal to 4
-
-
Then - Actions
-
Special Effect - Create a special effect attached to the origin of (Triggering unit) using Abilities\Spells\Undead\DeathPact\DeathPactTarget.mdl
-
Set StrangeEffect = (Last created special effect)
-
Hero - Add (Random integer number between 100 and 200) experience to (Triggering unit), Hide level-up graphics
-
Wait 1.00 seconds
-
Special Effect - Destroy StrangeEffect
-
-
Else - Actions
-
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
StrangeBuff Equal to 5
-
-
Then - Actions
-
Special Effect - Create a special effect attached to the chest of (Triggering unit) using Abilities\Weapons\ZigguratFrostMissile\ZigguratFrostMissile.mdl
-
Set StrangeEffect = (Last created special effect)
-
Unit - Set (Triggering unit) movement speed to 100.00
-
Wait 10.00 seconds
-
Unit - Set (Triggering unit) movement speed to (Default movement speed of (Triggering unit))
-
Special Effect - Destroy StrangeEffect
-
-
Else - Actions
-
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
StrangeBuff Equal to 6
-
-
Then - Actions
-
Special Effect - Create a special effect attached to the Origin of (Triggering unit) using Abilities\Weapons\SteamTank\SteamTankImpact.mdl
-
Set StrangeEffect = (Last created special effect)
-
Set StrangeGroup = (Units within 320.00 of (Position of (Triggering unit)))
-
Set StrangePoint = (Position of (Triggering unit))
-
Unit Group - Pick every unit in StrangeGroup and do (Actions)
-
Loop - Actions
-
Unit - Cause (Triggering unit) to damage circular area after 0.00 seconds of radius 320.00 at StrangePoint, dealing 40.00 damage of attack type Spells and damage type Normal
-
-
-
Wait 1.00 seconds
-
Special Effect - Destroy StrangeEffect
-
Custom script: call DestroyGroup(udg_StrangeGroup)
-
Custom script: call RemoveLocation(udg_StrangePoint)
-
-
Else - Actions
-
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
StrangeBuff Equal to 7
-
-
Then - Actions
-
Special Effect - Create a special effect attached to the Origin of (Triggering unit) using Abilities\Spells\Items\AItb\AItbTarget.mdl
-
Set StrangeEffect = (Last created special effect)
-
Wait 1.00 seconds
-
Unit - Set mana of (Triggering unit) to ((Mana of (Triggering unit)) + 1.00)
-
Wait 1.00 seconds
-
Special Effect - Destroy StrangeEffect
-
Unit - Set mana of (Triggering unit) to ((Mana of (Triggering unit)) + 1.00)
-
Wait 1.00 seconds
-
Unit - Set mana of (Triggering unit) to ((Mana of (Triggering unit)) + 1.00)
-
-
Else - Actions
-
-
-
Its quite simple compared to others , but for some reason it wont work , I tried more then 10 times and nothing .Could someone who actually know this stuff (more then basic) help me out?