Take an element from a variable and compare it to an argument

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

rwdish

New Member
May 8, 2022
8
0
1
19
Hello! Today i tried again developing my skript to hire, fire, promote, or demote by changing a person's luckperm group. I tried out, many, and i mean many stuff, but none of it worked.
I thought of something like this:

on script load:
set {string::*} to "assumi", "promuovi", "licenzia" and "degrada"
command /carabinieri <player> <string>:
permission: assumi.carabiniere
trigger:
if <string> is "assumi"
make console execute command "/bc this works (assumi)"
if <string> is "promuovi"
make console execute command "/bc this works (promuovi)"

Still though, it doesn't work. Can anyone help? (Remember i need 4 options to choose).
 
Hello! Today i tried again developing my skript to hire, fire, promote, or demote by changing a person's luckperm group. I tried out, many, and i mean many stuff, but none of it worked.
I thought of something like this:

on script load:
set {string::*} to "assumi", "promuovi", "licenzia" and "degrada"
command /carabinieri <player> <string>:
permission: assumi.carabiniere
trigger:
if <string> is "assumi"
make console execute command "/bc this works (assumi)"
if <string> is "promuovi"
make console execute command "/bc this works (promuovi)"

Still though, it doesn't work. Can anyone help? (Remember i need 4 options to choose).
If arg 2 is "text"
And you can just do
Broadcast"debug 1"
 
Status
Not open for further replies.