code_language.skript:
if lore of player's tool is "Speaker":
if {numero.de.speaker} is not set:
set {numero.de.speaker} to 0
add 1 to {numero.de.speaker}
set {speakerXcord::%{numero.de.speaker}%} to "%event-block's x-coordinate%" parsed as integer
set {speakerYcord::%{numero.de.speaker}%} to "%event-block's y-coordinate%" parsed as integer
set {speakerZcord::%{numero.de.speaker}%} to "%event-block's y-coordinate%" parsed as integer
It just returns <none>, as if nothing is stored in the variable.
Thanks.
Ok, this is what happens when you are working for 4 hours in a row in a skript.
The problem was to set to "%event-block's x-coordinate%" instead of "set to event-blocks x-coordinates". It doesn't need to be inside " and with % around.
code_language.skript:
if lore of player's tool is "Speaker":
if {numero.de.speaker} is not set:
set {numero.de.speaker} to 0
add 1 to {numero.de.speaker}
set {speakerXcord::%{numero.de.speaker}%} to event-block's x-coordinate
set {speakerYcord::%{numero.de.speaker}%} to event-block's y-coordinate
set {speakerZcord::%{numero.de.speaker}%} to event-block's z-coordinate
set {protecao.speaker::%{numero.de.speaker}%} to event-block's location
Now its working.
Last edited: