Begginer System .. ?

Status
Not open for further replies.
JASS:
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

  • Item Detect
    • Events
      • Unit - A unit Acquires an item
    • Conditions
      • (Item-type of (Item being manipulated)) Equal to Tome of Experience
    • Actions
that's how you detect what item is picked up, and for the first part i honestly have no idea what your asking
 
I need to set item class like Shield/onehand weapon and twohanded weapon.
And then when i pick up and item two handed weapon it add me an animation.
I done anim adding but i don't know how to set it...
Twohanded weapon will be for every twohanded item.
Something similar to Witchers Equipment system...
I will see to use it instead of trying to make mine...
 
Status
Not open for further replies.
Back
Top