- Joined
- Jun 8, 2018
- Messages
- 13
Hello.
First, I want to thank all of you again.
For the warm welcome, and all the help so far.
And I want to not only share the problems (and the suffering ;D ),
but also the joy. The joy in learning thins, and stuff working out.
For most of you it might be quite trivial, but for me it was a success
I´ve created my first properly working spell using GUI, using a lot of information from this tutorial:
"Basics of Trigger Enhancing Spells" - great stuff
I got inspired by the concept that you create dummy units anyway, and made a visible dummy for my buff.
The basic idea: My hero (SuperGrunt) uses his ChooBL! spell to creata a visible priest behind him that applies a "inner Fire" buff.
Excuse the dull names, just doing a map where I am testing a ton of stuff
I am very proud that i managed to figure out how to ensure the priest is always spawning behind the hero ^^
First question:
I do know about the function giving the Unit an expiration timer. The Problam witht that is that the priest dies (death animation and sound) after the expiration timer, and i dont want that. So i solved it with the remove from the game.
Is this a good solution, or can i somehow get rid of death animation and sound? And why is the expiration timer the way to go usually (tutorial said so)?
Second Question:
I made the unit invulnerable, because as it is a visible unit, i dont want it to interact with other units (absorbing attacks etc.) Is this a good idea? And isn´t that also a concern for normal dummy units? Cantg they get killed by a AOE spell?
Third Question:
I would like the Priest(and in future some otehr units that i want to applie buffs the same way) to appear as a Ghost/Spirit kind of thing. see Model file: Antonidas; Khel Thuzad(Ghost); Ghost (Keeper ghost frome nelf campaign units).
Is there a way, to applie this ghostly form to any unit? Or is it just another model file?
Else maybe etheral form would do a sufficient job, i hope i find a trigger for it, didn´t check on that yet though.
Fourth Question: (for another spell- Bash applying a thunderclap slow)
In the tutorial I learned that for passive, you can use as a dummySpell a passive that does nothing, and trigger the chance of the event and all the effects.
I guess there would be a way, so I can use the normal bash, and just add the slow via trigger.
Would this be better (in the sense of less triggers/code is generally better)? And can it be done (checking somehow when bash is hitting)
Thanks in advance,
best regards,
Cookie
First, I want to thank all of you again.
For the warm welcome, and all the help so far.
And I want to not only share the problems (and the suffering ;D ),
but also the joy. The joy in learning thins, and stuff working out.
For most of you it might be quite trivial, but for me it was a success
I´ve created my first properly working spell using GUI, using a lot of information from this tutorial:
"Basics of Trigger Enhancing Spells" - great stuff
I got inspired by the concept that you create dummy units anyway, and made a visible dummy for my buff.
The basic idea: My hero (SuperGrunt) uses his ChooBL! spell to creata a visible priest behind him that applies a "inner Fire" buff.
Code:
Spell Blessing
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to ChoooBL!
Actions
Unit - Create 1 BlessingPriest for (Owner of (Triggering unit)) at ((Position of (Triggering unit)) offset by 400.00 towards ((Facing of (Triggering unit)) + 180.00) degrees) facing (Position - Z of (Casting unit)) degrees
Unit - Make (Last created unit) Invulnerable
Unit - Add BlessingInnerFire (Neutral Hostile) to (Last created unit)
Unit - Set level of BlessingInnerFire (Neutral Hostile) for (Last created unit) to (Level of ChoooBL! for (Triggering unit))
Unit - Order (Last created unit) to Human Priest - Inner Fire (Triggering unit)
Wait 2.00 seconds
Unit - Remove (Last created unit) from the game
-------- "SuperGrunt" is the Hero; "ChooooBL!!" is the spell; "BlessingPriest" is kind of a dummy Unit that has the custom spell"Blessing" --------
Excuse the dull names, just doing a map where I am testing a ton of stuff
I am very proud that i managed to figure out how to ensure the priest is always spawning behind the hero ^^
First question:
I do know about the function giving the Unit an expiration timer. The Problam witht that is that the priest dies (death animation and sound) after the expiration timer, and i dont want that. So i solved it with the remove from the game.
Is this a good solution, or can i somehow get rid of death animation and sound? And why is the expiration timer the way to go usually (tutorial said so)?
Second Question:
I made the unit invulnerable, because as it is a visible unit, i dont want it to interact with other units (absorbing attacks etc.) Is this a good idea? And isn´t that also a concern for normal dummy units? Cantg they get killed by a AOE spell?
Third Question:
I would like the Priest(and in future some otehr units that i want to applie buffs the same way) to appear as a Ghost/Spirit kind of thing. see Model file: Antonidas; Khel Thuzad(Ghost); Ghost (Keeper ghost frome nelf campaign units).
Is there a way, to applie this ghostly form to any unit? Or is it just another model file?
Else maybe etheral form would do a sufficient job, i hope i find a trigger for it, didn´t check on that yet though.
Fourth Question: (for another spell- Bash applying a thunderclap slow)
In the tutorial I learned that for passive, you can use as a dummySpell a passive that does nothing, and trigger the chance of the event and all the effects.
I guess there would be a way, so I can use the normal bash, and just add the slow via trigger.
Would this be better (in the sense of less triggers/code is generally better)? And can it be done (checking somehow when bash is hitting)
Thanks in advance,
best regards,
Cookie