Manix
Well-Known Member
- Reaction score
- 29
Duh, alright what I'm tryina do is allow my units to only have 1 weapon (item level 8) but it's driving me crazy, I don't see where I'm doing wrong but my code is messing up terribly, it works fine untill I try to pick up a weapon while having one, then it displays the text that I already got a weapon but still picks up the new one sets the unit's damage to the new weapon's dmg but not dropping the old one.. lol just check the codes
Trigger:
- Damage Bonus Plus
- Events
- Unit - A unit Acquires an item
- Conditions
- (Item level of (Item being manipulated)) Equal to 8
- Actions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (Item level of (Item carried by (Triggering unit) in slot 6)) Not equal to 8
- Then - Actions
- Item - Remove (Item carried by (Triggering unit) in slot 6)
- Unit - Order (Triggering unit) to move (Item being manipulated) to inventory slot 6
- Unit - Set level of Item Damage Bonus (+1) for (Triggering unit) to (Integer((Current life of (Item being manipulated))))
- Else - Actions
- Hero - Drop (Item being manipulated) from (Triggering unit)
- Game - Display to (All players) the text: <Empty String>
- Game - Display to (All players) the text: ...
- Game - Display to (All players) the text: <Empty String>
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- Events
Trigger:
- Damage Bonus Minus
- Events
- Unit - A unit Loses an item
- Conditions
- (Item level of (Item being manipulated)) Equal to 8
- Actions
- Unit - Set level of Item Damage Bonus (+1) for (Triggering unit) to 1
- Hero - Create Unarmed and give it to (Triggering unit)
- Unit - Order (Triggering unit) to move (Last created item) to inventory slot 6
- Events