• 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.

Begginer System .. ?

Status
Not open for further replies.
Level 17
Joined
Jun 17, 2010
Messages
2,275
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
 
Level 15
Joined
Sep 27, 2009
Messages
676
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...
 
Level 15
Joined
Sep 27, 2009
Messages
676
If you go to object editor, you can set up target attachment points, so when the item is picked up, a sword will appear in his weapon slot. Theres a list of attachment points somewhere on this forum, if you cant find it google it, im sure youll find it.

I already know for that, I think you didn't understand what i want to make :p !
 
Status
Not open for further replies.
Top