- Joined
- Jul 11, 2009
- Messages
- 294
Hi guys,
I need help with this trigger.
When a unit enters a region, if the unit is a smuggler, I want to remove items carried by ((triggering unit) of type "drug") and give gold to the owner of triggering unit depending on how much drug is in the inventory.
For example, if the smuggler enters the region with 3 "drugs", the trigger will remove the 3 drugs in inventory then add 3 x 10gold to the owner of triggering unit.
Whereas if the smuggler enters the region with 6 "drugs", the trigger will remove the 6 drugs in inventory then add 6 x 10gold to the owner of triggering unit.
How can I do so?
Thanks!
I need help with this trigger.
When a unit enters a region, if the unit is a smuggler, I want to remove items carried by ((triggering unit) of type "drug") and give gold to the owner of triggering unit depending on how much drug is in the inventory.
For example, if the smuggler enters the region with 3 "drugs", the trigger will remove the 3 drugs in inventory then add 3 x 10gold to the owner of triggering unit.
Whereas if the smuggler enters the region with 6 "drugs", the trigger will remove the 6 drugs in inventory then add 6 x 10gold to the owner of triggering unit.
How can I do so?
Thanks!