Help me with these triggers please its acting weird

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


It worked sometimes but sometimes it doesn't. It's an item class carry limit.

Trigger:
  • pet sold
    • Events
      • Unit - A unit Sells an item (from shop)
    • Conditions
      • (Item-type of (Sold Item)) Equal to Sidtri Pet Card
    • Actions
      • Neutral Building - Remove Sidtri Pet Card from all marketplaces


This one never works. the pet shop still sells the sidtri pet card. It already has the sells items ability.
 

Rakaesa

Member
Reaction score
5
The first I have no idea, but the second are you sure all the marketplaces are neutral? Other than that i'm not sure.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top