Tutorial GUI enhanced trigger spells

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:
Code:
Unit-Tut
    Events
        Unit - A unit Starts the effect of an ability
    Conditions
    Actions
, that sounds quite smooth on the ears, it simply tells the trigger to start when a unit starts the effect of an ability :p, the condition tells the trigger what does it require to happen, ex:
Code:
Tut
    Events
        Unit - A unit Starts the effect of an ability
    Conditions
        (Ability being cast) Equal to Animate Dead
    Actions
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?
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)
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! :confused: 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:
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
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:
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)
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 :eek::D 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:
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
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
Code:
Wait 3.00 seconds
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:
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)
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 :eek: 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..
 

Flare

Stops copies me!
Reaction score
662
First spell doesn't require the special effect variable (Frost Nova will play the full animation even if you destroy the effect immediately after)

Your last spell leaks twice - the group, and Position of Triggering Unit

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
Leaks - CastPoint must be destroyed after use (storing it in a variable doesn't remove the leak)
 
M

MegaKill

Guest
Thx !

thx alot for the pointer ill fix immediatly.., and i want the frost nova to last.. but tell me did u think it was good?
 

Kenny

Back for now.
Reaction score
202
I've never actually read a GUI tutorial before this one, so i don't know whether it is needed or not. However, to make this better you should add some screenshots of you making the variables in the variable editor, that way people will know how to make them. Just telling them to make one isnt enough. Flare has already pointed out the leaks.
 

trb92

Throwing science at the wall to see what sticks
Reaction score
142
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:   [B]Call RemovePoint [/B](CastPoint)
...Nice syntax errors, there. It needs to be exactly this:
Code:
        Custom script:   call RemoveLocation (CastPoint)
call cannot be capitalized and it's RemoveLocation, not RemovePoint.
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • Ghan Ghan:
    Still lurking
    +3
  • The Helper The Helper:
    I am great and it is fantastic to see you my friend!
    +1
  • The Helper The Helper:
    If you are new to the site please check out the Recipe and Food Forum https://www.thehelper.net/forums/recipes-and-food.220/
  • Monovertex Monovertex:
    How come you're so into recipes lately? Never saw this much interest in this topic in the old days of TH.net
  • Monovertex Monovertex:
    Hmm, how do I change my signature?
  • tom_mai78101 tom_mai78101:
    Signatures can be edit in your account profile. As for the old stuffs, I'm thinking it's because Blizzard is now under Microsoft, and because of Microsoft Xbox going the way it is, it's dreadful.
  • The Helper The Helper:
    I am not big on the recipes I am just promoting them - I use the site as a practice place promoting stuff
    +2
  • Monovertex Monovertex:
    @tom_mai78101 I must be blind. If I go on my profile I don't see any area to edit the signature; If I go to account details (settings) I don't see any signature area either.
  • The Helper The Helper:
    You can get there if you click the bell icon (alerts) and choose preferences from the bottom, signature will be in the menu on the left there https://www.thehelper.net/account/preferences
  • The Helper The Helper:
    I think I need to split the Sci/Tech news forum into 2 one for Science and one for Tech but I am hating all the moving of posts I would have to do
  • The Helper The Helper:
    What is up Old Mountain Shadow?
  • The Helper The Helper:
    Happy Thursday!
    +1
  • Varine Varine:
    Crazy how much 3d printing has come in the last few years. Sad that it's not as easily modifiable though
  • Varine Varine:
    I bought an Ender 3 during the pandemic and tinkered with it all the time. Just bought a Sovol, not as easy. I'm trying to make it use a different nozzle because I have a fuck ton of Volcanos, and they use what is basically a modified volcano that is just a smidge longer, and almost every part on this thing needs to be redone to make it work
  • Varine Varine:
    Luckily I have a 3d printer for that, I guess. But it's ridiculous. The regular volcanos are 21mm, these Sovol versions are about 23.5mm
  • Varine Varine:
    So, 2.5mm longer. But the thing that measures the bed is about 1.5mm above the nozzle, so if I swap it with a volcano then I'm 1mm behind it. So cool, new bracket to swap that, but THEN the fan shroud to direct air at the part is ALSO going to be .5mm to low, and so I need to redo that, but by doing that it is a little bit off where it should be blowing and it's throwing it at the heating block instead of the part, and fuck man
  • Varine Varine:
    I didn't realize they designed this entire thing to NOT be modded. I would have just got a fucking Bambu if I knew that, the whole point was I could fuck with this. And no one else makes shit for Sovol so I have to go through them, and they have... interesting pricing models. So I have a new extruder altogether that I'm taking apart and going to just design a whole new one to use my nozzles. Dumb design.
  • Varine Varine:
    Can't just buy a new heatblock, you need to get a whole hotend - so block, heater cartridge, thermistor, heatbreak, and nozzle. And they put this fucking paste in there so I can't take the thermistor or cartridge out with any ease, that's 30 dollars. Or you can get the whole extrudor with the direct driver AND that heatblock for like 50, but you still can't get any of it to come apart
  • Varine Varine:
    Partsbuilt has individual parts I found but they're expensive. I think I can get bits swapped around and make this work with generic shit though
  • Ghan Ghan:
    Heard Houston got hit pretty bad by storms last night. Hope all is well with TH.
  • The Helper The Helper:
    Power back on finally - all is good here no damage
    +2
  • V-SNES V-SNES:
    Happy Friday!
    +1
  • The Helper The Helper:
    New recipe is another summer dessert Berry and Peach Cheesecake - https://www.thehelper.net/threads/recipe-berry-and-peach-cheesecake.194169/

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top