1. Updated Resource Submission Rules: All model & skin resource submissions must now include an in-game screenshot. This is to help speed up the moderation process and to show how the model and/or texture looks like from the in-game camera.
    Dismiss Notice
  2. DID YOU KNOW - That you can unlock new rank icons by posting on the forums or winning contests? Click here to customize your rank or read our User Rank Policy to see a list of ranks that you can unlock. Have you won a contest and still havn't received your rank award? Then please contact the administration.
    Dismiss Notice
  3. The Lich King demands your service! We've reached the 19th edition of the Icon Contest. Come along and make some chilling servants for the one true king.
    Dismiss Notice
  4. The 4th SFX Contest has started. Be sure to participate and have a fun factor in it.
    Dismiss Notice
  5. The poll for the 21st Terraining Contest is LIVE. Be sure to check out the entries and vote for one.
    Dismiss Notice
  6. The results are out! Check them out.
    Dismiss Notice
  7. Don’t forget to sign up for the Hive Cup. There’s a 555 EUR prize pool. Sign up now!
    Dismiss Notice
  8. The Hive Workshop Cup contest results have been announced! See the maps that'll be featured in the Hive Workshop Cup tournament!
    Dismiss Notice
  9. Check out the Staff job openings thread.
    Dismiss Notice
Dismiss Notice
60,000 passwords have been reset on July 8, 2019. If you cannot login, read this.

Need some help aout Item

Discussion in 'World Editor Help Zone' started by MoMoDeviluke, Apr 4, 2014.

  1. MoMoDeviluke

    MoMoDeviluke

    Joined:
    Jan 5, 2013
    Messages:
    30
    Resources:
    0
    Resources:
    0
    Hey guys i had some trouble with item system and can't make one system for my own so i need help,:vw_death: i need a system can make some item can only use by single hero like Hero Barbarian can use Sword or Axe and other hero can't use, or Summoner can use only wand while Barbarian cannot. I mean they cannot pick up Item even they buy it from the shop.

    I would be very grateful if someone helps me,:goblin_good_job: I'll repay by some Rep+. And sorry for bad english.:grin:
     
    Last edited: Apr 4, 2014
  2. Dat-C3

    Dat-C3

    Joined:
    Mar 15, 2012
    Messages:
    2,469
    Resources:
    10
    Models:
    1
    Maps:
    5
    Spells:
    3
    Tutorials:
    1
    Resources:
    10
  3. MoMoDeviluke

    MoMoDeviluke

    Joined:
    Jan 5, 2013
    Messages:
    30
    Resources:
    0
    Resources:
    0
  4. Dat-C3

    Dat-C3

    Joined:
    Mar 15, 2012
    Messages:
    2,469
    Resources:
    10
    Models:
    1
    Maps:
    5
    Spells:
    3
    Tutorials:
    1
    Resources:
    10
    Oh, I see. May I suggest taking your time and looking around in the trigger editor to see what stuff does?

    I'll see what I can make for you while you do that.

    EDIT: IcemanBo got to it before I did. =) Sorry I wasn't fast enough MoMo, let me know if you need any help if you can't get it working.
     
    Last edited: Apr 4, 2014
  5. IcemanBo

    IcemanBo

    Joined:
    Sep 6, 2013
    Messages:
    6,185
    Resources:
    22
    Maps:
    3
    Spells:
    11
    Template:
    1
    Tutorials:
    4
    JASS:
    3
    Resources:
    22
    Events:
    Unit acquires item

    Actions:
    Set u = TriggeringUnit()
    Set Item = ManipulatedItem (something like this)
    Set ItemType = ItemTypeOf(Item)
    If (UnitType(u) != Barbarian) And ( (ItemType==Axe) Or (ItemType==Axe) ) then
    Item - Drop Item from U
     
  6. MoMoDeviluke

    MoMoDeviluke

    Joined:
    Jan 5, 2013
    Messages:
    30
    Resources:
    0
    Resources:
    0
    I will try to learn more about WE, and very thank you for your helping:goblin_good_job:. I'm waiting your good news.


    Like i said, even you give me code i can't make the trigger by myself, if you have freetime please make for me a map with the trigger that will more easy for me and BTW thanks for your help:thumbs_up:
     
  7. IcemanBo

    IcemanBo

    Joined:
    Sep 6, 2013
    Messages:
    6,185
    Resources:
    22
    Maps:
    3
    Spells:
    11
    Template:
    1
    Tutorials:
    4
    JASS:
    3
    Resources:
    22
    You need to change conditions a bit. Change unit type comparisson to barbarian, and the item types to axe and sword.
     

    Attached Files:

  8. MoMoDeviluke

    MoMoDeviluke

    Joined:
    Jan 5, 2013
    Messages:
    30
    Resources:
    0
    Resources:
    0
    That's all i need, thanks for your help, now i can do the rest:thumbs_up::thumbs_up:, like i promise i'll give you Rep+. Have a nice day:goblin_good_job:
     
  9. Streak

    Streak

    Joined:
    Mar 30, 2014
    Messages:
    199
    Resources:
    0
    Resources:
    0
    so you mean a RPG map? with class iems?