Coin On Death

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

    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.

Lecvitird

Member
Dec 11, 2022
4
0
1
23
how can i skript a coin on death? with gold nuggets
like on kill it writes +1 kill and then give u 2 gold nuggets
 
how can i skript a coin on death? with gold nuggets
like on kill it writes +1 kill and then give u 2 gold nuggets
listen to on death event, check if the victim is player and do what you just said you wanted to do, if you encounter errors lmk

Code:
on death:
    #code here
 
when i try to put
on death:
if victim is a player
trigger:
give player 2 gold_nugget
send "&6+1 Kill" to player

it says that it doesn't work
 
when i try to put
on death:
if victim is a player
trigger:
give player 2 gold_nugget
send "&6+1 Kill" to player

it says that it doesn't work
Trigger sections are only used in commands. Also, you'd need a colon after the if statement, as with most conditionals.
Code:
on death:
  if victim is a player:
    give the attacker 2 gold nuggets
    send "&6+1 Kill" to attacker
 
Trigger sections are only used in commands. Also, you'd need a colon after the if statement, as with most conditionals.
Code:
on death:
  if victim is a player:
    give the attacker 2 gold nuggets
    send "&6+1 Kill" to attacker
wordle

Thanks, I got it. I'll try it again.
 
Status
Not open for further replies.