It looks like you're new here. If you want to get involved, click one of these buttons!
(set: $iron_knife to (datamap: "Name","Iron Knife", "Description","an iron knife", "slot","rh",<!-- right hand --> <!-- many other data here --> ))After obtained ingame, and stored inside an array...
(set: $weapons to (a:))...the player can visit the "inventory" passage to equip the character, delete the item, check its functions, etc. But how can I initiate an item stored only "on demand"? I mean, if I have hundreds of weapons and items, it will cause some impact over my inventory system.
Comments
But of course, the knife must exist — or better saying, its datamap needs to be loaded. But I suppose is not good idea to startup all weapons when the game is loaded, but only when one of them is required (collected from the link-reveal).
So if I have a "weapons" passage with startup tag holding all weapons of the game (let's say I'm talking of dozen, maybe hundreds), it's not really good. My idea is if there is a way to load the item datamap ONLY if the link-reveal is used.
To be honest, seems like a dead-end in the way I wrote the code. Or maybe I'm tired and not thinking rationally...