Example:
proc/a()
b() //This line is supposedly wrong
mob/proc/b()
world << "Yo!"
ID:142253
Jul 13 2008, 12:01 am (Edited on Jul 13 2008, 12:33 am)
|
|
How would one go about doing that?
Example: proc/a() |
Jul 13 2008, 12:20 am
|
|
In response to Jemai1
|
|
So this just gets one random mob? I don't want that (your code didn't work either way).
Is there any other way to make all of the players in the game to run a proc? |
In response to Skofo
|
|
Yes. See the for() loop in the DM reference.
|
In response to Glarfugus
|
|
Here's an example...
proc/A() |
In response to Glarfugus
|
|
Thank you!
|
In response to XeroXen
|
|
You should have if(!M.client) instead of if(!M.key), because some mobs don't have players and still have keys.
Also, Skofo, be sure to read the DM Guide, because you didn't know how to do such a simple thing. |
In response to Naokohiro
|
|
Naokohiro wrote:
mobs don't have players and still have keys. But those are still player mobs. At any case though, it was just an example. There are many ways to do things. |
In response to Kaioken
|
|
Yeah, yeah...
|