• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

oh god... triggers!!!

Status
Not open for further replies.
Level 2
Joined
Sep 19, 2007
Messages
15
I have absolutely no idea how to use the trigger editor. I don't know what's it about and when I try do to something with it, game always crashes and errors appear. I wanted to make units to spawn from 1 point and go to another. at the end, I got tones of units standing at 1 place and new ones were respawning again and again till the game crashed.

so, can any1 tell me what's the triggering about and how to use it without getting crashes and errors? I know, it's a dum question but I really have no idea how to use it :cry:
 
Level 19
Joined
Aug 24, 2007
Messages
2,888
Dont push yourself. Just look at other maps, exaples or tutorials in hive

Some basic info about triggers
They are commands performed when something happens. Like someone dies or a unit enters in a region or 10 seconds passed after game started
It is really hard to start making triggers for everyone
Here is a tutorial named Basics of Triggers
I think it would help you better
 
Level 8
Joined
Sep 15, 2006
Messages
426
The best thing to do, IMO, is to look through the trigger editor. Look at all the events, conditions, and actions, and think about how they could be put together. They are pretty logically named. Some basic stuff to know:
Events - when this happens, the trigger runs
Conditions - unless these are met, the trigger will not run (don't worry about them at this point)
Actions - This is what will happen when the trigger runs

Read O2's link, but it's not actually that hard to start triggering. Just think about putting the parts of a trigger together in a way that will work.
 
Level 2
Joined
Sep 21, 2007
Messages
13
Good idea

to learn triggers, open WarChasers, Thats what I did first, and I learned jass now.

I just recently starting looking around at WE's triggers and although I havent been in SC's editor in a rreally long time, I started remembering triggers there seems to be a lot of similar triggers from SC's , they are just layed out differently in WE..

Btw:confused: does GUI just mean Triggers? or what..
 
Level 9
Joined
Jun 26, 2007
Messages
659
GUI means "graphical user interface"
many people on the hive use "GUI" as a shortcut to say "GUI triggers"
"GUI triggers" are the triggers you define in the graphical interface in the trigger editor (with the tree of events+conditions+actions)
there is also pure code triggers in the JASS language (a blizzard specific coding language)

GUI
  • a GUI trigger
    • Events
      • Unit - A unit Is attacked
    • Conditions
      • (Unit-type of (Attacking unit)) Equal to JamesBond
    • Actions
      • Unit - Kill (Attacked unit)
JASS
JASS:
function Trig_a_JASS_trigger_Conditions takes nothing returns boolean
    if ( not ( GetUnitTypeId(GetAttacker()) == 'h000' ) ) then
        return false
    endif
    return true
endfunction

function Trig_a_JASS_trigger_Actions takes nothing returns nothing
    call KillUnit( GetAttackedUnitBJ() )
endfunction

//======================================================
function InitTrig_a_JASS_trigger takes nothing returns nothing
    set gg_trg_a_JASS_trigger = CreateTrigger(  )
    call TriggerRegisterAnyUnitEventBJ( gg_trg_a_JASS_trigger, EVENT_PLAYER_UNIT_ATTACKED )
    call TriggerAddCondition( gg_trg_a_JASS_trigger, Condition( function Trig_a_JASS_trigger_Conditions ) )
    call TriggerAddAction( gg_trg_a_JASS_trigger, function Trig_a_JASS_trigger_Actions )
endfunction
_
these 2 triggers are the same one, the first use the trigger's GUI, the second is in JASS
 
Level 9
Joined
Jun 26, 2007
Messages
659
converted GUI is JASS, stop doing your Need_O2

that's not because you're using a convert option that's it's not JASS
the way you obtain it doesn't change the language

and all this IS jass, that's jass's keywords, jass's syntax, jass's rules

"converted GUI" technically doesn't means anything at all
GUI is an interface, just an interface, nothing else
trigger ARE in jass, with or without GUI, there is a jass code behind each trigger
 
Level 19
Joined
Aug 24, 2007
Messages
2,888
YoshiRyu has a right on that because GUI is Graphical version of a trigger that shows everything in a orderly list it isnt a language after all
but JASS is a coding language that includes codes for everything there is no language as GUI its just imaged version of jass I say
like Unit - Kill(Event Response - Attacking Unit) is basic version of
call KillUnit( GetAttackedUnitBJ() )
 
Level 9
Joined
Jun 26, 2007
Messages
659
GUI triggers are just disguised JASS triggers
as its name said, GUI is just an interface, it's not really the trigger
and behind this interface, you're editing some JASS.

i don't really understand what you want to say by "in essence"

but i know what is a language
and anything in JASS, even triggers, is in JASS

you doesn't define what a language is by its use, but only by its rules

there is also GUI for C/C++: you make some logical scheme in a software and it perform the C/C++ code, that's made with a tool, but that's still C/C++
 
Level 40
Joined
Dec 14, 2005
Messages
10,532
Please stop completely misinterpreting what I say. No offense, but I'm not going to bother debating (or whatever) if you don't even read what I say...

Oh, also, GUI != triggers. It's a really annoying colloquialism. -.-

Trigger - When something happens, and an (optional) check is passed, executes a function in a new thread
GUI - An interface overlay on JASS
 
Level 9
Joined
Jun 26, 2007
Messages
659
GUI != triggers
that was the first thing i've said here -_-

Trigger - When something happens, and an (optional) check is passed, executes a function in a new thread
GUI - An interface overlay on JASS
and JASS - poor language to code function, trigger and some other stuffs that simple WE's users as us can't see.

PS : GUI - an interface overlay something, there is one for jass, but the button to launch ability during the game is also a GUI
 
Level 40
Joined
Dec 14, 2005
Messages
10,532
that was the first thing i've said here -_-
GUI triggers are just disguised JASS triggers
-.-

and JASS - poor language to code function, trigger and some other stuffs that simple WE's users as us can't see.
?

PS : GUI - an interface overlay something, there is one for jass, but the button to launch ability during the game is also a GUI
I know, I meant in reference to the trigger editor, what everyone calls "GUI"



soulcollector, the best way (I find) to learn triggering is to just randomly experiment.
 
Level 9
Joined
Jun 26, 2007
Messages
659
GUI triggers are just disguised JASS triggers
not just
GUI are just disguised JASS triggers
and i've posted a long time before this post -_-
GUI means "graphical user interface"
many people on the hive use "GUI" as a shortcut to say "GUI triggers"
was my first words here


I know, I meant in reference to the trigger editor, what everyone calls "GUI"
I know, and i was first shocked by this use
when i saw "WC3 GUI" or "GUI" alone, i think about the game interface, not the trigger's editor one...

what?
 

Rui

Rui

Level 41
Joined
Jan 7, 2005
Messages
7,550
Is this becoming a discussion? Because if it is, I can't understand a thing of what you're saying, not to mention that it's off-topic.

And by the way, how come GUI are not triggers? You do know that "!=" or "=!" or whatever means not equal to in JASS?
 
Level 8
Joined
Sep 15, 2006
Messages
426
Guys, come on. GUI is the accepted term for "triggers" and JASS is just the raw code. You guys know what people mean when they say it, so why debate the literal meanings? It doesn't really matter.
 
Status
Not open for further replies.
Top