【Skript】file help

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

MEncrp

New Member
Jul 13, 2018
6
0
0
18
Hello
I want to make the setup file in my script successful, but how do I detect the content when I reread it?
Config:
Lore1: Test1
Lore2: Test2
Lore3: Test3
If you change Test1 to Test6 and let the script successfully detect it, how to achieve it?

code_language.skript:
write "Lore1 : Test1" at line 1 to file "%{file}%"
write "Lore1 : Test2" at line 2 to file "%{file}%"
write "Lore1 : Test3" at line 3 to file "%{file}%"
[Help]
if line 1 not is "Test1":
set {lore1} to line1
 
Hello
I want to make the setup file in my script successful, but how do I detect the content when I reread it?
Config:
Lore1: Test1
Lore2: Test2
Lore3: Test3
If you change Test1 to Test6 and let the script successfully detect it, how to achieve it?

code_language.skript:
write "Lore1 : Test1" at line 1 to file "%{file}%"
write "Lore1 : Test2" at line 2 to file "%{file}%"
write "Lore1 : Test3" at line 3 to file "%{file}%"
[Help]
if line 1 not is "Test1":
set {lore1} to line1
Maybe try
code_language.skript:
if line 1 of file "%{file}%" is not "england is my city":
Or if that doesnt work
code_language.skript:
set {_val} to yaml value "Lore1" from file "%{file}%"
if {_val} is not "england is my city":
 
Status
Not open for further replies.