library RemoveQitem
private function remove takes nothing returns boolean
local integer id = GetItemTypeId(GetManipulatedItem())
if id == 039;Some Item Id039; then
call SetPlayerTechMaxAllowed(GetTriggerPlayer(),id,-1)
endif
return false
endfunction
private module Init
private static method onInit takes nothing returns nothing
local trigger t = CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(t,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(t,Condition(function remove))
set t = null
endmethod
endmodule
private struct Inits extends array
implement Init
endstruct
endlibrary