mob/Stat()
stat("Description",src.dec)
stat("",)
stat("Name:",src.name)
stat("Key:",src.key)
stat("",)
stat("Location",src.loc)
stat("Host:","[host]")
stat("Lag:","[world.cpu]")
stat("",)
statpanel("Players")
for(var/mob/characters/M in world)
stat(M)
stat("Description",src.dec)
stat("Name:","[M.name]")
stat("Key:","[M.key]")
stat("",)
stat("Total Online Users:","[ppl]")
Stats.dm:12:error:M:undefined type: M
Stats.dm:13:error:M:undefined type: M
Stats.dm:15:error:M.name:undefined type: M.name
Stats.dm:16:error:M.key:undefined type: M.key
Stats.dm:12:M :warning: variable defined but not used
Also, this was never made clear to me:
area
var/area
north_exit
south_exit
east_exit
west_exit
Entered()
usr << name
return ..()
Castle
Main_Gate
north_exit = .Castle_Entryway
south_exit = .Moat_Bridge
Castle_Entryway
south_exit = .Main_Gate
Moat_Bridge
north_exit = .Main_Gate
south_exit = .Village/Guard_Post
Village
Guard_Post
north_exit = .Castle/Moat_Bridge
south_exit = .Square
Square
north_exit = .Guard_Post
//handle movement
client/Move(Dest,Dir)
var/area/room = usr.loc
if(istype(room)) //in a room
switch(Dir)
if(NORTH) Dest = room.north_exit
if(SOUTH) Dest = room.south_exit
if(EAST) Dest = room.east_exit
if(WEST) Dest = room.west_exit
return ..()
//set the starting position for new logins
mob/Login()
if(!loc) Move(locate(/area/Castle/Main_Gate))
return ..()
runtime error: Cannot execute null.Enter().
proc name: Move (/client/Move)
source file: Other.dm,42
usr: Shiba Arai (/mob)
src: Shiba Arai (/client)
call stack:
Shiba Arai (/client): Move(/area/Castle/Moat_Bridge (/area/Castle/Moat_Bridge), 2)
Also, when going into different areas like that, how can you have it so that when you speak in that area on people there can here you?
mob/verb/say(T as text)
world << "[usr]: [T]"
mob/verb/whisper(mob/M,msg as text)
M << "-[usr] tells you: [msg]-"
Thank you, Shiba Arai</<>
ID:267779
Oct 6 2003, 6:00 pm
|
|
In response to DarkView
|
|
Thank you DarkView, now I have to fix that area code. I don't know whats wrong with it, I found it listed under the help < help on tab. It was called . path operator.
Can anyone please help me on this, It's annoying. :\ -Shiba Arai (SA) |
Stats.dm:12:error:M:undefined type: M
The type you specified for the variable M doesn't exist. Meaning "/mob/characters" is either a typo, or you've added it in advance.
Stats.dm:13:error:M:undefined type: M
Stats.dm:15:error:M.name:undefined type: M.name
Stats.dm:16:error:M.key:undefined type: M.key
Stats.dm:12:M :warning: variable defined but not used
These four will go away when you fix the first error.
The move stuff I won't help you with, since I can but I'm not too familiar with the ./type stuff, so I can't say for 100% sure what's wrong.
The say stuff would be view(0) << "Msg", the whisper stuff would be whisper(mob/M in view(0), msg as text).