#how can i make this easier? or shorter
1 messages · Page 1 of 1 (latest)
you can make a function, which takes a string, like this:
local function spawnPig(respawn: string):
spawn a big at {%{_respawn}%} # if you passed in "F", then the variable would be {F}.
set name of spawned pig to "&dHog"
add {_respawn} to string list tag "custom;Location"
if you would like, you could add in the function, to verify that the passed in string is valid input.
oh ty
also
oh wait
Line 2: starting a variables name with an expression is discouraged. you could prefix it with the scripts name: {animals::%{_respawn}%}
what does that mean?
the line 2
Well you can safely ignore this warning
alr but how can i do smth like:
{_string} = %string1% + "_" + %string2%```