Denegoth
New Member
- Reaction score
- 18
Problem 1 SOLVED
This trigger used to work perfectly fine, but I changed something (Can't remember what) and now it crashes the map as soon as the spell is used.
Problem 2
Everything in this trigger works fine except the Life Bonus level increasing. The damage bonus works fine, but life bonus just stick at level 1 (+100 health). I have put the levels into the spell, so it isn't that I forgot that.
Trigger:
- Catch
- Events
- Unit - A unit Starts the effect of an ability
- Conditions
- (Ability being cast) Equal to Catch
- Actions
- Wait 1.00 seconds
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- BeastmasterCaught Equal to 0
- Then - Actions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (Life of (Target unit of ability being cast)) Less than or equal to ((Max life of (Target unit of ability being cast)) / 4.00)
- Then - Actions
- Wait 0.10 seconds
- Unit - Remove (Target unit of ability being cast) from the game
- Game - Display to (Player group((Owner of (Casting unit)))) the text: (|cff00FF00 + ((Name of (Target unit of ability being cast)) + caught!|r))
- Set BeastmasterCaught = 1
- Set BeastmasterUnit = (Unit-type of (Target unit of ability being cast))
- Unit - Add Release to (Casting unit)
- Else - Actions
- Game - Display to (Player group((Owner of (Casting unit)))) the text: |cff00FF00Enemy has...
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- Else - Actions
- Game - Display to (Player group((Owner of (Casting unit)))) the text: |cff00FF00You alrea...
- If - Conditions
- Events
This trigger used to work perfectly fine, but I changed something (Can't remember what) and now it crashes the map as soon as the spell is used.
Problem 2
Trigger:
- Release
- Events
- Unit - A unit Starts the effect of an ability
- Conditions
- (Ability being cast) Equal to Release
- Actions
- Set TempLevel = (50.00 + ((Real((Level of Catch for (Casting unit)))) x 50.00))
- Unit - Create 1 BeastmasterUnit for (Owner of (Casting unit)) at (Position of (Casting unit)) facing Default building facing degrees
- Animation - Change (Last created unit)'s size to (TempLevel%, TempLevel%, TempLevel%) of its original size
- Wait 0.10 seconds
- Unit - Add Beastmaster Life Bonus to (Last created unit)
- Unit - Add Beastmaster Damage Bonus to (Last created unit)
- Wait 0.10 seconds
- Unit - Set level of Beastmaster Life Bonus for (Last created unit) to (Level of Catch for (Triggering unit))
- Unit - Set level of Beastmaster Damage Bonus for (Last created unit) to (Level of Catch for (Triggering unit))
- Set BeastmasterCaught = 0
- Set BeastmasterUnit = No unit-type
- Unit - Remove Release from (Casting unit)
- Events
Everything in this trigger works fine except the Life Bonus level increasing. The damage bonus works fine, but life bonus just stick at level 1 (+100 health). I have put the levels into the spell, so it isn't that I forgot that.