Simbob
New Member
- Reaction score
- 0
Hi guys. I'm so sick of the clickity click of GUI. So i decided to learn JASS.
I made this trigger (Not my first JASS trigger). I Have no idea why WE won't let it work... So uh, here it is:
It's supposed to make a dummy unit in a random position in 1 of 3 regions. Then cast Infernal at its own position. Probably not the most effective way to do it, but i wanna do it this way.
Anyone know why it won't work? I'm stumped. I would've liked to figure it out myself, but i sadly can't...
I made this trigger (Not my first JASS trigger). I Have no idea why WE won't let it work... So uh, here it is:
JASS:
function Trig_Infernals_Conditions takes nothing returns boolean
return true
endfunction
function Trig_Infernals_Actions takes nothing returns nothing
local integer Random = GetRandomInt(1, 3)
local location array meteor
set meteor[1] = GetRandomLocInRect ( gg_rct_meteor1 )
set meteor[2] = GetRandomLocInRect ( gg_rct_meteor2 )
set meteor[3] = GetRandomLocInRect ( gg_rct_meteor3 )
call CreateUnitAtLoc ( Player(PLAYER_NEUTRAL_AGGRESSIVE), h00E, meteor[Random], 0.00 )
call UnitAddAbility ( GetLastCreatedUnit(), A001 )
call IssuePointOrderLocBJ( GetLastCreatedUnit(), "dreadlordinferno", GetUnitLoc(GetLastCreatedUnit()) )
endfunction
function InitTrig_Infernals takes nothing returns nothing
set gg_trg_Infernals = CreateTrigger( )
call TriggerRegisterTimerEventPeriodic( gg_trg_Infernals, 60.00 )
call TriggerAddCondition( gg_trg_Infernals, Condition( Trig_Infernals_Conditions ) )
call TriggerAddAction( gg_trg_Infernals, function Trig_Infernals_Actions )
endfunction
It's supposed to make a dummy unit in a random position in 1 of 3 regions. Then cast Infernal at its own position. Probably not the most effective way to do it, but i wanna do it this way.
Anyone know why it won't work? I'm stumped. I would've liked to figure it out myself, but i sadly can't...