YAML Parse 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 community!

    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.

KrswtkhrSK

Member
Jan 28, 2017
27
2
1
I am writing a script to record location on yaml and teleport.
But, an error has occurred ...

code_language.skript:
load yaml "*my directory*" as "tptool"
set {_tptool.location} to location of player

set yaml value "coord" from "tptool" to "%{_tptool.location}%"
save yaml "tptool"

code_language.skript:
set {_tptool.tp} to yaml value "coord" from "tptool" parsed as location #Error happened
teleport player to {_tptool.tp}
"Text cannot be parsed as a location"

Is there a way to parse text to location somehow?
 
Just curious, which add-on are you using for the yaml syntax?
 
You can't parsed anything as a location, you have to save the x, y, z coordinate and the world of the location (maybe pitch and yaw) in the YAML file, then use the location function
 
Status
Not open for further replies.