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 haven't received your rank award? Then please contact the administration.
    Dismiss Notice
  3. Weave light to take you to your highest hopes - the 6th Special Effect Contest is here!
    Dismiss Notice
  4. Lead your forces to battle in the 15th Techtree Contest. The call is yours, commander!
    Dismiss Notice
  5. 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.

[Trigger] Itens

Discussion in 'Triggers & Scripts' started by dimitri231, Jul 7, 2009.

  1. dimitri231

    dimitri231

    Joined:
    Aug 4, 2008
    Messages:
    265
    Resources:
    0
    Resources:
    0
    I have a problem,
    • Frostmourne
      • Events
        • Unit - A unit Acquires an item
      • Conditions
      • Actions
        • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          • If - Conditions
            • (Item-type of (Item being manipulated)) Equal to Frostmourne
          • Then - Actions
            • Special Effect - Create a special effect attached to the right hand of (Triggering unit) using war3mapImported\WrathFrostmourneV3.mdx
            • Set FrostMourne = (Last created special effect)
          • Else - Actions

    • Loses
      • Events
        • Unit - A unit Loses an item
      • Conditions
      • Actions
        • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          • If - Conditions
            • (Item-type of (Last dropped item)) Equal to Frostmourne
          • Then - Actions
            • Special Effect - Destroy FrostMourne
          • Else - Actions


    Why this doesnt work?The effect appears, but dont get removed.And I want to be MUI.
     
    Last edited: Jul 7, 2009
  2. ap0calypse

    ap0calypse

    Joined:
    Jan 26, 2007
    Messages:
    4,777
    Resources:
    2
    Spells:
    1
    Tutorials:
    1
    Resources:
    2
    What is the "remove"-action?
    Just destroy the special effect... I don't know what "Remove" is supposed to do.

    Right click the triggers, then select "Copy as Text"
    Paste them here and wrap trigger-tags around them.
     
  3. Maker

    Maker

    Joined:
    Mar 6, 2006
    Messages:
    9,174
    Resources:
    17
    Maps:
    2
    Spells:
    14
    Tutorials:
    1
    Resources:
    17
    Use

    • (Item-type of (Item being manipulated)) Equal to Frostmourne
     
  4. dimitri231

    dimitri231

    Joined:
    Aug 4, 2008
    Messages:
    265
    Resources:
    0
    Resources:
    0
    @Maker : Doenst work ( tested)
    @Apocalypse : Try now.
     
  5. Maker

    Maker

    Joined:
    Mar 6, 2006
    Messages:
    9,174
    Resources:
    17
    Maps:
    2
    Spells:
    14
    Tutorials:
    1
    Resources:
    17
    • Untitled Trigger 006
      • Events
        • Unit - A unit Acquires an item
      • Conditions
      • Actions
        • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          • If - Conditions
            • (Item-type of (Item being manipulated)) Equal to Claws of Attack +15
          • Then - Actions
            • Special Effect - Create a special effect attached to the right hand of (Hero manipulating item) using Objects\InventoryItems\BattleStandard\BattleStandard.mdl
            • Set specialEffect = (Last created special effect)
          • Else - Actions
            • Do nothing


    • Untitled Trigger 007
      • Events
        • Unit - A unit Loses an item
      • Conditions
      • Actions
        • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          • If - Conditions
            • (Item-type of (Item being manipulated)) Equal to Claws of Attack +15
          • Then - Actions
            • Special Effect - Destroy specialEffect
          • Else - Actions
            • Do nothing


    This works for me. However this is not multi-instanceable.
     
  6. Coolty44

    Coolty44

    Joined:
    Dec 10, 2008
    Messages:
    576
    Resources:
    1
    Spells:
    1
    Resources:
    1
    This can be done without triggers. Make a dummy ability based off Sphere and delete the crap about Spirte one Spirite two bla bla and change it to 2 strings. One is "Hand" and the 2nd one is whatever side you want your unit to hold it. Then change the Target Art to your wanted effect and change the part about projectiles to none. Name it what you like, then take an item that adds something to the hero as long as they have it (like a Ring of Defense). At the very top, there should be a part about ability's. Change that to have your dummy shpere ability.