i tried making a basic world log file using it like this:
world
log = 'worldlog.txt'
mob
verb/TalkorSomething()
set name = "Talk of Something"
world.log << "[usr] has did something."
and on mob Login(), i have it like this:
mob/Login()
if(src.key = "ZDarkGoku")
src << browse(world.log)
it doesn't works. is there any tutorial on something about world.logs?
ID:173607
![]() Dec 10 2003, 7:35 am
|
|
A couple problems with this section. First, you have worldlog.txt in single quotes (') which means it is a file stuck in your resource file, instead of a dynamic file in the game directory. Second, you can't set world.log at compile time, it must be set at runtime.
Replace that section with this:
The problem here is that it doesn't recognize world.log as a file to browse.
Not that I'm aware of, but most of the information above is readily available in the world.log reference entry and the file proc reference entry that is linked directly from the world.log entry.
Knowing to put it in world.New() is just a matter of experience. Anything you that you want to happen at runtime when your world starts should be in world.New().