ID:143419
 
mob
proc
skills()
if(!usr.hp==70)
usr.verbs += new /mob/verb/snap
y wont it werk
Could we get some more context? I have no clue what you are asking.
In response to Bobomaster
look at the code.i wont to asine a verb to the hp reqierment.that code shoodof werkt. but i have no clue wy.
In response to Richard78
mob/proc
Skill_Gain()
if(src.hp==70)
src.verbs+=new /mob/verb/Snap

This should do it...
In response to DarkD3vil666
think u dark your the only1 whoo wood help me your a life saver.
In response to Richard78
wate y dus the verb stay in the same comand hoqw do i ceep the verb hiden tell you gane the scill.
In response to Richard78
Because you add an else state, subtracting the verb.
In response to LucifersHellion
mob/proc
Skill_Gain()
if(src.hp==70)
src.verbs+=new /mob/verb/snap
else
src.verbs-=new /mob/verb/snap
//that wont werk
In response to Richard78
else src.verbs-=mob/verb/verbname

Possibly..
In response to LucifersHellion
dont werk.T_T of i dont learn how to do this i cant make a game
In response to LucifersHellion
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.
In response to Pyro_dragons
can you give me an example of how u wood make a difrint path on this usles verb.mob/verb/K_Goukakyuu()
In response to Richard78
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.
In response to Pyro_dragons
ok.but i gain no verb
In response to Richard78
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

In response to Richard78
You don't need new, since a verb is not a tangible thing.
In response to Pyro_dragons
still dont werk
In response to Richard78
Does their HP = 50 exactly? Are you even calling the proc?
In response to Pyro_dragons
mob
var
def = 10
str = 5
hp = 40

ob
verb
train()
hp += 1
usr << "you train your health!"
//thats how im testing the proc
In response to Richard78
yea you dont actualy call skill gain anywhere then <.<
Page: 1 2