ID:262381
 
Code:
mob
var
Learned_Bukujutsu = 0

mob
proc
Learned_Bukujutsu()
if(src.Learned_Bukujutsu == 0)
if(src.Max_Power_Level >= 500)
src.Learned_Bukujutsu += 1
src.verbs += new/mob/Skills/verb/Bukujutsu
src << "You have learned the skill of Bukujutsu!"
else
src.Max_Power_Level += 0
else
src.Max_Power_Level += 0
mob
var
Bukujutsu = 0

mob
Skills
verb
Bukujutsu()
set category = "Skills"
if(!src.Bukujutsu)
src.icon_state = "Bukujutsu"
density = 0
src << "You concentrate your ki into pushing yourself up into the air and succeed!"
oview(6) << "You see [src] take flight."
src.Bukujutsu = 1
return
else
src.icon_state = ""
density = 1
src << "You slowly let go of your ki and land on the ground."
oview(6) << "You see [src] land."
src.Bukujutsu = 0
return


Problem description:No matter how I mold the code, it will not want to let anyone learn Bukujutsu at 500 Max Power Level. Can someone help because it's startiing to piss me off really badly.

no put usr in proc, ungh!

~>Jiskuha
In response to Jiskuha
Yes I just saw that, but even that doesn't fix the problem.
In response to Anime Unbound
How are you calling the proc?

~>Jiskuha
In response to Jiskuha
Well where should I call it?
In response to Anime Unbound
A proc is just not automatically going to run itself. You need to initialize it. If you don't know that, This is beyond your level of skill and you need to read the blue book some more.

~>Jiskuha
In response to Jiskuha
Wow. Instead of getting help for my code, I am told to get help for my coding SKILLS. >_> Reminder to self: Keep figuring out coding problems by myself.
In response to Anime Unbound
No, You misinterpreted my comment. I was not insulting you or trying to measure your "skill". I was simply saying if you don't know how to initialize a proc you need to do a bit more reading.

You could do something like..
mob/Login()
src.Learned_Bukujutsu()
..()


But that would be inefficient. However, That is how you would initialize a proc.

~>Jiskuha
In response to Anime Unbound
Well among other things I could be wrong, but it appears you have, if they don't have b umm something they fly, but maybe you have it programmed like that.

if(!bsomething)
src.density = 0
In response to Anime Unbound
Call it everytime their maxpowerlevel increases.