Easy. Select Units withing range of the campfire matching conditions of 1. Bear Meat, 2. Wolf meat etc... then remove item from game. Create new Cooked Bear Meat etc. And done.
Trigger:
- Untitled Trigger 001
- Events
- Unit - A unit Starts the effect of an ability
- Conditions
- (Ability being cast) Equal to Cook
- Actions
- Item - Pick every item in (Region centered at (Position of (Casting unit)) with size (200.00, 200.00)) and do (Actions)
- Loop - Actions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (Item-type of (Picked item)) Equal to Bear Meat
- Then - Actions
- Item - Remove (Picked item)
- Else - Actions
- Item - Create Cooked Bear Meat at (Position of (Casting unit))
That's just the basic structure, the rest is up to you.
> You have to move the create action in under the THEN actions
I've already fixed it before I received your comment, realized what I had done and fixed it. This code does work... and only removes if it is bear meat etc.
wait a corpse is an item?
Cuz i thought it was well.. a corpse
yup exactly what i meant the corpse isnt an itemXDisland troll tribes is using the corpse cargo ability, right?
if so, then they are units... dead units...
You should check for dead units around the campfire and create items on the position of the corpses and ofc remove the corpses
island troll tribes is using the corpse cargo ability, right?
if so, then they are units... dead units...
You should check for dead units around the campfire and create items on the position of the corpses and ofc remove the corpses