Hey, i am wondering how to limit number of items of type carreid by hero.
i got this, but it lets u pick up more than 1 still
And if i have this you cant even pick up 1
i got this working, but if theres a simpler way let me know.
i got this, but it lets u pick up more than 1 still
-
WingLimiterTest
-
Events
- Unit - A unit Acquires an item
- Conditions
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Item-type of (Item being manipulated)) Equal to |cffffff00Divine|r Wings
-
Or - Any (Conditions) are true
-
Conditions
- (Custom value of (Item carried by (Hero manipulating item) of type |cffffff00Divine|r Wings)) Equal to 1
- ((Hero manipulating item) has an item of type |cff008000Nature|r Wings) Equal to True
- ((Hero manipulating item) has an item of type |cff00ffffCosmic|r Wings) Equal to True
- ((Hero manipulating item) has an item of type |cff800000Chaos|r Wings) Equal to True
- ((Hero manipulating item) has an item of type |cff800080Void|r Wings) Equal to True
-
Conditions
-
Then - Actions
- Hero - Drop (Item being manipulated) from (Hero manipulating item).
- Game - Display to (Player group((Owner of (Hero manipulating item)))) the text: [|cffff0000U|rD|cff...
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Events
And if i have this you cant even pick up 1
-
WingLimiterTest
-
Events
- Unit - A unit Acquires an item
- Conditions
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Item-type of (Item being manipulated)) Equal to |cffffff00Divine|r Wings
-
Or - Any (Conditions) are true
-
Conditions
- ((Hero manipulating item) has an item of type |cffffff00Divine|r Wings)) Equal to True
- ((Hero manipulating item) has an item of type |cff008000Nature|r Wings) Equal to True
- ((Hero manipulating item) has an item of type |cff00ffffCosmic|r Wings) Equal to True
- ((Hero manipulating item) has an item of type |cff800000Chaos|r Wings) Equal to True
- ((Hero manipulating item) has an item of type |cff800080Void|r Wings) Equal to True
-
Conditions
-
Then - Actions
- Hero - Drop (Item being manipulated) from (Hero manipulating item).
- Game - Display to (Player group((Owner of (Hero manipulating item)))) the text: [|cffff0000U|rD|cff...
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Events
i got this working, but if theres a simpler way let me know.
-
WingAquire
-
Events
- Unit - A unit Acquires an item
- Conditions
-
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 being manipulated)) Equal to |cff008000Nature|r Wings
- (Item-type of (Item being manipulated)) Equal to |cff00ffffCosmic|r Wings
- (Item-type of (Item being manipulated)) Equal to |cff800000Chaos|r Wings
- (Item-type of (Item being manipulated)) Equal to |cff800080Void|r Wings
- (Item-type of (Item being manipulated)) Equal to |cffffff00Divine|r Wings
-
Conditions
-
Or - Any (Conditions) are true
-
Then - Actions
- Set VariableSet LimitWings[(Player number of (Owner of (Hero manipulating item)))] = (LimitWings[(Player number of (Owner of (Hero manipulating item)))] + 1)
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Events
-
WingLoose
-
Events
- Unit - A unit Loses an item
- Conditions
-
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 being manipulated)) Equal to |cff008000Nature|r Wings
- (Item-type of (Item being manipulated)) Equal to |cff00ffffCosmic|r Wings
- (Item-type of (Item being manipulated)) Equal to |cff800000Chaos|r Wings
- (Item-type of (Item being manipulated)) Equal to |cff800080Void|r Wings
- (Item-type of (Item being manipulated)) Equal to |cffffff00Divine|r Wings
-
Conditions
-
Or - Any (Conditions) are true
-
Then - Actions
- Set VariableSet LimitWings[(Player number of (Owner of (Hero manipulating item)))] = (LimitWings[(Player number of (Owner of (Hero manipulating item)))] - 1)
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Events
-
WingLimiter
-
Events
- Unit - A unit Acquires an item
- Conditions
-
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 being manipulated)) Equal to |cff008000Nature|r Wings
- (Item-type of (Item being manipulated)) Equal to |cff00ffffCosmic|r Wings
- (Item-type of (Item being manipulated)) Equal to |cff800000Chaos|r Wings
- (Item-type of (Item being manipulated)) Equal to |cff800080Void|r Wings
- (Item-type of (Item being manipulated)) Equal to |cffffff00Divine|r Wings
-
Conditions
- LimitWings[(Player number of (Owner of (Hero manipulating item)))] Greater than 1
-
Or - Any (Conditions) are true
-
Then - Actions
- Hero - Drop (Item being manipulated) from (Hero manipulating item).
- Game - Display to (Player group((Owner of (Hero manipulating item)))) the text: [|cffff0000U|rD|cff...
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Events
Last edited: