Solved Change 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.
Aug 8, 2021
37
0
6
21
I have been trying to change sign text for a 1v1 game in pvp
I am not sure how to though.
I tried set text of {_sign} to "Axe 1v1. %{axe1v1people1}%/2"
and set line 1 of {_sign} to "Axe 1v1. %{axe1v1people1}%/2"
but it does not work. no errors
full code
command /setaxe1v1sign1:
permission:emoji_astonished:p
trigger:
if the player's target block is a wall sign:
set {axe1v1signs1} to the player's targeted block
send "You have set Axe 1v1 sign 1!"
set {_sign} to the player's targeted block
set text of {_sign} to "Axe 1v1. %{axe1v1people1}%/2"
else:
send "Hey!, That's not a sign!"
 
I'm Not Sure How Sorry.
the 17th button or the 4th if you go from right to left
upload_2021-10-2_22-36-42.png
 
Code:
on right click on sign:
    if the event-block is the block at {axe1v1signs1}:
        set {_sign} to event-block
        if {axe1v1inqueue1.%player%} is false:
            if {axe1v1people1} is less than 2:
                increase {axe1v1people1} by 1
                set text of {_sign} to "Axe 1v1. %{axe1v1people1}%/2"
                set {axe1v1inqueue1.%player%} to true
                loop all players:
                    if {axe1v1inqueue1.%player%} is true:
                        send "A player Joined Axe 1v1!"
                if {axe1v1people1} is 2:
                    set text of {_sign} to "Axe 1v1. %{axe1v1people1}%/2 Game Started."
                    loop all players:
                        if {axe1v1inqueue1.%loop-player%} = true:
                            teleport the loop-player to the block at {axe1v1arena1}
                            set {axe1v1ingame1.%loop-player%} to true
                            set {axe1v1inqueue1.%loop-player%} to false
                            set {axe1v1people1} to 0
                            clear loop-player's inventory
                            give loop-player a diamond axe
                            give loop-player a diamond sword
                            give loop-player a crossbow
                            give loop-player a bow
                            give loop-player 7 arrows
                            set loop-player's shield to a shield
                            set loop-player's chestplate to a diamond chestplate
                            set loop-player's helmet to a diamond helmet
                            set loop-player's leggings to diamond leggings
                            set loop-player's boots to diamond boots
        else:
            send "You are already in a Queue!"
[doublepost=1633215862,1633215832][/doublepost]
Code:
command /setaxe1v1sign1:
    permission:op
    trigger:
        if the player's target block is a wall sign:
            set {axe1v1signs1} to the player's targeted block
            send "You have set Axe 1v1 sign 1!"
            set {_sign} to the player's targeted block
            set text of {_sign} to "Axe 1v1. %{axe1v1people1}%/2"
        else:
            send "Hey!, That's not a sign!"
set sign code
 
What Addons would that work with? i did
Code:
if the player's target block is a wall sign:
            set {axe1v1signs1} to the player's targeted block
            send "You have set Axe 1v1 sign 1!"
            set {_sign} to the player's targeted block
            set line 1 of {_sign} to "Axe 1v1. %{axe1v1people1}%/2"
I only have Skript should I get others?
I'm Thinking about getting Tuske and SkQuery but I'm not sure what ones to get for this project.

Everything Works Fine But The Sign Text Just Does Not Show
 
What Addons would that work with? i did
Code:
if the player's target block is a wall sign:
            set {axe1v1signs1} to the player's targeted block
            send "You have set Axe 1v1 sign 1!"
            set {_sign} to the player's targeted block
            set line 1 of {_sign} to "Axe 1v1. %{axe1v1people1}%/2"
I only have Skript should I get others?
I'm Thinking about getting Tuske and SkQuery but I'm not sure what ones to get for this project.

Everything Works Fine But The Sign Text Just Does Not Show
1. Don't get Tuske and SkQuery, they're not needed
2. Does the message "You have set axe 1v1 sign 1" get sent? if yes, broadcast the variable {_sign}, make sure it's set
 
Status
Not open for further replies.