ID:146923
 
is there something wrong with this??

        SummonAll(mob/characters/M in world)
set category = "Police"
if(M.npc == 0)
M << "<b>Officer [usr] has summoned everyone."
M:loc = usr.loc
M:y -= 1
M.safe = 0
Yes

mob/Admin/verb/SummonAll(var/mob/player/M)
for(M in world)
M.loc = locate(src.x,src.y-1,src.z)
M << "[src] has summoned all of you"
src << "You summoned everyone"


That should work...it is kind of untested though.
In response to N1ghtW1ng
lol ill test it now
In response to Ssj3goku87
nope i think somethings still wrong
In response to Ssj3goku87
    GMsummonall()
for(var/mob/characters/M in world)
M.loc=locate(src.x,src.y-1,src.z)
world << "[src] has summoned you."

kthnxgottago
In response to Hell Ramen
nope still x_x
In response to Ssj3goku87
Ssj3goku87 wrote:
nope still x_x

What isn't working, exactly?
In response to Lenox
Lenox wrote:
Ssj3goku87 wrote:
nope still x_x

What isn't working, exactly?

This code isnt working
GMsummonall()
for(var/mob/M in world)
M.loc=locate(src.x,src.y-1,src.z)
In response to Ssj3goku87
I mean what's it not doing properly, is it not properly relocating the characters, or what?
In response to Lenox
its making an error in dream maker
In response to Ssj3goku87
Can you please post the error?
In response to Lenox
police2.dm:1170 Inconsistent indentation
In response to Ssj3goku87
NEVER EVER EVER EVER copy and paste code.
In response to Hell Ramen
Lol then what do i do?
In response to Ssj3goku87
Fix the indentation, if you can't do that, read the first (I think) chapter of the DM Guide.
Yes

mob/Admin/verb/SummonAll(var/mob/player/M)
for(M in world)
M.loc = locate(src.x,src.y-1,src.z)
M << "[src] has summoned all of you"
src << "You summoned everyone"


That should work...it is kind of untested though.
In response to Hell Ramen
Srry *cries* this is sooo damn sad *shakes his head*
In response to N1ghtW1ng
Just looked trough it and something popped up =P
See my lil change?

mob/Admin/verb/SummonAll(var/mob/player/M)
for(M in world)
M.loc = locate(src.x,src.y-1,src.z)
M << "[src] has summoned all of you"
src << "You summoned everyone" //change


Whaha oki, no big deal but that's my contribution =P
In response to Fint
Heh, thanks...what would be the difference though?
In response to N1ghtW1ng
Well the way you put it it would display "You summoned everyone" everytime it summons a mobs.

In my way it will just say that when all mobs are summoned.
Its no big deal, just makes more sense.
Page: 1 2