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
Thanks for the advice:thup:. That means that anny good working GUI trigger can be converted into Jass and properly work?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.
Oh...then i've got an "optimization" problem, because I can create my own script, without understanding which parameter does what...Its just as in chinese to me... :banghead:Btw is there anny tutorial about Jass, explaining more concrete?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.
you converted the default melee initialization trigger to JASS... and then renamed the trigger. If you want to rename a trigger, you either have to make a scope with an initializer, and create a local trigger (vJASS syntax), or you have to change the name of the Initialization function and trigger name to match the new name of the trigger. You can see what I mean in these lines: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
I believe the Syntax Check only gives errors for vJASS (with a few possible exceptions with warnings). In this case, however, it is on regular JASS, which did have errors in the first place.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