#skript functions

1 messages · Page 1 of 1 (latest)

faint cradle
#
function regionDeath(victim: players, region: text, warp: text):
  if {_victim} is in the region {_region}:
    wait 1 ticks
    make console execute command "warp %{_warp}% %{_victim}%"

on death:
  regionDeath{victim, "community_center", "Community_Center"}
#

for some reason skript is not recognizing regionDeath as a valid function

sly temple
#

parethesis

#

not curly brackets

faint cradle
#

ohhhh

faint cradle
#

did I do something wrong with the player/variables for the command?

sly temple
#

have you debugged

#

also maybe capitalization

faint cradle
#

wdym captilization?

#

oh nvm I figured it out

sly temple
#

mark as solved

#

and look through your code before you ask others for help

faint cradle
#

wait

faint cradle
#

how do I make it so a condition parameter is only used when it is specified in the function?

#

like it will only check the condition with I give a value for it