BUG spoil_to_trigger_result not triggered
Posted: Wed Dec 18, 2024 6:32 am
spoil_to_trigger_result not triggered
I wrote a spoil_to_trigger_result for an item.
code
It can be triggered normally when the item is in the player's inventory
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.
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.