Whats wong ? when i compile i get a error Saying
error:attack :duplicate definition
error:attack :previous definition
Can you help please ? thank you
____________________________________________________________
proc/attack(mob/M)
var/damage = rand(1,strength)
M.HP -= damage
view(src) << "[src] attacks [M]!"
view(src) << "[damage] damage!"
M.Death()
____________________________________________________________
verb
attack(mob/M in oview(1))
var/damage = rand(1,strength
usr << "You attack [M]!"
usr << "[damage] damage!"
M << "[usr] attacks you!"
M << "[damage] damage!"
M.HP -= damage
M.Death()
ID:148539
Jan 4 2003, 5:23 pm
|
|
Jan 4 2003, 5:25 pm
|
|
I dont have time to help you at the moment, but for future reference, make the title of the post describe the problem, and dont put it in all caps, this pisses people off. This would normally piss me off to, but your knew so this is your warning.
|
In response to Jotdaniel
|
|
i know i difined it 2 times its couse ones for a monster attacking and ones for the player verb
|
In response to Mordor
|
|
Tell that to Garthor not me.
|
In response to Mordor
|
|
Then which one is it supposed to follow? A verb is just a proc that is placed onto the verb panel. By defining it twice, you confuse the poor old computer. Shame on you!
|
In response to Garthor
|
|
hmm ok
will i dont know how to fix it i keep trying but cant get it |
In response to Mordor
|
|
To fix it you rename one of them. You can use <code> set name = "" </code> to change what a verb's (procs too? I don't know) name is on the verb panel.
|