mob
proc
skills()
if(!usr.hp==70)
usr.verbs += new /mob/verb/snap
y wont it werk
ID:143419
![]() Sep 10 2007, 1:07 pm
|
|
![]() Sep 10 2007, 1:09 pm
|
|
Could we get some more context? I have no clue what you are asking.
|
look at the code.i wont to asine a verb to the hp reqierment.that code shoodof werkt. but i have no clue wy.
|
mob/proc
Skill_Gain() if(src.hp==70) src.verbs+=new /mob/verb/snap else src.verbs-=new /mob/verb/snap //that wont werk |
Correct grammar and punctuation makes life easier.
Anyway, the reason it's not hidden is because verbs with the pathtpe mob/verb will automatically be added to your verbs list. You need to give it a different pathtype to keep it form being added until you want it, IE mob/skill/verb. Also, you beginning code, the line under the if statement just needed to be indented. The else statement is useless because if you if() returns false nothing will happen. |
can you give me an example of how u wood make a difrint path on this usles verb.mob/verb/K_Goukakyuu()
|
I did give an example. Since its a Naruto game, you should probably do it like /mob/jutsu/verb/K_Goukakyuu(). Putting the /jutsu/ in there changes the pathtype and prevents it from being automatically added to the verb list. I suggest you read up on pathtype...and maybe use spell check.
Also, please use correct spelling and grammar. I barely understood you. |
it hides it yes but i dont gain any verb
mob/proc Skill_Gain() if(src.hp==50) src.verbs+=new /mob/jutsu/verb/K_Goukakyuu |
mob
var def = 10 str = 5 hp = 40 ob verb train() hp += 1 usr << "you train your health!" //thats how im testing the proc |