Hi, I am currently working on a script where I would like for the player to have a sign opened to them.
The sign would look like if you had just placed it and were editing the sign.
Then when the play closed the sign edit thing, the server would execute a command written on the 1st line, the 3 other lines would have text which won't be used to do anything, tho when the player opens the sign thing, the text from line 2, 3 and 4 would already have been set.
That is how i want it to work, (I know that code doesn't work in any way, but it's a demonstration)
The sign would look like if you had just placed it and were editing the sign.
Then when the play closed the sign edit thing, the server would execute a command written on the 1st line, the 3 other lines would have text which won't be used to do anything, tho when the player opens the sign thing, the text from line 2, 3 and 4 would already have been set.
Code:
command /test:
trigger:
set {_sign} to sign
set 2nd line og {_sign} to "Test line 2"
set 3rd line og {_sign} to "Test line 3"
set 4th line og {_sign} to "Test line 4"
open {_sign} to player
On sign close:
If 2nd line = "Test line 2":
send "%1st line%" to player
That is how i want it to work, (I know that code doesn't work in any way, but it's a demonstration)