#(Steve) Adding definitions to Inventory script containers via inventory command
1 messages · Page 1 of 1 (latest)
(Steve) Adding definitions to Inventory script containers via inventory command
Hi I'm AutoThreadBot! Don't mind me, I'll just be adding the helper team to this thread so they can see it. A human will get to you soon.
You can block this bot if you don't want to see these messages, I won't mind.
<@&525394568410038282>
for example for procedual items that are always diffrent, depending on where its used, but its the same inventory script
there is ofc another way to do it, by adjusting the inventory after its opened. but this would be a halpful feature still
Thread is now a Feature thread. This indicates a request for a new feature to the plugin, that both (A) does not already exist and (B) reasonably can be added. If you are unsure whether this applies, use </helpthread:1028674284870180883> to change back to a normal help thread.
item
inventory [open/close/copy/move/swap/set/keep/exclude/fill/clear/update/adjust <mechanism>:<value>/flag <name>(:<action>)[:<value>] (expire:<time>)] (destination:<inventory>) (origin:<inventory>/<item>|...) (slot:<slot>)
Edits the inventory of a player, NPC, or chest.
Use this command to edit the state of inventories.
By default, the destination inventory is the current attached player's inventory.
If you are copying, swapping, removing from (including via "keep" and "exclude"), adding to, moving, or filling inventories,
you'll need both destination and origin inventories.
Origin inventories may be specified as a list of ItemTags, but destinations must be actual InventoryTags.
Using "open", "clear", or "update" only require a destination.
"Update" also req...
with inventory set origin:thoseitems destination:inv
have you worked with advanced guis before?
where items can be diffrent each time yk, like a shopgui
yes
would you maybe give me a paste of an old inventory script of yours? as a refrence for me. i understand you maybe dont want to share your work, its alright 😅 would be helpful for me though
including this
because im kind of stuck
have you thought ab it yet? please tell me if you dont want to
im currently at work but could give you an example after i get home
thanks thats awesome :D
You could also consider dumping your definitions into flags.
My main scripts using this are a bit confusing so Ive created some examples of what I mean
https://paste.denizenscript.com/View/109340
^ @primal coral Hope this is what you need :D
Content of Denizen Script Paste #109340: inventory filler... pasted 2023/04/29 10:11:50 UTC-07:00, Paste length: 1296 characters across 48 lines, Content: my_inventory: type: inventory
you can test it out with running test_filler task with numbers 1-3 as first definition