require "core"

item_id = "1234abcd"

item_dictionary_id = core.generate_item_dictionary_number_id(item_id, 1, 10)
print(item_dictionary_id) -- output: 1

core.update_item_dictionary_value( item_id, tostring(item_dictionary_id), "value1" )

item_dictionary_id = core.generate_item_dictionary_number_id(item_id, 1, 10)
print(item_dictionary_id) -- output: 2