Before I attempt to implement the method into my libcod, I have a quick question;
Why is it
Code:
void PlayerCmd_renamebot(int a1) {
instead of
Code:
void PlayerCmd_renamebot(string newname) {
since you do
Code:
players[i] renamebot(newname);
a1 is like he said the entity number. The parameters you use are stored in the stack of cod script. They get retrieved by Script_GetString(0). (different function in libcod)