Hi again
I want to make a realistic inventory use. So that you can only have 1 two-handed weapon on you, or 2 1-handed weapons. Now I have done this so far:
Although I can manage to pick up all 3 2-handed weapons, which would raise it to be 6. It does not return those.
I want to make a realistic inventory use. So that you can only have 1 two-handed weapon on you, or 2 1-handed weapons. Now I have done this so far:
-
Pick up Item
-
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
- WepCounterPlayer1 Greater than or equal to 2
- (Item-type of (Item being manipulated)) Equal to Axe (1 handed)
- (Item-type of (Item being manipulated)) Equal to Mace (1 handed)
- (Item-type of (Item being manipulated)) Equal to Sword (1 handed)
-
Conditions
-
Or - Any (Conditions) are true
-
Then - Actions
- Wait 2.00 seconds
- Set WepCounterPlayer1 = (WepCounterPlayer1 + 1)
-
Else - Actions
- Item - Move (Item being manipulated) to (Position of (Item being manipulated))
- Game - Display to (All players) the text: Fak u gooby
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
Or - Any (Conditions) are true
-
Conditions
- WepCounterPlayer1 Equal to 0
- (Item-type of (Item being manipulated)) Equal to Hammer (2 Handed)
- (Item-type of (Item being manipulated)) Equal to Swiftbane (2 Handed)
- (Item-type of (Item being manipulated)) Equal to War Axe (2 Handed)
-
Conditions
-
Or - Any (Conditions) are true
-
Then - Actions
- Set WepCounterPlayer1 = (WepCounterPlayer1 + 2)
-
Else - Actions
- Item - Move (Item being manipulated) to (Position of (Item being manipulated))
- Game - Display to (All players) the text: Fak u gooby
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Events
Although I can manage to pick up all 3 2-handed weapons, which would raise it to be 6. It does not return those.