- Joined
- Mar 13, 2008
- Messages
- 126
SIMPLE WAY TO MAKE PASSIVE SPELLS
I'm sure you tried to make some passive spells that should fire on attack. You probably triggered it using unit is attacked. That is bad because trigger takes effect as soon your unit attacks so even if he misses! You can notice it very good on ranged atttacks. There are many JASS triggers that are complicate and hard for beginners. So i found a way to make it with almost no triggers, except ofcourse spell effect.
First lets explain ability Orb of Slow to those who don't know what this is. That ability gives you X% chance (X is modifiable number) to make it cast some spell on attack. Perfect! It just has one MAJOR flaw... It takes effect only on ordered attack. We'll fix that!
Now just make some dummy spell and use Orb of Slow ability to make it cast on, for example, 50% chance. Make a new trigger and add: „Unit - A unit Starts the effect of an ability“ event. Use conditions and actions here to make your desired spell effects.
And now we shall make it cast normally on 50% chance on EVERY, not just ordered attacks! Add this trigger also:
Pls give credits if used and more importantly POST COMMENTS!
Thanks for your time!
I'm sure you tried to make some passive spells that should fire on attack. You probably triggered it using unit is attacked. That is bad because trigger takes effect as soon your unit attacks so even if he misses! You can notice it very good on ranged atttacks. There are many JASS triggers that are complicate and hard for beginners. So i found a way to make it with almost no triggers, except ofcourse spell effect.
First lets explain ability Orb of Slow to those who don't know what this is. That ability gives you X% chance (X is modifiable number) to make it cast some spell on attack. Perfect! It just has one MAJOR flaw... It takes effect only on ordered attack. We'll fix that!
Now just make some dummy spell and use Orb of Slow ability to make it cast on, for example, 50% chance. Make a new trigger and add: „Unit - A unit Starts the effect of an ability“ event. Use conditions and actions here to make your desired spell effects.
And now we shall make it cast normally on 50% chance on EVERY, not just ordered attacks! Add this trigger also:
-
Passive Fix
-
Events
- Unit - A unit Is attacked
- Conditions
-
Actions
- Wait 0.00 seconds
- Unit - Order (Attacking unit) to Attack (Attacked unit)
- Wait 0.00 seconds
- Unit - Order (Ordered unit) to Stop
-
Events
Pls give credits if used and more importantly POST COMMENTS!
Thanks for your time!
Last edited: