Kosolov325
Recruit
It's possible to add new values inside a string?
I'm trying to loop through an instance which has 48 slots... and i wanna assign their item_ids on a string with this "|" between the ids
i did like that.. but isn't working
str_ibank_message = "{reg24}|"
I'm trying to loop through an instance which has 48 slots... and i wanna assign their item_ids on a string with this "|" between the ids
i did like that.. but isn't working
str_ibank_message = "{reg24}|"
Python:
(str_store_string, s3, "str_ibank_message"),
(try_for_range, ":inventory_slot", slot_scene_prop_inventory_begin, ":inventory_end"),
(scene_prop_get_slot, ":item_id", ":instance_id", ":inventory_slot"),
(try_begin),
(neq, ":inventory_slot", ":inventory_end"), #On the last slot does not add another {reg24}|
(assign, reg24, ":item_id"),
(str_store_string_reg, s3, reg24),
(str_store_string, s3, "str_ibank_message"),
(else_try),
(assign, reg24, ":item_id"), #On the last slot does not add another {reg24}|
(str_store_string_reg, s3, reg24),
(try_end),
Last edited: