I need help with my custom commands.

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

redstone_pro180

New Member
May 7, 2022
7
0
1
23
I am trying to make a polls skript everything but 1 command works.
Please help
Code:
command /answer <number>:
 trigger:
  {answeredpoll::%player%} is false
  if arg is 3:
   set {answeredpoll::%player%} to true
   add 1 to {pollselects::3}
   message "&aselected %{poll::3}%"
  if arg is 1:
   set {answeredpoll::%player%} to true
   add 1 to {pollselects::1}
   message "&aselected %{poll::1}%"
  if arg is 2:
   set {answeredpoll::%player%} to true
   add 1 to {pollselects::2}
   message "&aselected %{poll::2}%"
  if arg > 3:
   message "&cPlease answer 1-3!"
  
command /didntans:
 permission: didntans.sk
 trigger:
  set {answeredpoll::%player%} to false
 
Please provide more detail. Which command doesn't work? What errors are you getting? If you're not getting any errors, then what is the desired result, and what result is being observed?
 
Please provide more detail. Which command doesn't work? What errors are you getting? If you're not getting any errors, then what is the desired result, and what result is being observed?
The non working command is either of the 2 provided.
the expected result when doing /answer <number> is it adds 1 to {pollselects::[numberselected]}, messages the player "Selected [poll]", and sets {answeredpoll::%player%} to false
 
Status
Not open for further replies.