Solved Setting sign text

  • 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.

Remixful

Supporter
Mar 28, 2017
8
0
0
Hello everyone. I'm new to Skripting.

So, I'm trying to figure out a way of creating a sign and setting the text of it.

This is my first attempt.
code_language.skript:
set {_sign} to sign
set line 1 of {_sign} to "test"
send "%line 1 of {_sign}%"
it prints <none> which really frustrates me. (and of course the sign is blank if i try to place it)

So next attempt:
code_language.skript:
on place of furnace:
    set block in front of event-block to wall_sign
    set line 1 of block in front of event-block to "this is line 1"
    set line 2 of block in front of event-block to "this is line 2"
I hate being repetitive. I don't want to use "block in front of event-block" more than once, it really bothers me.
Is there a way to reference the wall_sign I created?

Thanks in advance.
[doublepost=1490747531,1490742927][/doublepost]
code_language.skript:
on place of furnace:
    set block in front of event-block to wall_sign
    set {_sign} to block in front of event-block
    set line 1 of {_sign} to "this is line 1"
    set line 2 of {_sign} to "this is line 2"
I found the solution. Variable and object referencing is very confusing.
 
Status
Not open for further replies.