#variable list printing null?

1 messages · Page 1 of 1 (latest)

stiff mica
#

i'm very confused. so i have this line of code: send "Steak price: %{shop::hotdog::steak::price}%. S: %{_s}% and item: %{_item}%. Steak price should be also saved here: %{shop::%{_s}%::%{_item}%::price}%" to {_p}
and here's what it prints:

#

but this is weird. %{shop::%{_s}%::%{_item}%::price}% should be the same as %{shop::hotdog::steak::price}% and yet it's not printing the price as 5?? it's just printing <none>.

#

is there something i'm doing wrong? is it because steak, the item, is not a string? do i need to convert the item to a string?

#

yeah i think i answered my own question. i will convert it to a string and see what happens then

#

okay so if i put "steak" as a string, i'll need to convert it back to an actual item

#

YES

#

here's my code for anyone who needs it in the future