Fixed Bug#7735
-http://hercules.ws/board/tracker/issue-7735-royal-guards-rage-burst/

Signed-off-by: malufett <malufett.eat.my.binaries@gmail.com>
Fixed Bug#7728
-http://hercules.ws/board/tracker/issue-7728-grand-cross/
Added support for string vars on commands that require a string

- Fixes bugreport:7901, thanks to Angelmelody
  http://hercules.ws/board/tracker/issue-7901-about-pass-variable-type-as-function-parameter
- Bonus: debugmes can now take both strings and numbers (i.e. to print a
  number variable you no longer need to do 'debugmes "" + .@num;')

Signed-off-by: Haru <haru@dotalux.com>
Whitespace fixes in script.c

Signed-off-by: Haru <haru@dotalux.com>
Modernized syntax and fixed errors in the sample scripts

Signed-off-by: Haru <haru@dotalux.com>
De-duplicated code for buildin_select and buildin_prompt

Signed-off-by: Haru <haru@dotalux.com>