When an item is placed in a region, it will cause another item of the same type to be generated and placed in the same region every 5 seconds, so long as there is still an item there, and the number of that item hasn't exceeded a predefined integer.
However, this trigger, instead of creating 1 new item, creates double the amount of that item in the region, that is i place one, 5 seconds later there's two, 5 seconds later four, five seconds later eight... and so on.
What could be causing this?
Trigger:
- Item - Pick every item in Farm1 <gen> and do (Actions)
- Loop - Actions
- -------- -------- --------
- -------- Crop 1 --------
- -------- -------- --------
- Set CropsCount[1] = 0
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (Item-type of (Picked item)) Equal to Crops[1]
- Then - Actions
- Set CropsCount[1] = (CropsCount[1] + 1)
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- CropsCount[1] Less than MaxCrops
- CropsCount[1] Greater than 0
- Then - Actions
- Item - Create Crops[1] at (Random point in Farm1 <gen>)
- Else - Actions
- If - Conditions
- Else - Actions
- If - Conditions
- Loop - Actions
However, this trigger, instead of creating 1 new item, creates double the amount of that item in the region, that is i place one, 5 seconds later there's two, 5 seconds later four, five seconds later eight... and so on.
What could be causing this?