ID:168940
 
Can someone tell me how to make it that when you get the required powerlevel for SSJ it makes a SSJ verb appear in a category and says you learned SSJ? Thanks.
Yulp.
if(val>num)
person.verbs+=verb
person<<"You learn whatever."
In response to Ol' Yeller
Would this work also. Just...A bit more complicated..
if(src.pl>=10000)
src.verb+="Go super sayin"
usr <<"You learned SS."


I figure SOMETHING like that would work.
In response to WindShock
WindShock wrote:
Would this work also. Just...A bit more complicated..
> if(src.pl>=10000)
> src.verb+="Go super sayin"
> usr <<"You learned SS."
>

I figure SOMETHING like that would work.

Not really.

mob/proc/GOSSJ()
if(src.MaxPL>10000)
src.verbs+=/mob/verb/SSJTrans
src << "You learn SSJ"

mob/proc/XPGain()
src.xp++
GOSSJ()
In response to N1ghtW1ng
Of course, without using some type of system to tell whether or not they've already gone it is a different story.
In response to Teh Governator
but for that wouldnt u just need a proc like 'supersaiyan' or 'supersaiyan 2', etc. then if u get the powerlevel it asks the game if he has super saiyan already or if he is 'supersaiyan = 1' or = TRUE or whatever. and if he is, then it ignores giving him the verb and if hes not then it gives it to him
In response to Oblivon_2
Not a proc & I personally wouldn't go with using seperate variables for each transformation. Use an associative list - it works best.
**Edit**
Oh ya, almost forgot to show how to use the Check_Super_Form proc.
**Edit**
mob
var
list
super_forms[0]
super_pl[0] //Use this to tell how much power is needed to transform to that specific level
proc
Get_Current_Transformation()
var/Current
for(var/X in src.super_forms)
if(src.Check_Super_Form(X))
Current=min(max(src.super_forms.Find(X)++,1),src.super_forms.len)
Check_Super_Form(Transformation)
return src.super_forms[Transformation]
Experience()
src.exp++
var/Next_Trans=Get_Current_Transformation()
if(src.maxpowerlevel>=src.super_pl[Next_Trans]&&!src.Check_Super_Form(Next_Trans))
src<<"You learned [Next_Trans]!"
src.super_forms[Next_Trans]=1
verb
Give_Super_Form(mob/M in world)
if(M)
var/Super_Form=input(src,"Which super form do you wish to give [M.name]?","Super Forms")as null|anything in M.super_forms
if(Super_Form)
M.super_forms[Super_Form]=1
//Example how to set super_pl & super_forms
Saiyan
super_pl=list("Super Saiyan"=10000,"Super Saiyan Two"=20000,"Super Saiyan Three"=30000,"Super Saiyan Four"=40000)
super_forms=list("Super Saiyan","Super Saiyan Two","Super Saiyan Three","Super Saiyan Four")
In response to Teh Governator
ah.. nice idea man, good work.