wilze
Active Member
- Reaction score
- 3
These triggers are to prevent a hero to pick up more than one weapon. All weps are permanent (classification).
But now i can't pick up any of the items without having an weps in inventory.
thanks for the help.
But now i can't pick up any of the items without having an weps in inventory.
Code:
Weapon system SG
Events
Unit - A unit Acquires an item
Conditions
(Item-type of (Item being manipulated)) Equal to Benelli M4
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Item-class of (Item carried by (Hero manipulating item) in slot 1)) Not equal to Permanent
(Item-class of (Item carried by (Hero manipulating item) in slot 2)) Not equal to Permanent
(Item-class of (Item carried by (Hero manipulating item) in slot 3)) Not equal to Permanent
(Item-class of (Item carried by (Hero manipulating item) in slot 4)) Not equal to Permanent
(Item-class of (Item carried by (Hero manipulating item) in slot 5)) Not equal to Permanent
(Item-class of (Item carried by (Hero manipulating item) in slot 6)) Not equal to Permanent
Then - Actions
Item - Move (Item being manipulated) to (Position of (Hero manipulating item))
Else - Actions
Unit - Set mana of (Hero manipulating item) to 8.00
Code:
Weapon system Assult
Events
Unit - A unit Acquires an item
Conditions
(Item-type of (Item being manipulated)) Equal to M16 Assault rifle
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Item-class of (Item carried by (Hero manipulating item) in slot 1)) Not equal to Permanent
(Item-class of (Item carried by (Hero manipulating item) in slot 2)) Not equal to Permanent
(Item-class of (Item carried by (Hero manipulating item) in slot 3)) Not equal to Permanent
(Item-class of (Item carried by (Hero manipulating item) in slot 4)) Not equal to Permanent
(Item-class of (Item carried by (Hero manipulating item) in slot 5)) Not equal to Permanent
(Item-class of (Item carried by (Hero manipulating item) in slot 6)) Not equal to Permanent
Then - Actions
Item - Move (Item being manipulated) to (Position of (Hero manipulating item))
Else - Actions
Unit - Set mana of (Hero manipulating item) to 8.00
Code:
Weapon system HG
Events
Unit - A unit Acquires an item
Conditions
(Item-type of (Item being manipulated)) Equal to Glock 17
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Item-class of (Item carried by (Hero manipulating item) in slot 1)) Not equal to Permanent
(Item-class of (Item carried by (Hero manipulating item) in slot 2)) Not equal to Permanent
(Item-class of (Item carried by (Hero manipulating item) in slot 3)) Not equal to Permanent
(Item-class of (Item carried by (Hero manipulating item) in slot 4)) Not equal to Permanent
(Item-class of (Item carried by (Hero manipulating item) in slot 5)) Not equal to Permanent
(Item-class of (Item carried by (Hero manipulating item) in slot 6)) Not equal to Permanent
Then - Actions
Item - Move (Item being manipulated) to (Position of (Hero manipulating item))
Else - Actions
Unit - Set mana of (Hero manipulating item) to 8.00
thanks for the help.