Since Kcreator hasn't been online for a long time, I had to fix these issues myself.
The ifelse function is closer to the original.
i1 = 10 * 2 / 5 - 1; can output in the correct order.
But even so, int, float and variable can't be mixed, because program can't correctly determine type of variable.
If you need to mix things up, you should use "hex()" function.
================ Usage =================
Drag and drop txt to the program, Or Execute the program and input *.txt to compile all txt.
M124.txt is an example that works for 4.1 bvm, you need mission.rmpa for M124 for 4.1 to make it work.
1MissionFns.c contains some commonly used script functions, the suffix is c because the tool's *.txt batch function.