Najova docs
Learn the language, look up any function, and find extensions. Every example on these pages has been run, and shows what it really prints.
New to Najova?
Start with the guides. They take about twenty minutes, from your first line to modules.
hello.naja
$let[name;Sam]
$print[Hello, $get[name]!]
$print[You have $sum[3;4] new messages] najova run hello.naja
Hello, Sam! You have 7 new messages
Built-in functions
All 82 functions that come with Najova, in groups.
NamesGive a value a name, change it, and read it back.
$let $set $getOutput and mistakesPrint lines, check what kind of value you have, and stop with a message.$print $type $errorMathsNumbers work with + - * / % in any value. These functions do the rest.$sum $sub $mul $div $mod …TextJoin, cut, change and search text.$join $text $upper $lower $trim …Lists and tablesA list keeps values in order, counted from 1. A table finds values by their keys.$list $table $item $count $contains …BlocksBlocks run the lines between an opener and its closer, such as $if ... $endif.$if $loop $each $while $break …FunctionsMake your own functions. They are called just like the built-ins.$function $returnTimeWait, run code later, or run it again and again. A wait pauses only its own script.$wait $after $every $time $now …JSONTurn values into JSON text and back, for files and web requests.$json $fromJsonThings and eventsThings come from the game engine or an extension: a door, a player, a Discord message. These functions read them, change them and listen to them.$call $getProperty $setProperty $on $vector …ModulesSplit a project into files, and share functions between them.$use $privateFiles and the computerOnly in najova run, not in game scripts. With --safe, scripts can only reach their own folder and cannot use the web.$readFile $writeFile $appendFile $exists $files …Extensions
Add new functions to Najova. See all extensions
-
discord.najova0.0.7
Discord bots in Najova: slash commands, prefix commands, buttons, members, reactions and bot variables.
- Downloads
- 0
- Views
- 0