Advena
Just casually observing atm ;)
- Reaction score
- 42
Yo guys, I have a problem.
I have a few spells (the following two in particular) that show their special effects properly/at all.
The special effects assigned to the them in the trigger fail to show, and I can't find the problem. I can't figure it out at all :banghead:
*The first one is based on storm bolt, using a high-speed (like, almost maxed out) projectile with no projectile animation. I take the damage directly from the ability. However, I want it to look like a bolt of lightning from the sky hitting the ground and creating a "thunderclap" effect while the trigger damages the units close to the target.
*The second ability is based on an Aura with 0 in all stat fields (0.01 aoe, self-only). It's meant to create a shield (I have two other triggers realated to that one, but they're not relevant when dealing with the effects so I put them in a spoiler below to save som space and make this look less like a novel) that will make the hero invulnerable a few seconds and heal him a set amount of hp every time someone casts a spell on him. It only works once every 60/40/20 sec tho, using a timer and blablabla
I haven't exactly got it to work very good yet, but I will eventually
Anyhow, any spontaneous thoughts about why my effects not showing?
+rep for help and any ideas, of course
~~
I have a few spells (the following two in particular) that show their special effects properly/at all.
The special effects assigned to the them in the trigger fail to show, and I can't find the problem. I can't figure it out at all :banghead:
*The first one is based on storm bolt, using a high-speed (like, almost maxed out) projectile with no projectile animation. I take the damage directly from the ability. However, I want it to look like a bolt of lightning from the sky hitting the ground and creating a "thunderclap" effect while the trigger damages the units close to the target.
*The second ability is based on an Aura with 0 in all stat fields (0.01 aoe, self-only). It's meant to create a shield (I have two other triggers realated to that one, but they're not relevant when dealing with the effects so I put them in a spoiler below to save som space and make this look less like a novel) that will make the hero invulnerable a few seconds and heal him a set amount of hp every time someone casts a spell on him. It only works once every 60/40/20 sec tho, using a timer and blablabla
I haven't exactly got it to work very good yet, but I will eventually
Anyhow, any spontaneous thoughts about why my effects not showing?
Code:
Thunder Strike
Events
Unit - A unit Finishes casting an ability
Conditions
(Ability being cast) Equal to Thunder Strike (Thunder Bull)
Actions
Set ThunderTarget = (Target unit of ability being cast)
Wait 0.01 seconds
Special Effect - Create a special effect attached to the origin of ThunderTarget using Doodads\Cinematic\Lightningbolt\Lightningbolt.mdl
Special Effect - Destroy (Last created special effect)
Wait 0.04 seconds
Unit Group - Pick every unit in (Units in (Region centered at (Position of ThunderTarget) with size (228.00, 228.00))) and do (Actions)
Loop - Actions
Unit - Cause (Casting unit) to damage (Picked unit), dealing ((Real((Level of Thunder Strike (Thunder Bull) for (Casting unit)))) x 50.00) damage of attack type Spells and damage type Lightning
Special Effect - Create a special effect attached to the origin of ThunderTarget using Abilities\Spells\Human\Thunderclap\ThunderClapCaster.mdl
Special Effect - Destroy (Last created special effect)
Wait 0.01 seconds
Special Effect - Create a special effect attached to the origin of ThunderTarget using Abilities\Weapons\Bolt\BoltImpact.mdl
Special Effect - Destroy (Last created special effect)
_
Code:
StaticShield Setup1
Events
Unit - A unit Learns a skill
Conditions
(Learned Hero Skill) Equal to Static Shield (Thunder Bull) UNFINISHED
Actions
Countdown Timer - Start StaticShield_timer as a Repeating timer that will expire in (60.00 / (Real((Level of Static Shield (Thunder Bull) UNFINISHED for Raur_ThunderBull)))) seconds
Set StaticShield_On = True
Special Effect - Create a special effect attached to the chest of Raur_ThunderBull using Abilities\Spells\Orc\LightningShield\LightningShieldTarget.mdl
Set SFX_StaticShield = (Last created special effect)
StaticShield Setup2
Events
Time - StaticShield_timer expires
Conditions
Actions
Set StaticShield_On = True
Special Effect - Create a special effect attached to the chest of Raur_ThunderBull using Abilities\Spells\Orc\LightningShield\LightningShieldTarget.mdl
_
Code:
Static Shield
Events
Unit - A unit Finishes casting an ability
Conditions
And - All (Conditions) are true
Conditions
StaticShield_On Equal to True
(Target unit of ability being cast) Equal to Raur_ThunderBull
Actions
Special Effect - Create a special effect attached to the origin of ThunderTarget using Abilities\Spells\Orc\Purge\PurgeBuffTarget.mdl
Special Effect - Destroy (Last created special effect)
Unit - Make Raur_ThunderBull Invulnerable
Wait 0.10 seconds
Unit - Set life of Raur_ThunderBull to ((Life of Raur_ThunderBull) + (50.00 x (Real((Level of Static Shield (Thunder Bull) UNFINISHED for Raur_ThunderBull)))))
Special Effect - Create a special effect attached to the origin of ThunderTarget using Abilities\Weapons\Bolt\BoltImpact.mdl
Special Effect - Destroy (Last created special effect)
Set StaticShield_On = False
Wait 2.90 seconds
Unit - Make Raur_ThunderBull Vulnerable
Special Effect - Destroy SFX_StaticShield
_
+rep for help and any ideas, of course
~~