Hey,
So I'm trying to learn JASS through converting the GUI and trying to understand the syntax etc...
function Trig_DisableShare_Copy_Func001002 takes nothing returns nothing
call SetPlayerAbilityAvailableBJ( false, 'Aall', GetEnumPlayer() )
endfunction
function Trig_DisableShare_Copy_Actions takes nothing returns nothing
call ForForce( GetPlayersAll(), function Trig_DisableShare_Copy_Func001002 )
endfunction
//===========================================================================
function InitTrig_DisableShare_Copy takes nothing returns nothing
set gg_trg_DisableShare_Copy = CreateTrigger( )
call TriggerRegisterTimerEventSingle( gg_trg_DisableShare_Copy, 1.00 )
call TriggerAddAction( gg_trg_DisableShare_Copy, function Trig_DisableShare_Copy_Actions )
endfunction
It is this line here I think I need to change:
call SetPlayerAbilityAvailableBJ( false, 'Aall', GetEnumPlayer() )
Should the function 'SetPlayerAbility...' be something different, ie, SetPlayer...ById?
'Aall' - should this be the ID of the ability I want to disable ('852566')
Thanks Hivers
So I'm trying to learn JASS through converting the GUI and trying to understand the syntax etc...
function Trig_DisableShare_Copy_Func001002 takes nothing returns nothing
call SetPlayerAbilityAvailableBJ( false, 'Aall', GetEnumPlayer() )
endfunction
function Trig_DisableShare_Copy_Actions takes nothing returns nothing
call ForForce( GetPlayersAll(), function Trig_DisableShare_Copy_Func001002 )
endfunction
//===========================================================================
function InitTrig_DisableShare_Copy takes nothing returns nothing
set gg_trg_DisableShare_Copy = CreateTrigger( )
call TriggerRegisterTimerEventSingle( gg_trg_DisableShare_Copy, 1.00 )
call TriggerAddAction( gg_trg_DisableShare_Copy, function Trig_DisableShare_Copy_Actions )
endfunction
It is this line here I think I need to change:
call SetPlayerAbilityAvailableBJ( false, 'Aall', GetEnumPlayer() )
Should the function 'SetPlayerAbility...' be something different, ie, SetPlayer...ById?
'Aall' - should this be the ID of the ability I want to disable ('852566')
Thanks Hivers