M
MegaKill
Guest
Hi, i made this tutorial for starters who don't understand other hard tutorials, this tutorial explain basic GUI spells and intermediatea and medium.
We will be talking about:
1)GUI: a)what is it? b)is it hard?
2)Triggers: a)what are they? b)variables
3)Spells: a)easy spells b)medium spells c)intermediate
1)GUI:
a)GUI stands for graphical user interface, which is something blizzard made to ease up triggers, b)its not hard at all to learn, i perfected it in 2 weeks :banghead: lol
2)Triggers:
a)triggers are simple follow-up actions that u tell them what to cause and when to cause it :shades:, they contain three main parts event-condition-action, are u confused? (hope not), the event simply says when the trigger should start ex:
, that sounds quite smooth on the ears, it simply tells the trigger to start when a unit starts the effect of an ability , the condition tells the trigger what does it require to happen, ex:
here u tell the trigger to start when a unit casts the ability animate dead.
And finally we have the action, which tells the trigger what to do when it starts, now here we want it to pause the casting unit what do we do?
Know we have a full complete leakless trigger that pauses the casting unit when it casts a certain spell, i hope u understood what are triggers! lol, b) Variables: variables make triggers very easy to make and leakless ofcourse, but does the word variable make you say HUH? Well no more, variables are manualy named and they represent any kind of thing in your trigger, it could represent a unit or an integer(number) or a special effect...etc, u can create a variable by clicking Ctrl+N BUT! we have to tell them which unit to represent in an action by saying:
Here we simply used a trigger that pauses the triggering unit without mixing up things with using a variable, the type here is (unit), you probably would be wanting another example of trigger use? here's one:
This one teleports the caster into the point where storm bolt was cast, here the trigger type is (point), now after u learned triggers and variable we move on to teaching you how to combine them to make a custom spell awesome eh?
3)Spells:
a) easy spells:1)I thought the easiest spell of all would be a simple freeze spell, here's what it does: It freezes the target unit in an ice cone, rendering it unable to move or cast or attack for 3 seconds :shades:
Dont be confused I'll explain everything, after we decided when the trigger should start we set the variable(named TargUnit) to represent the target unit of ability being cast, after that we paused the TargUnit, so that it wont cast abilities or move or attack, then we attached the cool freeze effect (frost nova effect but lasts longer), we set a variable to that special effect (name Special) so that we can destroy the freeze effect after the target is unpaused, as u can see we did an action
this action tells the trigger not to do anything for the next three seconds, but when they are over it resumes the actions, wich means in here we have to unpause the unit and destroy the special effect, so that our spell would be balanced and leakless :shades: see now doesnt everything seem easier?
2) Now for another simple spell: a heal all allies spell Desciption: this spell takes every unit within 300 Range of the caster and heals them for 300 health. :shades: Now how do we make sure that the spell only heals allies? lets see here:
hmm your probably crying sayin i can never learn GUI if this is simple, actually u can, ill explain that big fat action over here, this action takes multiple units that surround the caster within 300 AOE, on a condition that they are allies of the caster, then it heals their health for 300 health, and this is completely easy to do, ofcource i edited the spell vengeance so that it doesnt summon anything u make sure to do that too. Challenge for you u must do a spell that heals all allies of the caster for 75 health and after 2 seconds it pauses the caster forever, can u do it? We'll continue this tutorial 2morow..
We will be talking about:
1)GUI: a)what is it? b)is it hard?
2)Triggers: a)what are they? b)variables
3)Spells: a)easy spells b)medium spells c)intermediate
1)GUI:
a)GUI stands for graphical user interface, which is something blizzard made to ease up triggers, b)its not hard at all to learn, i perfected it in 2 weeks :banghead: lol
2)Triggers:
a)triggers are simple follow-up actions that u tell them what to cause and when to cause it :shades:, they contain three main parts event-condition-action, are u confused? (hope not), the event simply says when the trigger should start ex:
Code:
Unit-Tut
Events
Unit - A unit Starts the effect of an ability
Conditions
Actions
Code:
Tut
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Animate Dead
Actions
And finally we have the action, which tells the trigger what to do when it starts, now here we want it to pause the casting unit what do we do?
Code:
Tutorial
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Animate Dead
Actions
Unit - Pause (Triggering unit)
Code:
Tut
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Animate Dead
Actions
Set TrigUnit = (Triggering unit)
Unit - Pause TrigUnit
Code:
Tut
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Storm Bolt
Actions
Set CastPoint = (Target point of ability being cast)
Unit - Move (Triggering unit) instantly to CastPoint
Custom script: Call RemovePoint (CastPoint)
3)Spells:
a) easy spells:1)I thought the easiest spell of all would be a simple freeze spell, here's what it does: It freezes the target unit in an ice cone, rendering it unable to move or cast or attack for 3 seconds :shades:
Code:
Tut
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Storm Bolt
Actions
Set TargUnit = (Target unit of ability being cast)
Unit - Pause TargUnit
Special Effect - Create a special effect attached to the overhead of TargUnit using Abilities\Spells\Undead\FrostNova\FrostNovaTarget.mdl
Set Special = (Last created special effect)
Wait 3.00 seconds
Unit - Unpause TargUnit
Special Effect - Destroy Special
Code:
Wait 3.00 seconds
2) Now for another simple spell: a heal all allies spell Desciption: this spell takes every unit within 300 Range of the caster and heals them for 300 health. :shades: Now how do we make sure that the spell only heals allies? lets see here:
Code:
Tut2
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Vengeance
Actions
Unit Group - Pick every unit in (Units within 300.00 of (Position of (Triggering unit)) matching (((Matching unit) belongs to an ally of (Owner of (Triggering unit))) Equal to True)) and do (Unit - Set life of (Picked unit) to ((Life of (Picked unit)) + 300.00))
Set Temp_Group = (Last created unit group)
Custom script: Custom script: call DestroyGroup (udg_Temp_Group)