Solved I am having issues getting chances to run how I would like

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

BryHunter

Member
Jan 10, 2018
35
2
8
27
Hello, I would first like to thank you for taking the time to take a look at this fourm and providing a possible answer. I am having issues using chances how I would like to, I am trying to make it so something will 100% happen when you run a command but if the chance is lets say 60% the main command will not be ran but the command within the 60% chance would be ran. I know I am not explaining this very well so I am going to try my best to provide an example of what I am looking for.

Code:
command /test:
   trigger:
       make player execute command "main code"
       chance of 60%:
       (Do not run main code)
       make player execute command "60% chance code"
 
Use else (chance is just a normal condition so you can use else)
 
  • Like
Reactions: BryHunter
Status
Not open for further replies.