I put in an attack code like this:
mob
proc
Attacks()
if(usr.Lv. >= 10)
usr.verbs += new /mob/verb/Pyro_Punch
if(usr.Lv. >= 20)
usr.verbs += new /mob/verb/Pyro_Darts
if(usr.Lv. >= 35)
usr.verbs += new /mob/verb/Pyro_Tornado
And I got three errors:
error:mob/verb/Pyro_Punch:undefined type path
error:mob/verb/Pyro_Darts:undefined type path
error:mob/verb/Pyro_Tornado:undefined type path
I don't know what I did wrong!
ID:267471
![]() May 17 2003, 5:16 pm
|
|
Well the code of that part isn't really related to what I need help with..mainly I think it'd defining type paths,which I don't know how to do :(
|
doing as I sayed it still can be an attack... it just let it be accessed.... if you wouldn't mind can you put down the code for the attack? just 1 might do
|
I told you:
mob proc Attacks() if(usr.Lv. >= 10) usr.verbs += new /mob/verb/Pyro_Punch That's the code for the Pyro Punch attack. |
No it isn't. That's your code for giving the player the attack verb.
Post the verb itself. If you don't have the actual verb, well there's your problem - how can you give an attack verb to someone without having the attack verb EXIST in the first place? =P |
mob
proc
Pyro_Punch()
if it is the
usr.verbs += new /mob/verb/Pyro_Punch
needs to be changed to
usr.verbs += new /mob/proc/Pyro_Punch
also make sure it is the same name...