Weird Item Class Carry Limit Problem

silentgamerz

New Member
Reaction score
0
Trigger:
  • item carry limit
    • Events
      • Unit - A unit Acquires an item
    • Conditions
    • Actions
      • Set itemclasscounter = 0
      • 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-class of (Item carried by (Hero manipulating item) in slot (Integer A))) Equal to Permanent
                  • (Item-class of (Item carried by (Hero manipulating item) in slot (Integer A))) Equal to Artifact
                  • (Item-class of (Item carried by (Hero manipulating item) in slot (Integer A))) Equal to Purchasable
                  • (Item-class of (Item carried by (Hero manipulating item) in slot (Integer A))) Equal to Campaign
                  • (Item-class of (Item carried by (Hero manipulating item) in slot (Integer A))) Equal to Unknown
              • (Item carried by (Hero manipulating item) in slot (Integer A)) Not equal to No item
              • (Item-class of (Item carried by (Hero manipulating item) in slot (Integer A))) Equal to (Item-class of (Item being manipulated))
            • Then - Actions
              • Set itemclasscounter = (itemclasscounter + 1)
            • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • Or - Any (Conditions) are true
                    • Conditions
                      • (Item-class of (Item being manipulated)) Equal to Permanent
                      • (Item-class of (Item being manipulated)) Equal to Artifact
                      • (Item-class of (Item being manipulated)) Equal to Campaign
                      • (Item-class of (Item being manipulated)) Equal to Unknown
                  • itemclasscounter Greater than 1
                • Then - Actions
                  • Hero - Drop (Item being manipulated) from (Hero manipulating item)
                  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    • If - Conditions
                      • (Item-class of (Item being manipulated)) Equal to Permanent
                    • Then - Actions
                      • Floating Text - Create floating text that reads Your hero cannot ha... above (Hero manipulating item) with Z offset 0.00, using font size 8.00, color (100.00%, 0.00%, 0.00%), and 0.00% transparency
                    • Else - Actions
                  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    • If - Conditions
                      • (Item-class of (Item being manipulated)) Equal to Artifact
                    • Then - Actions
                      • Floating Text - Create floating text that reads Your hero cannot ha... above (Hero manipulating item) with Z offset 0.00, using font size 8.00, color (100.00%, 0.00%, 0.00%), and 0.00% transparency
                    • Else - Actions
                  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    • If - Conditions
                      • (Item-class of (Item being manipulated)) Equal to Campaign
                    • Then - Actions
                      • Floating Text - Create floating text that reads Your hero cannot ha... above (Hero manipulating item) with Z offset 0.00, using font size 8.00, color (100.00%, 0.00%, 0.00%), and 0.00% transparency
                    • Else - Actions
                  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    • If - Conditions
                      • (Item-class of (Item being manipulated)) Equal to Unknown
                    • Then - Actions
                      • Floating Text - Create floating text that reads Your hero cannot ha... above (Hero manipulating item) with Z offset 0.00, using font size 8.00, color (100.00%, 0.00%, 0.00%), and 0.00% transparency
                    • Else - Actions
                  • Floating Text - Change (Last created floating text): Disable permanence
                  • Floating Text - Change the lifespan of (Last created floating text) to 2.00 seconds
                • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • (Item-class of (Item being manipulated)) Equal to Purchasable
                  • itemclasscounter Greater than 2
                • Then - Actions
                  • Hero - Drop (Item being manipulated) from (Hero manipulating item)
                  • Floating Text - Create floating text that reads Your hero cannot ha... above (Hero manipulating item) with Z offset 0.00, using font size 8.00, color (100.00%, 0.00%, 0.00%), and 0.00% transparency
                  • Floating Text - Change (Last created floating text): Disable permanence
                  • Floating Text - Change the lifespan of (Last created floating text) to 2.00 seconds
                • Else - Actions


I tested it many times but it doesn't always work. The permanent class carry limit sometimes work but sometimes it doesn't. When the artifact class carry limit work, the permanent class or the purchasable class doesn't work. The campaign class carry limit rarely works. And the unknown( miscellaneous) class carry limit never works.
 

NoobImbaPro

You can change this now in User CP.
Reaction score
60
go to your trigger right click its name, then press copy as text, come here, write [.WC3][./WC3] without dots and inside them paste what you copied. I will understand it better





PS HEY ROMEK ADD WC3, AND JASS ON POSTING BAR
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top