• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[Trigger] Help fix this trigger... (duel wielding)

Status
Not open for further replies.
Level 8
Joined
Aug 3, 2008
Messages
257
okay so heres the trigger

  • Pickup Weapon Condition
    • Events
      • Unit - A unit Acquires an item
    • Conditions
      • Or - Any (Conditions) are true
        • Conditions
          • (Item-type of (Item being manipulated)) Equal to |c0000ff00Short Sword|r
          • (Item-type of (Item being manipulated)) Equal to |c0000ff00Small Dagger|r
          • (Item-type of (Item being manipulated)) Equal to |c0000ff00Short Bow|r
          • (Item-type of (Item being manipulated)) Equal to Crystal Dagger
          • (Item-type of (Item being manipulated)) Equal to Crystal Spear
          • (Item-type of (Item being manipulated)) Equal to Diamond Dagger
          • (Item-type of (Item being manipulated)) Equal to |c00e3be79Dragon Lance|r
          • (Item-type of (Item being manipulated)) Equal to Artemis Bow
          • (Item-type of (Item being manipulated)) Equal to Crescent Bow
          • (Item-type of (Item being manipulated)) Equal to Mithril Bow
          • (Item-type of (Item being manipulated)) Equal to Mithril Dagger
          • (Item-type of (Item being manipulated)) Equal to Mithril Spear
          • (Item-type of (Item being manipulated)) Equal to |c00e3be79Yoichi Bow|r
          • (Item-type of (Item being manipulated)) Equal to |c00e3be79Ragnarok|r
          • (Item-type of (Item being manipulated)) Equal to Mithril Sword
          • (Item-type of (Item being manipulated)) Equal to Ice Sword
          • (Item-type of (Item being manipulated)) Equal to |c00e3be79Excalibur|r
          • (Item-type of (Item being manipulated)) Equal to Diamond Sword
          • (Item-type of (Item being manipulated)) Equal to |c0000ff00Small Dagger|r
          • (Item-type of (Item being manipulated)) Equal to Crystal Sword
          • (Item-type of (Item being manipulated)) Equal to Aegis Axe
          • (Item-type of (Item being manipulated)) Equal to |c0000ff00Axe|r
          • (Item-type of (Item being manipulated)) Equal to Mithril Axe
          • (Item-type of (Item being manipulated)) Equal to Mithril Rod
          • (Item-type of (Item being manipulated)) Equal to |c0000ff00Rod|r
          • (Item-type of (Item being manipulated)) Equal to |c00e3be79Sage Staff|r
          • (Item-type of (Item being manipulated)) Equal to Staff of Wonders
          • (Item-type of (Item being manipulated)) Equal to Wizard Staff
          • (Item-type of (Item being manipulated)) Equal to Barong
          • (Item-type of (Item being manipulated)) Equal to Buster Sword
          • (Item-type of (Item being manipulated)) Equal to Chirijiraden
          • (Item-type of (Item being manipulated)) Equal to Gale Sword
          • (Item-type of (Item being manipulated)) Equal to Hard Knuckles
          • (Item-type of (Item being manipulated)) Equal to Mythril Claws
          • (Item-type of (Item being manipulated)) Equal to Full Vial
          • (Item-type of (Item being manipulated)) Equal to Silver Sword
          • (Item-type of (Item being manipulated)) Equal to |c000000ffo|r|c000000e6r|r|c000000cdi|r|c000000b4c|r|c0000009bhalcum|r
          • (Item-type of (Item being manipulated)) Equal to |c0000ff00Dream Watcher|r
          • (Item-type of (Item being manipulated)) Equal to |c0000ff00Greaseburst|r
          • (Item-type of (Item being manipulated)) Equal to |c00800080Black Lacquer|r |c000000ffBow|r
          • (Item-type of (Item being manipulated)) Equal to |c00e3be79Eclipse|r
          • (Item-type of (Item being manipulated)) Equal to |c00e3be79Masamune|r |c000000ff100|r
          • (Item-type of (Item being manipulated)) Equal to |c00e3be79Nagrarok|r
          • (Item-type of (Item being manipulated)) Equal to |c00e3be79Excalibur2|r
          • (Item-type of (Item being manipulated)) Equal to Hunter Bow
          • (Item-type of (Item being manipulated)) Equal to |c00804000K|r|c00aa7f00i|r|c00d4be00kuichimonji|r
          • (Item-type of (Item being manipulated)) Equal to |c00804000Z|r|c009f5000a|r|c00be6000n|r|c00dd7000kplus|r
    • Actions
      • For each (Integer A) from 1 to 6, do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • Or - Any (Conditions) are true
                • Conditions
                  • (Item-type of (Item carried by (Hero manipulating item) in slot (Integer A))) Equal to |c0000ff00Short Sword|r
                  • (Item-type of (Item carried by (Hero manipulating item) in slot (Integer A))) Equal to |c0000ff00Small Dagger|r
                  • (Item-type of (Item carried by (Hero manipulating item) in slot (Integer A))) Equal to Crystal Dagger
                  • (Item-type of (Item carried by (Hero manipulating item) in slot (Integer A))) Equal to Crystal Spear
                  • (Item-type of (Item carried by (Hero manipulating item) in slot (Integer A))) Equal to Diamond Dagger
                  • (Item-type of (Item carried by (Hero manipulating item) in slot (Integer A))) Equal to |c00e3be79Dragon Lance|r
                  • (Item-type of (Item carried by (Hero manipulating item) in slot (Integer A))) Equal to Artemis Bow
                  • (Item-type of (Item carried by (Hero manipulating item) in slot (Integer A))) Equal to Crescent Bow
                  • (Item-type of (Item carried by (Hero manipulating item) in slot (Integer A))) Equal to Mithril Bow
                  • (Item-type of (Item carried by (Hero manipulating item) in slot (Integer A))) Equal to Mithril Dagger
                  • (Item-type of (Item carried by (Hero manipulating item) in slot (Integer A))) Equal to Mithril Spear
                  • (Item-type of (Item carried by (Hero manipulating item) in slot (Integer A))) Equal to |c00e3be79Yoichi Bow|r
                  • (Item-type of (Item carried by (Hero manipulating item) in slot (Integer A))) Equal to Mithril Sword
                  • (Item-type of (Item carried by (Hero manipulating item) in slot (Integer A))) Equal to Ice Sword
                  • (Item-type of (Item carried by (Hero manipulating item) in slot (Integer A))) Equal to |c00e3be79Excalibur|r
                  • (Item-type of (Item carried by (Hero manipulating item) in slot (Integer A))) Equal to Diamond Sword
                  • (Item-type of (Item carried by (Hero manipulating item) in slot (Integer A))) Equal to Crystal Sword
                  • (Item-type of (Item carried by (Hero manipulating item) in slot (Integer A))) Equal to |c0000ff00Small Dagger|r
                  • (Item-type of (Item carried by (Hero manipulating item) in slot (Integer A))) Equal to |c00e3be79Ragnarok|r
                  • (Item-type of (Item carried by (Hero manipulating item) in slot (Integer A))) Equal to |c0000ff00Short Sword|r
                  • (Item-type of (Item carried by (Hero manipulating item) in slot (Integer A))) Equal to Aegis Axe
                  • (Item-type of (Item carried by (Hero manipulating item) in slot (Integer A))) Equal to |c0000ff00Axe|r
                  • (Item-type of (Item carried by (Hero manipulating item) in slot (Integer A))) Equal to Mithril Axe
                  • (Item-type of (Item carried by (Hero manipulating item) in slot (Integer A))) Equal to Mithril Rod
                  • (Item-type of (Item carried by (Hero manipulating item) in slot (Integer A))) Equal to |c0000ff00Rod|r
                  • (Item-type of (Item carried by (Hero manipulating item) in slot (Integer A))) Equal to |c00e3be79Sage Staff|r
                  • (Item-type of (Item carried by (Hero manipulating item) in slot (Integer A))) Equal to Staff of Wonders
                  • (Item-type of (Item carried by (Hero manipulating item) in slot (Integer A))) Equal to Wizard Staff
                  • (Item-type of (Item carried by (Hero manipulating item) in slot (Integer A))) Equal to Barong
                  • (Item-type of (Item carried by (Hero manipulating item) in slot (Integer A))) Equal to Buster Sword
                  • (Item-type of (Item carried by (Hero manipulating item) in slot (Integer A))) Equal to Chirijiraden
                  • (Item-type of (Item carried by (Hero manipulating item) in slot (Integer A))) Equal to Gale Sword
                  • (Item-type of (Item carried by (Hero manipulating item) in slot (Integer A))) Equal to Hard Knuckles
                  • (Item-type of (Item carried by (Hero manipulating item) in slot (Integer A))) Equal to Mythril Claws
                  • (Item-type of (Item carried by (Hero manipulating item) in slot (Integer A))) Equal to Full Vial
                  • (Item-type of (Item carried by (Hero manipulating item) in slot (Integer A))) Equal to Silver Sword
                  • (Item-type of (Item carried by (Hero manipulating item) in slot (Integer A))) Equal to |c000000ffo|r|c000000e6r|r|c000000cdi|r|c000000b4c|r|c0000009bhalcum|r
                  • (Item-type of (Item carried by (Hero manipulating item) in slot (Integer A))) Equal to |c0000ff00Dream Watcher|r
                  • (Item-type of (Item carried by (Hero manipulating item) in slot (Integer A))) Equal to |c0000ff00Greaseburst|r
                  • (Item-type of (Item carried by (Hero manipulating item) in slot (Integer A))) Equal to |c00800080Black Lacquer|r |c000000ffBow|r
                  • (Item-type of (Item carried by (Hero manipulating item) in slot (Integer A))) Equal to |c00e3be79Eclipse|r
                  • (Item-type of (Item carried by (Hero manipulating item) in slot (Integer A))) Equal to |c00e3be79Masamune|r |c000000ff100|r
                  • (Item-type of (Item carried by (Hero manipulating item) in slot (Integer A))) Equal to |c00e3be79Nagrarok|r
                  • (Item-type of (Item carried by (Hero manipulating item) in slot (Integer A))) Equal to |c00e3be79Excalibur2|r
                  • (Item-type of (Item carried by (Hero manipulating item) in slot (Integer A))) Equal to Hunter Bow
                  • (Item-type of (Item carried by (Hero manipulating item) in slot (Integer A))) Equal to |c00804000K|r|c00aa7f00i|r|c00d4be00kuichimonji|r
                  • (Item-type of (Item carried by (Hero manipulating item) in slot (Integer A))) Equal to |c00804000Z|r|c009f5000a|r|c00be6000n|r|c00dd7000kplus|r
            • Then - Actions
              • Set AlreadyCarryingEquip = (AlreadyCarryingEquip + 1)
            • Else - Actions
              • Do nothing
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • AlreadyCarryingEquip Greater than 1
          • And - All (Conditions) are true
            • Conditions
              • (Unit-type of (Hero manipulating item)) Not equal to |c000000FFRogue|r
              • (Unit-type of (Hero manipulating item)) Not equal to |c00C0C0C0Gordon Stormshield|r
              • (Unit-type of (Hero manipulating item)) Not equal to |c000000FFDruid|r
              • (Unit-type of (Hero manipulating item)) Not equal to |cffffEE00Urlok Cloudkiller|r
        • Then - Actions
          • Hero - Drop (Item being manipulated) from (Hero manipulating item)
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • AlreadyCarryingEquip Greater than 2
          • Or - Any (Conditions) are true
            • Conditions
              • ((Unit-type of (Hero manipulating item)) Equal to |c00C0C0C0Gordon Stormshield|r) and ((Item-type of (Item being manipulated)) Not equal to Crystal Spear)
              • (Unit-type of (Hero manipulating item)) Equal to |c000000FFRogue|r
              • (Unit-type of (Hero manipulating item)) Equal to |c000000FFDruid|r
              • (Unit-type of (Hero manipulating item)) Equal to |cffffEE00Urlok Cloudkiller|r
        • Then - Actions
          • Hero - Drop (Item being manipulated) from (Hero manipulating item)
        • Else - Actions
      • Set AlreadyCarryingEquip = 0
Now this makes it so, that the classes listed below can use duel wielding.. it works now some of them like the warrior can use spears, or 2h swords. I need to make this trigger be able to make it so they can't duel wield the 2h wpns... if that makes sense, soo... i've tried this...

  • ((Unit-type of (Hero manipulating item)) Equal to |c00C0C0C0Gordon Stormshield|r) and ((Item-type of (Item being manipulated)) Not equal to Crystal Spear)
but it's not helping any... any ideas?
 
Status
Not open for further replies.
Top