• Check out the results of the Techtree Contest #19!
  • Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

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