Jump to content

Skript {Example} help


foxyplush135

Recommended Posts

I'm trying to make something that counts deaths, but if I make a 'add 1 to {Example::*}', It would add 1 to {Example::*} for everyone. 

So If someone died, It would add one to {Deaths::*}, how do I make it record for that one player?

 

(sorry if this is in the wrong forum place, I think it is though)

Link to comment
Share on other sites

That's not how list variables work. Make the variable {deaths::%player's uuid%} and add 1 to that. So it would look something like this

on death of player:
	add 1 to {deaths::%victim's uuid%}

We use victim here since victim is the person who died in the death event. Then if you want to display the variables for a user in like a command, display {deaths::%player's uuid%}

Discord - tarna256

In-game name - _Tarna_

Website - https://tarna.dev
Paste Site: https://paste.tarna.dev

---------------------------------------------------------

[VIP] - 7/27/2020

Community Support - 7/8/20 | 11/3/20

Helper  - 11/3/20 - 2/21/21

Moderator - 2/21/21 - 5/17/21

❤️ - 5/17/21 - now

Moderator - 12/20/22 - now

---------------------------------------------------------

image.png.70849a9b84e0347ce107b8e3eaee312c.pngimage.png.2111009afbd8bef10966ba9ede35a199.png

Link to comment
Share on other sites

On 5/12/2021 at 9:47 PM, JPowerBOSSTRONIO said:

Ok i suggest that you do {Deaths.%player%}?


Hey I would say use uuid

Example:
 

on death:
	add 1 to {deaths.%victim's uuid%}

#or,

on death of player:
	add 1 to {deaths.%player's uuid%}

# You can use %uuid of player% too!

 

Invislol 

• 4-5 years of skript experience
• 6 Months of active java experience
• 2 Years of javascript and python experience


unknown.png
[PATRON] RANK

Helpful Stuff:
Appeals and Reports  - Here | Minehut  Global And forums rules - Here

Link to comment
Share on other sites

On 5/13/2021 at 4:58 AM, Tarnerd said:

That's not how list variables work. Make the variable {deaths::%player's uuid%} and add 1 to that. So it would look something like this


on death of player:
	add 1 to {deaths::%victim's uuid%}

We use victim here since victim is the person who died in the death event. Then if you want to display the variables for a user in like a command, display {deaths::%player's uuid%}

How to do that with "loop-player's"? (I am using skbee)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...