("kvs"="null","deck"="null")
{
"edPushButton:loadGameButton"
{
"position" "198 198"
"size" "108 18"
"text" "Load Game"
"visible" "true"
"command" "load"
"text2"
{
"cheese" "monkey"
}
"changeText" ("name"="null","font"="null")
[
$kvs.set ..text name;
$kvs.set ..font font;
]
"command"
[
$deck.setCard menuDeck.gui , loadGame.gui;
$kvs.let args {"name" "fish" , "font" "horse"};
$changeText $args;
//or
$changeText $[kvs.let args {"name" "anotherfish" , "font" "horse"};];
]
[
$kvs.set "fish" "donkey";
$kvs.let twoCounter "0";
$for [kvs.let i "0"] , [kvs.lessthan_int_int $i "10"] , [kvs.add_int_int $i $i "1"]
[
$kvs.dprint "count $i";
$kvs.add_int_int $twoCounter $twoCounter "2";
];
$kvs.dprint "twoCounter $twoCounter";
]
}
}
$ means its value
brackets is the alternate form for a quoted value
keys can have optional quotes
function arg0 arg1 arg2; //is the function convention
functions can be keys or just embedded in with brackets
you can have nested functions as args
set will manipulate the keyvalue itself from that scope
let makes a temporary one
all the extra commas , semicolons, and equals are usually optional
semicolons are required to end a command
brackets are matched begin to end
a single bracket is don't via an escape