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
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
- Events
This one never works. the pet shop still sells the sidtri pet card. It already has the sells items ability.