- Joined
- Jun 2, 2009
- Messages
- 1,233
Hello everone. I am bit of confused because it item system of Warcraft III. As you know if you try to pick item and check the item in the trigger, game immediately realizes you have the item and counting it in trigger.
I have created system like this. I want to prevent players to get more than 1 of the items i have specified. I know it looks bit of complex but i believe there is the easy way to do that instead of create variables like this.
It is working well. But i don't know i feel i screwed everything up. I believe there is lot of more easy way to do that.
I have created system like this. I want to prevent players to get more than 1 of the items i have specified. I know it looks bit of complex but i believe there is the easy way to do that instead of create variables like this.
-
Sadece1AdetAncestralTouch
-
Events
-
Unit - A unit Acquires an item
-
-
Conditions
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
And - All (Conditions) are true
-
Conditions
-
(Item-type of (Item being manipulated)) Equal to Ancestral Staff
-
AncestralTouchInt[(Player number of (Owner of (Triggering unit)))] Equal to 1
-
((Triggering unit) has an item of type Ancestral Staff) Equal to True
-
-
-
-
Then - Actions
-
Hero - Drop (Item being manipulated) from (Triggering unit)
-
Set AncestralTouchInt[(Player number of (Owner of (Triggering unit)))] = 0
-
-
Else - Actions
-
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
And - All (Conditions) are true
-
Conditions
-
(Item-type of (Item being manipulated)) Equal to Ancestral Staff
-
AncestralTouchInt[(Player number of (Owner of (Triggering unit)))] Equal to 0
-
-
-
-
Then - Actions
-
Set AncestralTouchInt[(Player number of (Owner of (Triggering unit)))] = (AncestralTouchInt[(Player number of (Triggering player))] + 1)
-
-
Else - Actions
-
-
-
-
Sadece1AdetBirak
-
Events
-
Unit - A unit Loses 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 Steel Shield
-
-
Then - Actions
-
Set SteelShieldInt[(Player number of (Owner of (Triggering unit)))] = 0
-
-
Else - Actions
-
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Item-type of (Item being manipulated)) Equal to Iron Plate
-
-
Then - Actions
-
Set IronPlateInt[(Player number of (Owner of (Triggering unit)))] = 0
-
-
Else - Actions
-
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Item-type of (Item being manipulated)) Equal to Ancestral Staff
-
-
Then - Actions
-
Set AncestralTouchInt[(Player number of (Owner of (Triggering unit)))] = 0
-
-
Else - Actions
-
-
-
It is working well. But i don't know i feel i screwed everything up. I believe there is lot of more easy way to do that.