When I tried to use Spuzzems' S_Admin, it didn't work, so I'm trying to come up with my own stuff to use. I want to be able to use an attack or spell or something, on whomever I choose to use it on in my game. Heres what I have
mob
proc
hurtanyone()
for(M as mob in world)
if(M.hitpoints <= 100)
usr << "He is too weak, that would be mean"
else
M.hitpoints -= 100
M << "HAHAH!"
This gives me bad var errors, but they are variables, I have them being used in other procs. Can somone help me plz?
ID:266306
Nov 26 2001, 3:01 pm
|
|
In response to Richter
|
|
Richter wrote:
I'm trying to come up with my own stuff to use. I want to be able to use an attack or spell or something, on whomever I choose to use it on in my game. Heres what I have no mob wuldnt work, bu mob/M would and the M would in your verb too. |
In response to Air _King
|
|
Air _King wrote:
no mob wuldnt work, bu mob/M would and the M would in your verb too. Nope.. need var/mob/M :) |
In response to Vortezz
|
|
Vortezz wrote:
Air _King wrote: in the () of the hurtanyone it would work |
In response to Air _King
|
|
Bad thing with that is you would get a list of all non-client mobs along with client mobs using it as a var could check for cliet mobs only or non-client mobs only.
|
My revision:
mob/var/health = 500 as num I have not compiled this to make sure it works, but it would sure be a fun proc! I think I'll add it to crazii world! |
In response to Nadrew
|
|
i have an admin in the lbirary use mine. Also there is a psma guard in there.
|
Hurtanyone(mob in world)
then change the M to src or mob
~Richter