How to get a number started by a

  • 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.
That is because you clearly have no idea how to write skript

code_language.skript:
on load:
    if {ban.id} is not set:
        set {ban.id} to 0       #this is there to originally set the id number

command /ban <offline player> <text>:
    trigger:
        add 1 to {ban.id}                #this is to add 1 to the original ban id, and each time you ban someone it increases
        set {ban.id.%arg-1%} to {ban.id}   #This is to assign the specific ban id to the player you are banning

I do not want to add because in the next things I will do I will not be able to use the player id, so I do not want to add this: add 1 to {ban.id}. And yes, I want to get a number that I do not need to add anything to. For example if there were two syntaxes I thought I would not have with this problem. Understand, I'm not refusing your help, on the contrary, I like your help, but what good is it to ask one thing and have trouble with another.
 
so then what are you wanting to accomplish with your ban ID? You want the players to always have the same ban id? 1 or 2?

There is no syntax of picking up a number by an ai every time you run the command it will be two, three, and so on.
 
i literally just wrote that for you
you will need to save that number as a variable, and each time you run the command, it will add 1 to it... JUST.... LIKE.... I ..... WROTE....FOR....YOU
[doublepost=1525541421,1525541362][/doublepost]
code_language.skript:
on load:
    if {f.number} is not set:
        set {f.number} to 0       #this is there to originally set the id number

command /add:
    add 1 to {f.number}
[doublepost=1525541454][/doublepost]that is it, in the simplest of form
 
i literally just wrote that for you
you will need to save that number as a variable, and each time you run the command, it will add 1 to it... JUST.... LIKE.... I ..... WROTE....FOR....YOU

Dude, I already said I do not want to add, I wish there was what I wanted in Skript, but it does not. UNDERSTAND.

On my server the first player to be banned was the DONUT for example and I wanted the skript to identify that if DONUT was the first player to be punished the ID would be # 1 because it was FIRST. And if it's the second player let's say it's LimeGlass will have an ID # 2 because it was the second to be banned. That is, I wanted the skript to identify this first, second, third, and so on.
 
that is LITERALLY what i just wrote for you.

when the command is run, it will add 1 to the global variable, which would set it to 1, and then donut would get ID # 1.

The next time you run the command, it will add 1 to the global value, making it 2, and give LimeGlass the ID # 2
 
If you think your very ungrateful I am not, I thank you for your help and for your time spent here with me, but if I know that something would not fit my script I would not completely put it because it could cause problems later.
[doublepost=1525541889,1525541805][/doublepost]Like I said, I do not want to add anything.
 
this wouldn't cause any problems later
You asked for a Ban ID system, to set a ban ID for each player banned.
This number would increase by 1 each time someone is banned.

That is exactly what I wrote for you, and you are telling me I am wrong,

You want a number to magically increase by 1?
How exactly do you want it to increase by one if you dont write anything?
you said "Dude, I already said I do not want to add, I wish there was what I wanted in Skript, but it does not."
Well, actually you are wrong, it does, and I wrote it for you over and over and over and over again
 
this wouldn't cause any problems later
You asked for a Ban ID system, to set a ban ID for each player banned.
This number would increase by 1 each time someone is banned.

That is exactly what I wrote for you, and you are telling me I am wrong,

You want a number to magically increase by 1?
How exactly do you want it to increase by one if you dont write anything?
you said "Dude, I already said I do not want to add, I wish there was what I wanted in Skript, but it does not."
Well, actually you are wrong, it does, and I wrote it for you over and over and over and over again

This would generate a problem later because I would still create in the punishment system a command showing the player's total history, the command to check punishment, total punishment and others. And the only one that would give more trouble was to unmask a player by ID and not by the name of the player.
 
Status
Not open for further replies.