Lumos 说:
You do know that itm_no_item is a zero and nothing else but a zero, right? I don't think that the string IDs you use for compiling are stored anywhere.
Ill try to rephrase it,
插入代码块:
*Inside ID_items.py*
itm_practice_lance = 26
itm_practice_shield = 27
itm_practice_bow = 28
itm_practice_crossbow = 29
itm_practice_javelin = 30
Lets say for example I want to get the items name, I would use (str_store_item_name,<string_register>,<item_id>). So to get the itm_practice_javelin item name I would do (str_store_item_name,s2,30), What I want is using the item number to return the itm_?.
Ikaguia 说:
You could always use a python script to save all IDs as strings but I don't know how that could be usefull
The reason why I need to do it this way, Is due to storing the items in a mysql database. So if I use the itm_? it would always be static, compared to its number ID which would change whenever I added any new items.