Hello, I having some issue on writing a skript for sign shop:
on rightclick:
block is a sign
line 1 of sign is "[Shop]"
player has 2 gold nuggets
remove 2 gold nuggets from player
give player 1 bread
message "<light green>You bought a bread."
The Error I Face is:
Line 3: Can't compare 'line 1 of sign' with a text (script.sk, line 3: line 1 of sign is "[Shop]"')
[doublepost=1603259403,1603258160][/doublepost]
on rightclick:
block is a sign
line 1 of sign is "[Shop]"
player has 2 gold nuggets
remove 2 gold nuggets from player
give player 1 bread
message "<light green>You bought a bread."
The Error I Face is:
Line 3: Can't compare 'line 1 of sign' with a text (script.sk, line 3: line 1 of sign is "[Shop]"')
[doublepost=1603259403,1603258160][/doublepost]
Code:
on rightclick on sign:
line 1 of event-block is "[Shop]"
player has 2 gold nuggets
remove 2 gold nuggets from player
give player 1 bread
message "<light green>You bought a bread."