TheDarkBoy
New Member
- Reaction score
- 3
I have made a trigger that removes and adds a spell book. It works fine besides that the spell book doesnt contains all the spells or misplaces them.
Fire Magicians Spell Book[level1] Contains the ability "Molten Shield (Level 1)"
Fire Magicians Spell Book[level4] Contains the abilities "Molten Shield (Level 1)", "Pillar of Fire"
Fire Magicians Spell Book[level5] Contains the abilities "Molten Shield (Level 2)", "Pillar of Fire"
Fire Magicians Spell Book[level8] Contains the abilities "Molten Shield (Level 2)", "Pillar of Fire", "Flaming Wrath"
Fire Magicians Spell Book[level10] Contains the abilities "Molten Shield (Level 3)", "Pillar of Fire", "Flaming Wrath"
Fire Magicians Spell Book[level12] Contains the abilities "Molten Shield (Level 3)", "Pillar of Fire", "Flaming Wrath", "Meteor"
Not sure why this is leaking, but of some reason it is. Any ideas? (I have tried to change the button positions and spell types) Thanks.
EDIT: Thank you xAnaMorphine for the trigger
Fire Magicians Spell Book[level1] Contains the ability "Molten Shield (Level 1)"
Fire Magicians Spell Book[level4] Contains the abilities "Molten Shield (Level 1)", "Pillar of Fire"
Fire Magicians Spell Book[level5] Contains the abilities "Molten Shield (Level 2)", "Pillar of Fire"
Fire Magicians Spell Book[level8] Contains the abilities "Molten Shield (Level 2)", "Pillar of Fire", "Flaming Wrath"
Fire Magicians Spell Book[level10] Contains the abilities "Molten Shield (Level 3)", "Pillar of Fire", "Flaming Wrath"
Fire Magicians Spell Book[level12] Contains the abilities "Molten Shield (Level 3)", "Pillar of Fire", "Flaming Wrath", "Meteor"
Code:
Fire Magicians Spell Book
Events
Unit - A unit Gains a level
Conditions
(Unit-type of (Triggering unit)) Equal to Fire Magician
((Triggering unit) is A Hero) Equal to True
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Level of (Leveling Hero)) Equal to 4
Then - Actions
Unit - Remove Fire Magician Spell Book (Level 1) from (Triggering unit)
Unit - Add Fire Magician Spell Book (Level 4) to (Triggering unit)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Level of (Leveling Hero)) Equal to 5
Then - Actions
Unit - Remove Fire Magician Spell Book (Level 4) from (Triggering unit)
Unit - Add Fire Magician Spell Book (Level 5) to (Triggering unit)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Level of (Leveling Hero)) Equal to 8
Then - Actions
Unit - Remove Fire Magician Spell Book (Level 5) from (Triggering unit)
Unit - Add Fire Magician Spell Book (Level 8) to (Triggering unit)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Level of (Leveling Hero)) Equal to 10
Then - Actions
Unit - Remove Fire Magician Spell Book (Level 8) from (Triggering unit)
Unit - Add Fire Magician Spell Book (Level 10) to (Triggering unit)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Level of (Leveling Hero)) Equal to 12
Then - Actions
Unit - Remove Fire Magician Spell Book (Level 10) from (Triggering unit)
Unit - Add Fire Magician Spell Book (Level 12) to (Triggering unit)
Else - Actions
EDIT: Thank you xAnaMorphine for the trigger