mob
var/life = 100
//Other code, skipping
proc/Butthurt(H)
life = life - H
if (life < 0)
world << "[src] has been killed!"
del src
Returned:
error:life:undefined error
This is pissing me off pretty badly, any help?
ID:143248
Nov 9 2007, 6:03 pm
|
|
mob Returned: error:life:undefined error This is pissing me off pretty badly, any help? |
mob There ya go. |
In response to Masterdan
|
|
It doesn't really apply to all atoms, it's a global proc. It if were for atoms it would be atom/proc, in that proc you can't even access simple variables like loc and name.
|
Its annoyed because that proc applies to all atoms not just mobs, and yet your referencing a mob variable.