mob/Login()
usr.loc=locate(7,10,1)
world<<"[usr] has entered..."
obj/Join
icon='turf.dmi'
icon_state="join"
Click()
players ++
world<<"[usr] has joined"
ready = 1
var
players = list()
maxpsychos = players/3
psychos = null
gamemode = "Normal"
ready = 0
mob/var
ready = 0
world/New()
start()
..()
proc/start()
spawn(1500)
if(ready)
for(var/mob/M in world)
M.ready = 1//make sure that the items have a conflict that say if(src.ready) or something
world<<"The massace has begun!"
while(psychos < maxpsychos)
psychos=pick(players)
psychos ++
usr.verbs+= typesof(/mob/psycho/verb)
world<<"Players - [players],Psychos - [psychos]!\nGame Mode - [gamemode]"
else
start()
mob/psycho
verb
talk()
world<<"BLAH"
ID:146290
![]() Jul 26 2005, 10:46 am (Edited on Jul 26 2005, 12:14 pm)
|
|
RaditzX wrote:
Example: Actually the first line outputs "A++ = " since A is null to start with. However the ++ will make it 1 after that, so the next line is correct. Lummox JR |
Cheetoz wrote:
<_<i fixed it<br/> Next time, please don't edit your post away, even if you solve your problem. Before the edit, it could have been, in the future, helpful to others with similar problems, but now, it won't be. |
dm guides thing:
++A // pre-increment
A++ // post-increment
The pre-increment has the value (A+1) and the effect of adding 1 to A.
The post-increment has the value (A) and has the effect of adding 1 to A.
Example:
var/A
world << "A++ = [A++]" // outputs "A++ = 0"
world << "++A = [++A]" // outputs "++A = 2"