Christopho, I tried to do so:
Code Select
function bomb_chest:on_opened()
game:get_item("bomb"):set_variant(1)
hero:unfreeze()
game:start_dialog("found.bombs", function()
sol.audio.play_sound("bombs")
end)
end
But it doesn't work and game isn't giving bombs to hero. Yes, I see the dialog, I hear my hero says "Bombs!", but slot is empty. I just want to put some things in chests, but without brandish. Tomorrow will try to experiment with custom entities