I wrote a spoil_to_trigger_result for an item.
code
Code: Select all
spoil_to_trigger_result ={
items_per_trigger = 1,
trigger = {
type = "direct",
action_delivery = {
type = "instant",
source_effects = {
{
type = "script",
effect_id = "myid",
},
{
type = "insert-item",
item = name,
}
}
}
}
}
When the item is in the result slot of the assembler, the event will not be triggered !!!
It is expected that the on_script_trigger_effect event will be triggered.