Alright so on my new map, I need Quests for ONE player only, other players won't get it.
But I have no idea where to find this and im pretty new to JASS so I can't figure out if it would be in there what I have, but I'm not sure if im WAY off or just have to change a couple of things -
function Trig_HW_Bard_1_Func003C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetTriggerUnit()) == 'H009' ) ) then
return false
endif
return true
endfunction
function Trig_HW_Bard_1_Conditions takes nothing returns boolean
if ( not ( GetOrderTargetUnit() == gg_unit_n00S_0013 ) ) then
return false
endif
if ( not Trig_HW_Bard_1_Func003C() ) then
return false
endif
return true
endfunction
function Trig_HW_Bard_1_Actions takes nothing returns nothing
call CreateQuestBJ( bj_QUESTTYPE_REQ_DISCOVERED, "TRIGSTR_597", "TRIGSTR_598", "ReplaceableTextures\\CommandButtons\\BTNAmbush.blp" )
endfunction
//===========================================================================
function InitTrig_HW_Bard_1 takes nothing returns nothing
set gg_trg_HW_Bard_1 = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_HW_Bard_1, EVENT_PLAYER_UNIT_ISSUED_TARGET_ORDER )
call TriggerAddCondition( gg_trg_HW_Bard_1, Condition( function Trig_HW_Bard_1_Conditions ) )
call TriggerAddAction( gg_trg_HW_Bard_1, function Trig_HW_Bard_1_Actions )
endfunction
But I have no idea where to find this and im pretty new to JASS so I can't figure out if it would be in there what I have, but I'm not sure if im WAY off or just have to change a couple of things -
function Trig_HW_Bard_1_Func003C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetTriggerUnit()) == 'H009' ) ) then
return false
endif
return true
endfunction
function Trig_HW_Bard_1_Conditions takes nothing returns boolean
if ( not ( GetOrderTargetUnit() == gg_unit_n00S_0013 ) ) then
return false
endif
if ( not Trig_HW_Bard_1_Func003C() ) then
return false
endif
return true
endfunction
function Trig_HW_Bard_1_Actions takes nothing returns nothing
call CreateQuestBJ( bj_QUESTTYPE_REQ_DISCOVERED, "TRIGSTR_597", "TRIGSTR_598", "ReplaceableTextures\\CommandButtons\\BTNAmbush.blp" )
endfunction
//===========================================================================
function InitTrig_HW_Bard_1 takes nothing returns nothing
set gg_trg_HW_Bard_1 = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_HW_Bard_1, EVENT_PLAYER_UNIT_ISSUED_TARGET_ORDER )
call TriggerAddCondition( gg_trg_HW_Bard_1, Condition( function Trig_HW_Bard_1_Conditions ) )
call TriggerAddAction( gg_trg_HW_Bard_1, function Trig_HW_Bard_1_Actions )
endfunction