(quantity _material1) > 0 && _owner getVariable ['isUsingSomething',0] == 0 && !(_material1 isKindOf 'Consumable_SmallStone')
_result1 setDamage (damage _material1); _result2 setDamage (damage _material1); _result2 setQuantity 1; _result1 setQuantity 1; [_owner,'I have splited the stone.','colorAction'] call fnc_playerMessage;
What is this?
The condition and action scripts are bits of code used by the game to handle more complicated mechanics than can be expressed by just providing components and results.
The condition script adds restrictions on when a recipe can be crafted. If the expression in the condition evaluates to false, the recipe isn't available.
The action script allows the recipe to handle more complex inputs and outputs. For example, it's used when combining stacks of items to allow stacks of any sizes to be merged together.