Roll20 uses cookies to improve your experience on our site. Cookies enable you to enjoy certain features, social sharing functionality, and tailor message and display ads to your interests on our site and others. They also help us understand how our site is being used. By continuing to use our site, you consent to our use of cookies. Update your cookie preferences .
×
Cloudflare is experiencing elevated issues across all platforms. Load times for pages and images may be longer than expected. We are continuing to monitor the situation.

Anyone using th Mythic GME API?

I am having trouble getting the 50/50 option to work and was trying to figure out what I am doing wrong.  Any help appreciated.  Alternatively, if you are familiar with a Mythic API that works well and have a link, that would be great too.
1769273342
timmaugh
Forum Champion
API Scripter
You might be able to get help from non-Mythic-users (from scripters who can help decipher the requirements of the script) if you can provide a little more information: What are you trying? That is, what is the command line you're using? What are you expecting to happen? What is actually happening?
The command I am using follows: !MythicGM [<Odds> <Chaos Factor> [<Your Question>]] When I input the odds for 50/50 odds <5050> the command does not execute.  Every other option I have tried works. Just couldn't get that one and don;t really know API or scripting well enough yet to figure it out.  
1769316963
timmaugh
Forum Champion
API Scripter
Talequin Silverstrings said: The command I am using follows: !MythicGM [<Odds> <Chaos Factor> [<Your Question>]] That wasn't what I was looking for. Without knowing what you entered, exactly, it's a "best guess" as to what could be going wrong. For instance, you say: When I input the odds for 50/50 odds <5050> the command does not execute. If that's exactly what you typed (including the angle brackets), then that would fail. Well, more likely, it would fail to catch the odds in the parsing of the line, but even if it did, it would leave the angle brackets behind to be part of the "Your question" section. From a quick read through of the code, it looks like the odds statements the script will accept are (and these have to be entered exactly): impossible no way very unlikely unlikely 50/50 somewhat likely likely very likely near sure thing a sure thing has to be So if you entered the text: 5050 ...as your odds, that would NOT be caught. You HAVE to use the forward slash. Just based on the code, it would seem that a valid command line for this script would look like: !mythicgm 50/50 123 Who does number 2 work for? If you still can't get it to work, post the actual, exact text you are entering and we might be able to see what's going wrong.
I thought that I had tried both with and without the slash, but tried again and it worked.  I got confused because when something doesn't work it spits out this: <Odds>  — are the likly odds of your question. The odds are the following: Impossible No Way Very Unlikely Unlikely 5050 Somewhat Likely Likely Very Likely Near Sure Thing A Sure Thing Has To Be And the 5050 above was what I kept trying to enter.  But it seems to be wor king with the slash, so thanks you.