Content of Denizen Script Paste #109497: Unnamed Denizen Script Paste... pasted 2023/05/06 00:04:25 UTC-07:00, Paste length: 555 characters across 9 lines, Content: forster_npc_spawnegg: type: world
#(Niklas) Skin_Blob
40 messages · Page 1 of 1 (latest)
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>
I have this script here but I dont know how to get the skin flagged
So you have a skin blob and you're having trouble storing it?
yes
Is it a static thing? or will you be dynamically changing it?
it will be static.
Data script containers are generic script containers for information that will be referenced by other scripts.
No part of a 'data' script container is ever run as commands.
There are no required keys.
Generally, data is read using the !tag ScriptTag.data_key tag.
data_script_name:
type: data
# Your data here
some_key: some value
some_list_key:
- some list value
some_map_key:
some_subkey: some value
Group
Script Container System
I have never done something with data scripts
(Or just have it in the script directly, ig)
It's pretty simple - data scripts are scripts that do nothing but store information, and that information can be read by other scripts
data_script:
type: data
message: Hello!
task_script:
type: task
script:
- narrate <script[data_script].data_key[message]>
Here's a basic example that'll narrate Hello!
well.
I am more confused then before
data_script just stores information in it, can think of it like a plugin's config file for example.
task_script reads that information from the data script:
<script[data_script] - that gets the ScriptTag of the data script
.data_key[message]> - that reads the information under the message key from the data script
but I dont want a message but a skin
Yes, that's just an example, you can store anything in the data script and read it the same way
I had this working with the flag.. and it was more comfortable with that
In your case, you could have a skin_blob key in your data script, then use <script[].data_key[]> in the mechanism to read it
I mean, that's a valid way as well - you said you were having trouble storing it so I recommend data scripts which are usually the way to store static data
But a server flag is fine as well, if it's already working then what's your question?
it was working on my testserver but I forgot how to set the server flag with the correct skin
And I cant copy the serverflags because my old testserver is on my old PC which is destroyed...
!g long term memory
View the guide page 'Long Term Memory: Flags' at: https://guide.denizenscript.com/guides/basics/flags.html
flag server FLAG_NAME:FLAG_VALUE
ahh thank you.
Thread Closing Reminder
Has your issue been resolved, or your question been answered?
If so, please use the </resolved:1028673926114594866> command to close your thread.
Or </invalid:1028673926898909185> if it's not possible to resolve.
If not yet resolved, please reply below to tell us what you still need.
(Note that if there is no reply for a few days, this thread will eventually close itself.)
@ocean lava