Welcome to the documentation for Pogger Script! This guide provides everything you need to know to get started with Pogger Script.
Use yap to print a string to the console.
Syntax:
yap:MESSAGE
Example:
yap:Hello, World!
Use mew to clear the console.
Syntax:
mew
Use brb to pause execution until the user presses Enter.
Syntax:
brb
Use bai to exit the program.
Syntax:
bai
Memory in Pogger Script allows you to store, retrieve, and manage variables. Variables can be integers, strings, or booleans.
Use the following syntax to store a value in memory:
TYPE:NAME:VALUE
int, str, bool).Example:
int:myInt:10
To retrieve a stored value, reference its name using parentheses.
Syntax:
yap:(NAME)
Example:
yap:(myInt)
Use del to delete a variable from memory.
Syntax:
del:NAME
Example:
del:myInt
Copy a value from one variable to another using cpy.
Syntax:
cpy:FROM:TO
Shortcut: Use the value directly in a memory operation:
TYPE:NAME:(FROM)
Example:
cpy:myInt:newInt
Use inp to capture user input and store it in memory as a string.
Syntax:
inp:NAME:PROMPT
Example:
inp:username:Enter your name:
Generate a random number within a range using rnd.
Syntax:
rnd:MIN:MAX:OUTPUT
Example:
rnd:1:100:randomNum
Convert a value to another type using cnv.
Syntax:
cnv:VALUE:TYPE:OUTPUT
Example:
cnv:123:str:stringValue
memmemType:NAMEExample:
mem
memType:myInt
Clear all memory using memClear.
Syntax:
memClear
memSave:FILENAMEmemLoad:FILENAMEExamples:
memSave:backup.mem
memLoad:backup.mem
Perform basic arithmetic operations using math.
Syntax:
math:VALUE1:VALUE2:OPERATION:OUTPUT
add, sub, mul, div, mod).Example:
math:10:5:add:sum
Execute different code based on conditions using if.
Syntax:
if:VALUE1:OPERATOR:VALUE2:TRUE.POG:FALSE.POG
==, !=, <, >, >=, <=).Example:
if:(score):>=:50:pass.pog:fail.pog
Use cat to display the content of the other/color.txt file.
Syntax:
cat
Use help to display a placeholder message.
Syntax:
help
Example:
help