#Best way to store information

1 messages · Page 1 of 1 (latest)

swift karma
#

Hyptohetical: You have a bunch of levels that have different requirments to pass said level, you only want to display the requirment for the level that the player is on. What would be the most way to store the information for the requirments for each level and present it

harsh shard
#

depends on the information but variables, yml, metadata and ram vars all have their uses

#

for what you want variables are best

swift karma
#

really

#

would I want to stroe it in a list variable?

harsh shard
#

whats the requirement for example

swift karma
#

for e.g {level::1} 100 money, 10 coal"
{level::2} 200 money, 30 iron, 3 days gametime

#

something like that

harsh shard
#

hmm, i would probably use a yml list to get the requirements and display it to the user

swift karma
#

I have tried using skript-ymal

#

but it is outdated and does not work anymore

harsh shard
#

its not

#

and it does work

swift karma
#

really

harsh shard
#

skript-yaml works just fine

swift karma
#

do you have some sample code that you could send me because everything I have tried making has not worked

harsh shard
swift karma
#

Thank you

#

also

#

is it efficient to store data in nbt tags

harsh shard
#

ye

swift karma
#

lets say I am making a skript to upgrade a pickaxe

#

nbt tags would be best right

harsh shard
#

personally i dont use them much but i should more

#

they are good for what you want