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
|
|
In response to Shy_guy197
|
|
no I'm sure it's a verb because it's an attack so I'm so confused...thanks anyway.
|
In response to Lil'T
|
|
Showing the code (up to the verbname() part) for one of the verbs might let us help you better.
|
In response to Jon88
|
|
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 :(
|
In response to Lil'T
|
|
Make sure you actualy have a verb if tis a proc it has to say proc not verb
|
In response to Lil'T
|
|
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
|
In response to Shy_guy197
|
|
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. |
In response to Lil'T
|
|
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 |
In response to Crispy
|
|
I'm so stupid I forgot about that :P thanks
|
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...