- Joined
- May 15, 2009
- Messages
- 191
Hey everyone, thx in advance if you try to help.
I wanted to make a spell where each of your abilities would cost no mana, and have a lower cooldown for a duration(Spell is called Shadow Trance, and is based off of Metamorphosis, but is mostly triggered). However, whenever I use the spell, it works for like 2 seconds and my game crashes with Critical Error.
So, I've nailed down the problem to this one trigger.
I wanted to make a spell where each of your abilities would cost no mana, and have a lower cooldown for a duration(Spell is called Shadow Trance, and is based off of Metamorphosis, but is mostly triggered). However, whenever I use the spell, it works for like 2 seconds and my game crashes with Critical Error.
So, I've nailed down the problem to this one trigger.
-
Shadow Trance
-
Events
- Unit - A unit Starts the effect of an ability
-
Conditions
- (Ability being cast) Equal to Shadow Trance
-
Actions
- Set ShadowBolt_Level = (Level of Shadow Bolt for (Triggering unit))
- Set HastenDecay_Level = (Level of Hasten Decay for (Triggering unit))
- Set RuneShield_Level = (Level of Rune Shield for (Triggering unit))
- Set ShadowTrance_Level = (Level of Shadow Bolt for (Triggering unit))
- Unit - Remove Shadow Bolt from (Triggering unit)
- Unit - Remove Hasten Decay from (Triggering unit)
- Unit - Remove Rune Shield from (Triggering unit)
- Unit - Remove Shadow Trance from (Triggering unit)
- Unit - Add Twillight Bolt to (Triggering unit)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- ShadowBolt_Level Greater than 0
-
Then - Actions
- Unit - Add Shadow Bolt (Shadow Trance) to (Triggering unit)
- Unit - Set level of Shadow Bolt (Shadow Trance) for (Triggering unit) to ShadowBolt_Level
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- HastenDecay_Level Greater than 0
-
Then - Actions
- Unit - Add Hasten Decay (Shadow Trance) to (Triggering unit)
- Unit - Set level of Hasten Decay (Shadow Trance) for (Triggering unit) to HastenDecay_Level
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- RuneShield_Level Greater than 0
-
Then - Actions
- Unit - Add Rune Shield (Shadow Trance) to (Triggering unit)
- Unit - Set level of Rune Shield (Shadow Trance) for (Triggering unit) to RuneShield_Level
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- ShadowTrance_Level Equal to 1
-
Then - Actions
- Countdown Timer - Start ShadowTrance_Timer as a One-shot timer that will expire in 7.00 seconds
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- ShadowTrance_Level Equal to 2
-
Then - Actions
- Countdown Timer - Start ShadowTrance_Timer as a One-shot timer that will expire in 10.00 seconds
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- ShadowTrance_Level Equal to 3
-
Then - Actions
- Countdown Timer - Start ShadowTrance_Timer as a One-shot timer that will expire in 13.00 seconds
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
Events