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
- Conditions
- (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))
- Or - Any (Conditions) are true
- 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
- Conditions
- itemclasscounter Greater than 1
- Or - Any (Conditions) are true
- 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 - Conditions
- 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 - Conditions
- 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 - Conditions
- 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
- If - Conditions
- 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 - Conditions
- 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
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- Loop - Actions
- Events
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.