Code:
on rightclick on sign:
if {sign.%player%} is "true":
set {%2nd line of event-block%} to 2nd line of event-block
add {%2nd line of event-block%} to {shop.signs::*}
set {%2nd line of event-block%.high} to 3rd line of event-block
set {%2nd line of event-block%.low} to 4th line of event-block
set {%2nd line of event-block%.amount} to 1st line of event-block
set {%2nd line of event-block%.price} to random number between {%2nd line of event-block%.low} and {%2nd line of event-block%.high}
wait 1 tick
set 1st line of event-block to "Admin Shop"
set 4th line of event-block to "%{%2nd line of event-block%}%"
if player's tool is green wool:
set 3rd line of event-block to "B %{%2nd line of event-block%.price}%"
if player's tool is red wool:
set 3rd line of event-block to "S %{%2nd line of event-block%.price}%"
set 2nd line of event-block to "%{%2nd line of event-block%.amount}%"
clear {%2nd line of event-block%}
This should set the 3rd line of the sign to something random between 2 numbers
But instead it just says <none> (though still "B")