Page 1 of 1

Oncrafted event

Posted: Wed Mar 19, 2014 1:00 pm
by Dysoch
I know, its a duplicate post, sort of. But this is a bit different.

Currently we have onplayercrafteditem. Which works when something is crafted by the player and inserted in the inventory.

But i want to extend it: by making it 3 events. (A master and 2 slaves)
The master:

Oncrafteditem:
This is a master event of crafting. This counts items crafted by the player, both result and intermediates, and the items and fluids crafted by machines

Onplayercrafteditem:
The same as it was, but it also counts intermediates.

Onmachinecrafteditem:
The same as player crafted, but it only checks items crafted by machines.

This allows my dynamic system to be more accurate, and free of dupe bugs
(Currently, you can craft the intermediates yourslef, and then craft the result. It will then count the intermediates twice.)