Chaosy
Tutorial Reviewer
- Joined
- Jun 9, 2011
- Messages
- 13,183
i going to start with very basic jass now if i got my script code where you type om WHEN it will start with the "actions"
function jass_test takes nothing returns nothing
local unit u = GetTriggerUnit()
call KillUnit(u)
endfunction
call function(<params>)
, a more indirect call via a native function like ForGroup(<group>, <code>)
or you set up a trigger with an action block and an event (TriggerRegister...
) that gets automatically fired by engine.function init takes nothing returns nothing
local trigger t = CreateTrigger()
call TriggerAddAction(t, function yourFunction) or TriggerAddCondition(t, Condition(function yourFunction))
call TriggerRegister...(t, ...)
set t = null
call TriggerRegisterAnyUnitEventBJ( gg_trg_Untitled_Trigger_001, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_Untitled_Trigger_001, Condition( function Trig_Untitled_Trigger_001_Conditions ) )
call TriggerAddAction( gg_trg_Untitled_Trigger_001, function Trig_Untitled_Trigger_001_Actions )