Skip to content

kamiicode/NikiScript

Repository files navigation

Meet NikiScript

NikiScript is a command interpreter highly inspired by the console interpreter in games like Half-Life 2, Team Fortress 2(which are both made in the Source Engine) and DDNet(or Teeworlds but I did not play that version)

Wrapper

the wrapper folder is where you'll find the needed files to make bindings for some languages like C#

How variables works

 !echo4EvrLmao "echo ez banana"
> !echo4EvrLmao
> ez banana
> ez banana
> ez banana
> ez banana
> ...
> !echo4EvrLmao
>
> // stopped spamming "ez banana"

in the console, the toggle variable is useless

> var +a "echo on"; var -a "echo off"
> +a
> on
>
> -a
> off

but in-game it's very important

> var +forward "echo walking forward"; var -forward "echo stopped walking forward"
> bind w +forward
(w pressed)
> walking forward
(w released)
> stopped walking forward
// it works on events: onKeyPress and onKeyRelease

NOTE: console might be better off in a separate thread of the game

About

Commandline interpreter with variables and some other cool features but not as much as a script language

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors