Basic Clicker Game: β buttonui ClickMe base.for.use coins 1
Basic Randomization System: β base.randomword.print Good Awesome Fantastic
Game Activity Progress Bar: β inner.create.gameact; base.gameact.progressui
Number Counter: β base.for.loop 1.01 console.clear; base.for.loop 1 base.for.use coins 50
Sound Player: β base.audio.play https://www.sounds.com/example.mp4
The Clicker Experience: β buttonui ClickMe base.for.use coins 50; buttonui ClickMe base.for.use coins 100
// β Adds a comment. Usage: // Variables
/%=spinner=%/ β Adds a spinner. Usage: /%=spinner=%/
/%=cursor=%/+ β Changes mouse cursor. Usage: /%=cursor=%/+ pointer
.
/%=glow=%/+ β Applies glow to a button with a specific name. Usage: /%=glow=%/+ Run
.
- β Adds a normal boot operator. Usage: ---!good!
\/ β Adds a error repair operator. Usage: ---\/\/!error!
!! β Adds a result operator. Usage: --!good!
?/ β Adds a repair percentage. Usage: ---\/\/?/50
:= β Adds a repair time. Usage: ---\/\/!good!:=15s
==/== β Adds a repair permission level. Usage: ---\/\/\/!good!==ADMIN/==
?\ β Adds a detailed repair percentage along with a detailed repair log. Usage: ---\/\/?\:1000(.100:10)
print β Logs a message. Usage: print Hello World
Other Examples: print range 5
or print range 2 7
or print range 1 9 2
or print frontint 15
add β Adds two or more numbers or variables. Usage: add 5 3
= β Assigns a value to a variable. Usage: = x 5
trackvars β Displays all defined variables and their values.
buttonui β Creates a clickable button that runs a command. Usage: buttonui ClickMe print Hello
alert β Shows a browser alert with a message. Usage: alert Warning!
inputui β Prompts user for input and stores it in a variable. Usage: inputui name Enter your name
checkboxui β Creates a checkbox with a label. Stores the element in a variable. Usage: checkboxui agree name1 Accept terms
randomchoiceui β Picks a random option from a list. Usage: randomchoiceui apple banana cherry
openwindowui β Opens a new window/tab. Usage: openwindowui https://example.com
textui β Adds visible text to the page. Usage: textui myId Welcome to the game!
newtitle β Changes the webpage title. Usage: newtitle My Game
for.alertui.if β Shows an alert if a variable matches a specific value. Usage: for.alertui.if score 10
for.alertui.confirm β Shows a confirmation pop-up box with a message and stores the result (true
or false
) in a variable.
Usage: for.alertui.confirm myVar Are you sure?
Result: myVar = true
if user clicked OK, false
otherwise.
base.for.repeatmultiple β Repeats a command a number of times.
Usage: base.for.repeatmultiple 5 print Hello
basekey.save β Saves all current keys under a custom name. Usage: basekey.save myfile
basekey.load β Loads previously saved keys using the given name. Usage: basekey.load myfile
basekey.listsaves β Displays all saved keys sets stored in the application. Usage: basekey.listsaves
if β Runs a command only if a condition is true. Usage: if variable == value command
. Supported operators: ==
, !=
, >
, <
, >=
, <=
else β Runs a command only if the previous if
condition was false. Usage: else command
definesave.code β Saves the contents of the code editor as a .bso
file. Usage: definesave.code
definesave.console β Saves the current console output into a .bso
file. Usage: definesave.console
defineload β Opens a file dialog to load a saved .bso
file back into the code editor. Usage: defineload
base.for.seteventcolor β Changes the background color of all buttons with a specific name. Usage:
base.for.seteventcolor ButtonText ColorValue
base.for.setpagestyle.usepage β Changes a style property on the webpage. Usage: base.for.setpagestyle.usepage property value
. Example: base.for.setpagestyle.usepage backgroundColor red
base.for.setpagestyle.hidebuttonui β Hides all buttons on the page. Usage: base.for.setpagestyle.hidebuttonui
base.for.use β Increases the value of a named variable by a specific number. Usage: base.for.use variableName value
base.innerwindowui.resize β Changes the width and height of the window container. Usage: base.innerwindowui.resize 500 300
newurl β Redirects the user to a different website or page. Usage: newurl https://example.com
base.canvas.draw β Draws a shape on the canvas. Supported shapes include:
base.canvas.draw rect x y width height [color]
base.canvas.draw circle x y radius [color]
base.canvas.draw triangle x1 y1 x2 y2 x3 y3 [color]
base.canvas.draw line x1 y1 x2 y2
base.canvas.draw ellipse x y radiusX radiusY [color]
You can optionally include a color at the end.
base.acteffect β Applies a filter to the entire page.
base.acteffect blur(5px)
β Blurs the page.base.acteffect grayscale(100%)
β Makes it grayscale.base.acteffect invert(100%)
β Inverts colors.base.acteffect brightness(150%)
β Brightens the page.base.acteffect contrast(200%)
β Boosts contrast.titleui β Adds a visible title to the page. Usage: titleui The Game
subtitleui β Adds a visible subtitle to the page. Usage: subtitleui Game Options
minisubtitleui β Adds a mini subtitle to the page. Usage: minisubtitleui Style Fonts
boldtextui β Adds bold text to the page. Usage: boldtextui Game Service
innerinputui β Creates a visible input box on the page. Usage: innerinputui Enter text...
quotationtextui β Adds text to the page with quotations. Usage: quotationtextui There are quotations.
.
striketextui β Adds text to the page with a strike through. Usage: striketextui Closed
.
insertedtextui β Adds text to the page with a underline to show it as newly inserted content. Usage: insertedtextui Apple Pie
.
markedtextui β Adds text to the page with a yellow highlight. Usage: markedtextui Mark Me
.
outputrootui β Creates a dynamic output system. The output updates based on input changes. Usage: outputrootui add inputA inputB outputName textTypeA textTypeB Optional Output
or outputrootui int inputA inputB outputName textTypeA textTypeB Optional Output
.
advancedinputui β Creates a visible input box on the page with advanced input types. Usage: advancedinputui myName Color
.
textareaui β Adds a text area to the page with a specific number of rows and columns and a additional placeholder. Usage: textareaui 10 50 Enter text...
.
detailexpandui β Adds a widget to the page with expanding content under a arrow. Usage: detailexpandui Apples Apples are good for you.
.
listui β Adds a dropdown list to the page. Usage: listui Fruits fruitlistid Apple Banana Cherry Healthy Fruits
.
labelui β Adds a text label to the page. Usage: labelui forgroup Hello
.
calculatetextui β Adds a number to the page that is calculated by A + (B * C). Usage: calculatetextui 10 9 10
.
playerui β Adds a video player to the page. Usage: playerui 640 360 video.mp4 video/mp4 track.vtt subtitles en English
.
notifyfor.notification β Shows a new notification with a option to use the standard notification template. Usage: notifyfor.notification response print Notification Clicked!
or notifyfor.notification standard
.
lineui β Shows a new horizontal line on the page. Usage: lineui
.
linebreakui β Shows a new line break on the page. Usage: linebreakui
.
dialogui β Adds a dialog box to the page. You can set the status to "open" or "close". Usage: dialogui Close open Dialog This is a dialog box!
.
boxareaui β Adds a box area to the page. Usage: boxareaui text boxid boxname text boxidA boxnameA My Box
.
statetextui β Adds text with options to change the text direction to the page. Usage: statetextui rtl Hello
.
codeui β Adds text to the page with a code style. Usage: codeui print("Hello")
.
pointedtextui β Adds pointed text to the page. Usage: pointedtextui THIS is POINTED text
.
textlockui β Adds a text lock to the page. Usage: textlockui pathLock Hello
or textlockui shutLock Hi
.
settextui β Sets existing text to new text. Usage: settextui text Test Hello
or settextui int 50 100
.
keyui β Adds text to a keyboard shortcut layout. Usage: keyui Ctrl
.
w.alertui β Creates a alert box in the page. You can make it a warning (w.alertui warning This is a warning) or a error (w.alertui error This is a error). Usage: w.alertui alerttype text
base.for.application β Performs application-level actions. Usage: base.for.application reload
or base.for.application clear
base.for.application reload
base.for.application clear
or base.for.application clear storage
base.for.application fullscreen
base.for.application exitfullscreen
inner.create.gameact β Initializes the game activity system, allowing related commands. Usage: inner.create.gameact
base.gameact.progressui β Creates a progress bar for game activity. Usage: base.gameact.progressui <value> <max>
(Example: base.gameact.progressui 30 100
)
base.gameact.chipui β Displays an interactive chip-style UI element on the page. Usage: base.gameact.chipui Label Text
base.image.ui β Inserts an image from a URL. Usage: base.image.ui https://example.com/image.png
base.for.add.gameact.numlistui β Creates a visible number list. Usage: base.for.add.gameact.numlistui First | Second | Third
setclickevent β Creates a click event that is triggered when a element with a specific name is pressed. Usage: setclickevent Play innerinputui Enter text here...
base.forall.buttonui.change β Changes all the buttons to a specific name. Usage: base.forall.buttonui.change Text
base.forall.delete β Deletes the entire page. Usage: base.forall.delete
base.repeattext β Repeats a given text N times on the screen. Usage: base.repeattext 5 Hello world
base.for.wordcount β Counts the number of words in the given text. Usage: base.for.wordcount Hello World
base.print.sticker β Prints a sticker alert message based on type. Usage: base.print.sticker error
or base.print.sticker warn
base.forall.clearui β Clears all ui on the page. Usage: base.forall.clearui
base.buttonui.clear β Clears a button with a specific name. Usage: base.buttonui.clear Run
base.textui.clear β Clears a text label with a specific name. Usage: base.textui.clear Example
base.titleui.clear β Clears a title text with a specific name. Usage: base.titleui.clear Title
base.template.clear β Removes all template elements from the page entirely. Usage: base.template.clear
base.innerwindow.remove β Removes the window container. Usage: base.innerwindow.remove
basekey.reset β Resets all saved keys. Usage: basekey.reset
base.for.wait β Waits for the given number of milliseconds before continuing. Usage: base.for.wait 2000
remove.basemain β Removes all essential options from the page. Usage: remove.basemain
textpart.reset.ui β Resets the text container from the page. Usage: textpart.reset.ui
base.record.microphone β Requests microphone access and starts recording audio until stopped. Usage: base.record.microphone
record.stop β Stops the current recording, logs the audio Blob to the console, and outputs a playable URL. Usage: record.stop
base.printstring.actforupper β Converts text to UPPERCASE and prints it. Usage: base.printstring.actforupper hello world
base.printstring.actforlower β Converts text to lowercase and prints it. Usage: base.printstring.actforlower HELLO WORLD
for.alertui.toast β Shows a small toast message on screen. Usage: for.alertui.toast This is a toast
base.for.loop β Repeats a command or set of commands continuously at a given interval (in milliseconds). Works like a game loop for animations and updates. Usage: base.for.loop 16 print hi
(runs print hi
~60 times per second).
base.event.keypress β Runs a command or function when a specific key is pressed. Usage: base.event.keypress Space print hi
(runs print hi
whenever the spacebar is pressed).
base.canvas.clear β Clears all drawings from the active canvas so new frames can be drawn. Usage: base.canvas.clear
.
base.randomword.print β Prints a random word from a given list. Usage: base.randomword.print apple banana cherry
random.print β Prints a random number. Usage: random.print int 1000
or random.print intrule 1000
or random.print intunder 1000
base.randomword.textui β Creates a text label from a random word from a given list. Usage: base.randomword.textui apple banana cherry
base.randomcode.add.print β Creates a equation and prints a random code from a given list with the equation added on. Usage: base.randomcode.add.print 5 3 10 20 30
base.chance.print β Selects a random item from a list of words and prints it to the console. Usage: base.chance.print 50 Alice Bob Charlie
(where 50 is an optional chance percentage).
base.reload β Reloads the current webpage in the browser. Usage: base.reload
print.currentdate β Prints the current date and time to the log. Usage: print.currentdate
print.randomnum β Prints a random number between two other numbers. Usage: print.randomnum 1 100
base.var.define β Defines a new variable with the given name and value. Usage: base.var.define score 100
will create a variable named "score" with the value 100.
func β Defines a new function with one or more BaseSoft commands wrapped in { }
. Commands are separated by ;
. Usage: func greet {print Hello; print World }
.
func.call β Executes all the commands stored inside a defined function. Usage: func.call greet
.
console.clear β Clears the console. Usage: console.clear
base.audio.play β Plays music from a given URL using the system audio player. Usage: base.audio.play https://example.com/song.mp3
.
base.audio.stop β Stops the audio completely and resets its position. Usage: base.audio.stop
.
sensorevent β Creates a event sensor tied to a specific element. On the specified event, it runs a command. Usage: sensorevent myId click print Hello
brick.at β Changes the editorβs frame rate. Usage: brick.at 50fps
will set the editor to run at 50 frames per second.
string.add β Defines a new global placeholder string. Usage: string.add cool Amazing!
with print $(cool)
filter.intro β Applies a specific color effect to the entire page. Usage: filter.intro 0.33 0.33 0.33 0 0 0.59 0.59 0.59 0 0 0.11 0.11 0.11 0 0 0 0 0 1 0
wait.timer β Runs a command after N ms. Usage: base.timer 1000 print Hello
.
baseadvanced.onmouse.move.filter β Applies a visual filter effect in the area the mouse moves. Usage:
baseadvanced.onmouse.move.filter filterName
Available filters: grayscale
, red-tint
, red-green
, blur
, invert
, none
.
Example: baseadvanced.onmouse.move.filter grayscale