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. We have recently started the 16th edition of the Mini Mapping Contest. The theme is mini RPG. Do check it out and have fun.
    Dismiss Notice
  4. Dismiss Notice
  5. The Highway to Hell has been laid open. Come along and participate in the 5th Special Effect Contest.
    Dismiss Notice
  6. 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.

More Trigger Help

Discussion in 'Triggers & Scripts' started by jojoman55, Feb 11, 2010.

  1. jojoman55

    jojoman55

    Joined:
    Mar 19, 2008
    Messages:
    49
    Resources:
    1
    Maps:
    1
    Resources:
    1
    Please I have another issue/question, how can I make an item only wearable for certain hero types? Please respond ASAP.
     
  2. splashy5

    splashy5

    Joined:
    Jul 22, 2007
    Messages:
    259
    Resources:
    0
    Resources:
    0
    • Hero Specific
      • Events
        • Unit - A unit Acquires an item
      • Conditions
        • (Item-type of (Item being manipulated)) Equal to ITEM
      • Actions
        • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          • If - Conditions
            • (Unit-type of (Triggering unit)) Equal to HERO
          • Then - Actions
          • Else - Actions
            • Hero - Drop (Item being manipulated) from (Triggering unit)
            • Game - Display to (All players matching ((Owner of (Triggering unit)) Equal to (Matching player))) the text: You Cant use that i...
     
  3. Pharaoh_

    Pharaoh_

    Joined:
    Nov 6, 2008
    Messages:
    8,128
    Resources:
    11
    Icons:
    3
    Skins:
    1
    Spells:
    6
    Tutorials:
    1
    Resources:
    11
    • (Unit-type of (Triggering unit)) Equal to HERO


    He meant

    • (Unit-type of (Triggering unit)) Not Equal to HERO


    For more unit-types do this

    • Trigger
    • Conditions
      • Or - Conditions
        • (Unit-type of (Triggering unit)) Not Equal to HERO1
        • (Unit-type of (Triggering unit)) Not Equal to HERO2
        • (Unit-type of (Triggering unit)) Not Equal to HERO3
    • Actions
      • Hero - Drop Item (bla bla)
     
  4. watermelon_1234

    watermelon_1234

    Joined:
    Nov 18, 2007
    Messages:
    1,066
    Resources:
    10
    Spells:
    9
    JASS:
    1
    Resources:
    10
    Doesn't that depend on whether HERO is a unit-type that can receive the item?
    From what I've read, it looks like jojoman55 would want HERO to be the unit-type that can get the item, so splashy5's trigger should work fine.
     
  5. splashy5

    splashy5

    Joined:
    Jul 22, 2007
    Messages:
    259
    Resources:
    0
    Resources:
    0
    would just give him more work to do...