Quauhtli
I have the right to remain silent.
- Reaction score
- 62
copied your trigger EXACTLY, MR Zero
and when i saved it said its not correct... wtf
what the hell does this mean?
and when i saved it said its not correct... wtf
what the hell does this mean?
Code:
//***************************************************************************
//*
//* Global Variables
//*
//***************************************************************************
globals
// User-defined
integer array udg_Pick_Taken
// Generated
rect gg_rct_Int = null
rect gg_rct_Agi = null
rect gg_rct_Str = null
rect gg_rct_Spawn = null
rect gg_rct_Starting_Zone = null
trigger gg_trg_Melee_Initialization = null
trigger gg_trg_Player_Spawning = null
trigger gg_trg_Leaving_the_Game = null
trigger gg_trg_Wheater_Effects1 = null
trigger gg_trg_Wheater_Effects2 = null
trigger gg_trg_Wheater_Effects3 = null
trigger gg_trg_Wheater_Effects4 = null
trigger gg_trg_ChooseInt = null
trigger gg_trg_ChooseAgi = null
trigger gg_trg_ChooseStr = null
trigger gg_trg_Inn_Teleport = null
unit gg_unit_E001_0003 = null
unit gg_unit_E000_0004 = null
unit gg_unit_E002_0005 = null
rect gg_rct_StrInt = null
rect gg_rct_AgiInt = null
trigger gg_trg_ChooseStrInt = null
trigger gg_trg_ChooseAgiInt = null
unit gg_unit_E003_0014 = null
unit gg_unit_E004_0013 = null
endglobals
function InitGlobals takes nothing returns nothing
local integer i = 0
set i = 0
loop
exitwhen (i > 1)
set udg_Pick_Taken[i] = 0
set i = i + 1
endloop
endfunction
function Trig_Inn_Teleport_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A005' ) ) then
return false
endif
return true
endfunction
function Trig_Inn_Teleport_Actions takes nothing returns nothing
local unit udg_a
set udg_a = GetTriggerUnit()
call TriggerSleepAction( 3.00 )
call SetUnitPositionLoc( udg_a, GetRandomLocInRect(udg_Staring_Zone))
set udg_a = null
endfunction
//===========================================================================
function InitTrig_Inn_Teleport takes nothing returns nothing
set gg_trg_Inn_Teleport = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Inn_Teleport, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_Inn_Teleport, Condition( function Trig_Inn_Teleport_Conditions ) )
call TriggerAddAction( gg_trg_Inn_Teleport, function Trig_Inn_Teleport_Actions )
endfunction