Skip to content

zhartman86/Gellybeans

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gellybeans

Gellybeans is a scripting language built primarily for Mathfinder, a Discord bot. Check out the MF wiki for more information.

Gellybeans supports:

  • Integer math, interpolated strings, bools, arrays
  • Variable assignment
  • Dice expressions (1d20, 3d6)
  • Conditionals
  • For loops
  • Functions
fizzbuzz = -> (count)
{
	
	** i : 0..count : {
		i % 3 == 0 && i % 5 == 0 ?? {
			print("FizzBuzz");
		} : i % 3 == 0 {
			print("Fizz)";
		} : i % 5 == 0 {
			print("Buzz");
		} : {
			print(i);
		}				
	}
}

Input (from Mathfinder)

Screenshot 2024-05-28 075851

Output

Screenshot 2024-05-28 075534

About

Expression Parser, Tools for Pathfinder 1e

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages