CaptDeath
New Member
- Reaction score
- 103
i got it lol the ole dependable hive
Line 14: Undeclared variable gg_trg_Melee_Initialization
function Trig_Melee_Initialization_Actions takes nothing returns nothing
call MeleeStartingVisibility( )
call MeleeStartingHeroLimit( )
call MeleeGrantHeroItems( )
call MeleeStartingResources( )
call MeleeClearExcessUnits( )
call MeleeStartingUnits( )
call MeleeStartingAI( )
call MeleeInitVictoryDefeat( )
endfunction
//===========================================================================
function InitTrig_Melee_Initialization takes nothing returns nothing
[B]set gg_trg_Melee_Initialization = CreateTrigger( )[/B]
call TriggerAddAction( gg_trg_Melee_Initialization, function Trig_Melee_Initialization_Actions )
endfunction
Line 14: Undeclared variable gg_trg_Melee_Initialization
function Trig_Melee_Initialization_Actions takes nothing returns nothing
call MeleeStartingHeroLimit( )
call MeleeStartingAI( )
call MeleeInitVictoryDefeat( )
endfunction
//===========================================================================
function InitTrig_Melee_Initialization takes nothing returns nothing
set gg_trg_Melee_Initialization = CreateTrigger( )
call TriggerAddAction( gg_trg_Melee_Initialization, function Trig_Melee_Initialization_Actions )
endfunction
Don't worry about that error.
Syntax Check will almost always give errors.
As long as you can save your map (CTRL + S) without errors, you're good.
No.
I mean when you convert a trigger from GUI to JASS, it's still as inefficient as it was in GUI.
You need to "optimize" your script to make it efficient.
srry, but i have no ideea what that is...i just tried to convert the default melee initialisation trigger from anny map in Jass script and when I clicked sintax check ( to check for errors) it displayed this
function InitTrig_Melee_Initialization takes nothing returns nothing
set gg_trg_Melee_Initialization = CreateTrigger( )
call TriggerAddAction( gg_trg_Melee_Initialization, function Trig_Melee_Initialization_Actions )
endfunction
function InitTrig_TRIGGER_NAME_GOES_HERE takes nothing returns nothing
set gg_trg_TRIGGER_NAME_GOES_HERE = CreateTrigger( )
call TriggerAddAction( gg_trg_TRIGGER_NAME_GOES_HERE, function Trig_Melee_Initialization_Actions )
endfunction
Don't worry about that error.
Syntax Check will almost always give errors.
As long as you can save your map (CTRL + S) without errors, you're good.
call AddSpecialEffectLocBJ( l[COLOR="Red"],[/COLOR] "Abilities\\Spells\\Human\\ThunderClap\\ThunderClapCaster.mdl" )
call UnitDamagePointLoc( u[COLOR="Red"],[/COLOR] 0, 500, l, 100, ATTACK_TYPE_NORMAL, DAMAGE_TYPE_NORMAL )
function Trig_message_1_Actions takes nothing returns nothing
call QuestMessageBJ( GetPlayersAll(), bj_QUESTMESSAGE_ALWAYSHINT, "TRIGSTR_076" )
endfunction
//===========================================================================
function InitTrig_message_1 takes nothing returns nothing
set gg_trg_message_1 = CreateTrigger( )
call TriggerRegisterTimerEventPeriodic( gg_trg_message_1, 30.00 )
call TriggerAddAction( gg_trg_message_1, function Trig_message_1_Actions )
endfunction