spawn effect help with a variable

  • 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 community!

    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.
Feb 24, 2017
191
7
0
foroendertheth.foroactivo.com
code_language.skript:
spawn a  sheep at {pets::location%{_p}%}#I can do this
#but I cant do this one why how I do this
set {_pet} to "sheep" #in my code is a string
spawn a  {_pet} at {pets::location%{_p}%}#this one not working
#also this not working
spawn {_s} at {pets::location%{_p}%}
#this is the code
function pets(p: player, s: string):#string are like sheep creeper
    spawn a {_s} at {pets::location%{_p}%}#console error
#Can't understand this condition/effect: spawn a {_pet} at {pets::location%{_p}%} (pets.sk, line 6: spawn a {_pet} at {pets::location%{_p}%}')
#Can't understand this condition/effect: spawn a {_s} at {pets::location%{_p}%} (pets.sk, line 5: spawn a {_s} at {pets::location%{_p}%}')
 
code_language.skript:
spawn ("%{_s}%" parsed as entity type) at {pets::location%{_p}%}
 
Status
Not open for further replies.