Hello, I create this code to increment a value when this chest is open but I have this error :
Error: Failed to load script 'maps/dungeons/tuto/place_holder': [string "maps/dungeons/tuto/place_holder.lua"]:5: <name> or '...' expected near '"sword"'
function sword_chest:on_opened("sword", 1, "sword_chest_save")
hero:unfreeze()
chest_open = chest_open + 1
test()
end