Death remove Money

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

ttoyyy

Member
Oct 2, 2024
2
0
1
Code:
on death:

  if victim is a player:

    set {_gain} to balance of victim

      subtract {_gain}*0.2 to balance of victim

      send "&elost 10% of money!" to victim

I want to.
You lose a certain percentage of money when you die.
However, if there is a death mark, you don't lose it.

No percentage of money is lost. No *0.2 for variables. Why?
 
Last edited:
player's balance is actually a "money" type rather than a number (stupid i know) but i dont know the solution

try `set {_gain} to player's balance * 1` maybe, if not i dont know
 
player's balance is actually a "money" type rather than a number (stupid i know) but i dont know the solution

try `set {_gain} to player's balance * 1` maybe, if not i dont know
Thank you!
But Line7: Error use 'attacker' and/or 'victim' in damage/death events!