Can anyone help me? I want to code a GM Log, so like, if any GM does something it records the action (In Game Name, GM's key, Time the verb was used, the date the verb was used and the verb that was used and if possible the person it was used on).
I want the GM Log to be like a verb, "View GM Log" and it displays everything every GM did (as displayed above) in a week (or more) and the GM Log should also be downloadable (if possible).
Also, I would like a Ranks tab that displays all the ranks in my game (One for Naruto and one for Bleach) Eg: Hokage, Kazekage, Amekage, Otokage, etc. Once i give someone a rank it should display the rank, if someone leaves the rank, it should make the rank blank.
I'm sorry I'm asking for too much.
There are many ways you can do this, but I would recommend using text files to store everything. You could use a nice looking xml format to keep things clean and organized, or you could use html logs to do the same, or you could simply dump text to a log file and be done with it.
To dump text to a log file you would do this: var/GM_LOG //This is our log. The idea here is to add those messages to GM commands, keeping track of what they do. mob/GMCOMMANDS/verb/Teleport(var/mob/m in world) It's also helpful to add timestamps to your log files so you know when commands were used. mob/GMCOMMANDS/verb/TeleportTimestamp(var/mob/m in world) You could also use log files to store runtime errors by using the world.log variable. var/RUNTIME_LOG |
Just for starters for your rank crap.
Secondly.
then to test it: