Room Commands
Posted: Mon Dec 19, 2011 5:09 am
The following code will allow you to save a list of commands for a specific room with your map(as 'RoomUserData') and later echo them to a user window as clickable links.
addRoomCommand(rID,Cmd)
where rID is the room ID you want to assign a command to and Cmd is the command to be saved as a string.
echoRoomCommands(rID,window,delimiter)
where rID is the room ID that you want to echo the commands of, window is the users window to echo the links to(echos to main window if nil) and delimiter is used to seperate the links that are echoed(uses a comma if nil)
These two functions are intended to be used like this
addRoomCommand(rID,Cmd)
where rID is the room ID you want to assign a command to and Cmd is the command to be saved as a string.
echoRoomCommands(rID,window,delimiter)
where rID is the room ID that you want to echo the commands of, window is the users window to echo the links to(echos to main window if nil) and delimiter is used to seperate the links that are echoed(uses a comma if nil)