Alright, I’ve got quite a few debug functions registered to be called from lua files. It’s by no means comprehensive yet, but it should allow you to do some interesting things.
What we’ve got so far is:
[spoiler][code]int,int get_player_pos()
int get_monsterlist_size()
int,int look_around()
int menu(bool cancelable,string name,…)
int rng(int low,int high)
debugmsg(string msg)
set_tile(int index,int posx,int posy)
spawn_creature(int index,int posx,int posy)
get_item(int index,int count,bool incontainer)
get_item(string index,int count,bool incontainer)
spawn_item(int index,int posx,int posy,int count,bool incontainer)
spawn_item(string index,int posx,int posy,int count,bool incontainer)
mutate(int index)
bionic(int index)
set_skill(int level)
set_skill(int level,int index)
set_skill(int level,string index)[/code][/spoiler]
I’ve got functions for changing terrain, spawning items, spawning monsters, creating menus, setting skills, etc. and it can all be edited on the fly through .lua files. Does anybody have any other functions they would like included?