- Joined
- Feb 10, 2008
- Messages
- 47
ok so heres the deal. i am making a rpg and i am adding a s/l code. 1 of the triggers is JASS and wont work when i click test...it says expect a varrible name.the code saves every thing.
//***************************************************************************
//*
//* Global Variables
//*
//***************************************************************************
globals
// Generated
rect gg_rct_Region_000 = null
sound gg_snd_BattleNetTick = null
trigger gg_trg_Melee_Initialization = null
trigger gg_trg_AI = null
trigger gg_trg_Hero_CHoosing = null
trigger gg_trg_Choosing = null
trigger gg_trg_Picki = null
trigger gg_trg_Untitled_Trigger_001 = null
trigger gg_trg_Pick = null
trigger gg_trg_Choosing_rouge = null
trigger gg_trg_Untitled_Trigger_002 = null
unit gg_unit_Udea_0001 = null
unit gg_unit_Ulic_0002 = null
unit gg_unit_ewsp_0030 = null
unit gg_unit_Etyr_0003 = null
unit gg_unit_Ewrd_0008 = null
unit gg_unit_Eevi_0009 = null
unit gg_unit_Nbbc_0012 = null
unit gg_unit_Opgh_0013 = null
trigger gg_trg_Initialization = null
trigger gg_trg_InitCode = null
trigger gg_trg_InitHeroes = null
trigger gg_trg_InitItems = null
trigger gg_trg_InitEnv = null
trigger gg_trg_InitCrypt = null
trigger gg_trg_InitCodeGenDefault = null
endglobals
function InitGlobals takes nothing returns nothing
endfunction
function Trig_InitCrypt_Actions takes nothing returns nothing
set udg_keybuffer_size = 8
set udg_keybuffer_default[0] = 7
set udg_keybuffer_default[1] = 55
set udg_keybuffer_default[2] = 57
set udg_keybuffer_default[3] = 47
set udg_keybuffer_default[4] = 44
set udg_keybuffer_default[5] = 61
set udg_keybuffer_default[6] = 36
set udg_keybuffer_default[7] = 38
endfunction
//===========================================================================
function InitTrig_InitCrypt takes nothing returns nothing
set gg_trg_InitCrypt = CreateTrigger( )
call TriggerAddAction( gg_trg_InitCrypt, function Trig_InitCrypt_Actions )
endfunction
for the "set udg" is where it says vairbly thingy
plz help me
plaid_man
//***************************************************************************
//*
//* Global Variables
//*
//***************************************************************************
globals
// Generated
rect gg_rct_Region_000 = null
sound gg_snd_BattleNetTick = null
trigger gg_trg_Melee_Initialization = null
trigger gg_trg_AI = null
trigger gg_trg_Hero_CHoosing = null
trigger gg_trg_Choosing = null
trigger gg_trg_Picki = null
trigger gg_trg_Untitled_Trigger_001 = null
trigger gg_trg_Pick = null
trigger gg_trg_Choosing_rouge = null
trigger gg_trg_Untitled_Trigger_002 = null
unit gg_unit_Udea_0001 = null
unit gg_unit_Ulic_0002 = null
unit gg_unit_ewsp_0030 = null
unit gg_unit_Etyr_0003 = null
unit gg_unit_Ewrd_0008 = null
unit gg_unit_Eevi_0009 = null
unit gg_unit_Nbbc_0012 = null
unit gg_unit_Opgh_0013 = null
trigger gg_trg_Initialization = null
trigger gg_trg_InitCode = null
trigger gg_trg_InitHeroes = null
trigger gg_trg_InitItems = null
trigger gg_trg_InitEnv = null
trigger gg_trg_InitCrypt = null
trigger gg_trg_InitCodeGenDefault = null
endglobals
function InitGlobals takes nothing returns nothing
endfunction
function Trig_InitCrypt_Actions takes nothing returns nothing
set udg_keybuffer_size = 8
set udg_keybuffer_default[0] = 7
set udg_keybuffer_default[1] = 55
set udg_keybuffer_default[2] = 57
set udg_keybuffer_default[3] = 47
set udg_keybuffer_default[4] = 44
set udg_keybuffer_default[5] = 61
set udg_keybuffer_default[6] = 36
set udg_keybuffer_default[7] = 38
endfunction
//===========================================================================
function InitTrig_InitCrypt takes nothing returns nothing
set gg_trg_InitCrypt = CreateTrigger( )
call TriggerAddAction( gg_trg_InitCrypt, function Trig_InitCrypt_Actions )
endfunction
for the "set udg" is where it says vairbly thingy
plz help me
plaid_man