ID:149714
 
mob
player
icon = 'Peoples.dmi'
Bump(M as mob in oview(1))
if(usr.it = 0)
usr<<"You ran into someone!"
else
world << "[src]'s 'it'!"
usr.it = 0
src.it = 1

loading Tag.dme
Tag.dm:5:error::missing expression

Tag.dmb - 1 error, 0 warnings (double-click on an error to jump to it)

Ok, The Question is...WHY WHY WHY!?!
You're still not getting how to use if() the only expressions you can use in if() are:

==
=
<=
!=
!
<

if(something = somethingelse) does not work because = isn't an expression.

if(something == somethingelse) works because == is an expression.

Get it?
In response to Nadrew
YAY!
In response to Watabou
mob
player
icon = 'Peoples.dmi'
icon_state = "Jib"
density = 1
Bump(M as mob in oview(1))
if(usr.it == 0)
usr<<"You ran into someone!"
else
world << "[src]'s 'it'!"
usr.it = 0
src.it = 1
Login()
world<<"[usr] joined the fun!"
usr.Move(locate(1,1,1))

okay, everything is howdy-doody! I can walk on a map but the icon doesnt show up! Whatt'd i do now?
P.S. How do I make it so the first person to log in is automatically it?
In response to Watabou
How do you make the n00b it? so whoever logs in becomes it and the other 'it' isnt it?
In response to Watabou
Ok. I need the code for you to be safe,Afk, or something!
In response to Watabou
mob
var
isafk = 0

mob/verb/AFK()
var/last_x
var/last_y
var/last_z
if(!usr.isafk)
last_x = usr.x
last_y = usr.y
last_z = usr.z
usr.loc=locate(null)//goto a safe place
world << "[usr] goes AFK!"
usr.isafk = 1
else
usr.loc=locate(last_x,last_y,last_z)//return them to the place they were before going AFK
world << "[usr] returns from AFK!"
usr.isafk = 0
In response to Nadrew
Ya cant leave afk, the screen stays blank!
In response to Watabou
Sorry about that, I edited my post.
In response to Nadrew
Still dont work, and what about my other posts?
In response to Watabou
It works on my end, and I don't feel like answering your other posts.
In response to Watabou
How about this one?

mob/verb/AFK()
var/last_X = src.x
var/last_Y = src.y
var/last_Z = src.z
src.loc = null
src << "You are AFK."
alert("Click \"Done\" to return from AFK.",,"Done")
src.loc = locate(last_X,last_Y,last_Z)
src << "You return from AFK."
In response to Nadrew
.........
In response to Foomer
FOOMER YOU GENIOUS!!!!!!
How do you make the n00b it? so whoever logs in becomes it and the other 'it' isnt it?
In response to Watabou
How do you make the n00b it? so whoever logs in becomes it and the other 'it' isnt it?
In response to Watabou
mob/Login()
..()
for(var/mob/M in world)
M.it = 0
src.it = 1
In response to Foomer
Ok, 2 cheers for Foomer. Obtain the third cheer by completing this task.

mob
player
icon = 'Peoples.dmi'
icon_state = "Jib"
density = 1
Bump(M as mob in oview(1))
if(usr.it == 0)
usr<<"You ran into someone!"
else
world << "[src]'s 'it'!"
usr.it = 0
src.it = 1
Login()
..()
for(var/mob/player in world)
usr.it = 0
src.it = 1
world<<"[src]'s it!"
world<<"[usr] joined the fun!"
usr.Move(locate(1,1,1))

Ok. Thats code#1 tell me if you need code #2. Everythings good. except the icon doesnt appear on the map when I run it!
In response to Watabou
Because you need to set that mob as the global mob for the game.

world
mob = /mob/player
In response to Nadrew
HIP HIP! HURRAY! HIP HIP! HURRAY!
Page: 1 2