function Trig_Item_Detect_Conditions takes nothing returns boolean
if ( not ( GetItemTypeId(GetManipulatedItem()) == 'texp' ) ) then
return false
endif
return true
endfunction
function Trig_Item_Detect_Actions takes nothing returns nothing
endfunction
//===========================================================================
function InitTrig_Item_Detect takes nothing returns nothing
set gg_trg_Item_Detect = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Item_Detect, EVENT_PLAYER_UNIT_PICKUP_ITEM )
call TriggerAddCondition( gg_trg_Item_Detect, Condition( function Trig_Item_Detect_Conditions ) )
call TriggerAddAction( gg_trg_Item_Detect, function Trig_Item_Detect_Actions )
endfunction