Y
Yonidam
Guest
Code:
Engineered Device
Events
Unit - A unit Learns a skill
Conditions
(Learned Hero Skill) Equal to Engineered Device
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Level of Engineered Device for (Triggering unit)) Equal to 1
(Ability being cast) Equal to Engineered Device
Then - Actions
Set EngineeredDevice = (Random integer number between 1 and 3)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
EngineeredDevice Equal to 1
Then - Actions
Hero - Create Light Explosive (Level 1 Item) and give it to (Triggering unit)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
EngineeredDevice Equal to 2
Then - Actions
Hero - Create Gnomish Spyglass (Level 1 Item) and give it to (Triggering unit)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
EngineeredDevice Equal to 3
Then - Actions
Hero - Create Repair Kit (Level 1 Item) and give it to (Triggering unit)
Else - Actions
Do nothing
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Level of Engineered Device for (Triggering unit)) Equal to 2
(Ability being cast) Equal to Engineered Device
Then - Actions
Set EngineeredDevice = (Random integer number between 1 and 6)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
EngineeredDevice Equal to 1
Then - Actions
Hero - Create Light Explosive (Level 1 Item) and give it to (Triggering unit)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
EngineeredDevice Equal to 2
Then - Actions
Hero - Create Gnomish Spyglass (Level 1 Item) and give it to (Triggering unit)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
EngineeredDevice Equal to 3
Then - Actions
Hero - Create Repair Kit (Level 1 Item) and give it to (Triggering unit)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
EngineeredDevice Equal to 4
Then - Actions
Hero - Create Medium Explosive (Level 2 Item) and give it to (Triggering unit)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
EngineeredDevice Equal to 5
Then - Actions
Hero - Create Gnomish Cloning Device (Level 2 Item) and give it to (Triggering unit)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
EngineeredDevice Equal to 6
Then - Actions
Hero - Create Rocket Boots (Level 2 Item) and give it to (Triggering unit)
Else - Actions
Do nothing
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Level of Engineered Device for (Triggering unit)) Equal to 3
(Ability being cast) Equal to Engineered Device
Then - Actions
Set EngineeredDevice = (Random integer number between 1 and 9)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
EngineeredDevice Equal to 1
Then - Actions
Hero - Create Light Explosive (Level 1 Item) and give it to (Triggering unit)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
EngineeredDevice Equal to 2
Then - Actions
Hero - Create Gnomish Spyglass (Level 1 Item) and give it to (Triggering unit)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
EngineeredDevice Equal to 3
Then - Actions
Hero - Create Repair Kit (Level 1 Item) and give it to (Triggering unit)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
EngineeredDevice Equal to 4
Then - Actions
Hero - Create Medium Explosive (Level 2 Item) and give it to (Triggering unit)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
EngineeredDevice Equal to 5
Then - Actions
Hero - Create Gnomish Cloning Device (Level 2 Item) and give it to (Triggering unit)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
EngineeredDevice Equal to 6
Then - Actions
Hero - Create Rocket Boots (Level 2 Item) and give it to (Triggering unit)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
EngineeredDevice Equal to 7
Then - Actions
Hero - Create Heavy Explosive (Level 3 Item) and give it to (Triggering unit)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
EngineeredDevice Equal to 8
Then - Actions
Hero - Create Trapper (Level 3 Item) and give it to (Triggering unit)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
EngineeredDevice Equal to 9
Then - Actions
Hero - Create Microchip (Level 3 Item) and give it to (Triggering unit)
Else - Actions
Do nothing
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Level of Engineered Device for (Triggering unit)) Equal to 4
(Ability being cast) Equal to Engineered Device
Then - Actions
Set EngineeredDevice = (Random integer number between 1 and 12)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
EngineeredDevice Equal to 1
Then - Actions
Hero - Create Light Explosive (Level 1 Item) and give it to (Triggering unit)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
EngineeredDevice Equal to 2
Then - Actions
Hero - Create Gnomish Spyglass (Level 1 Item) and give it to (Triggering unit)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
EngineeredDevice Equal to 3
Then - Actions
Hero - Create Repair Kit (Level 1 Item) and give it to (Triggering unit)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
EngineeredDevice Equal to 4
Then - Actions
Hero - Create Medium Explosive (Level 2 Item) and give it to (Triggering unit)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
EngineeredDevice Equal to 5
Then - Actions
Hero - Create Gnomish Cloning Device (Level 2 Item) and give it to (Triggering unit)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
EngineeredDevice Equal to 6
Then - Actions
Hero - Create Rocket Boots (Level 2 Item) and give it to (Triggering unit)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
EngineeredDevice Equal to 7
Then - Actions
Hero - Create Heavy Explosive (Level 3 Item) and give it to (Triggering unit)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
EngineeredDevice Equal to 8
Then - Actions
Hero - Create Trapper (Level 3 Item) and give it to (Triggering unit)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
EngineeredDevice Equal to 9
Then - Actions
Hero - Create Microchip (Level 3 Item) and give it to (Triggering unit)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
EngineeredDevice Equal to 10
Then - Actions
Hero - Create Gnomish Jumper Cables (Level 4 Item) and give it to (Triggering unit)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
EngineeredDevice Equal to 11
Then - Actions
Hero - Create Land Mine (Level 4 Item) and give it to (Triggering unit)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
EngineeredDevice Equal to 12
Then - Actions
Hero - Create Guard Tower (Level 4 Item) and give it to (Triggering unit)
Else - Actions
Do nothing
Else - Actions
Do nothing
Allright. I tested the ability many times and I can't get the items to generate. I have no clue what is wrong with this trigger. Any Ideas?


