ID:266427
 
how do i make it so at say level 20 you learn sword attack or whatever.

mob
proc
Levelup()
if(src.exp>=src.maxexp)
src.level++
src.exp=0
src.maxexp*=1.5
src<<"\red You gained a level!"
else
..()
Knuckles skater wrote:
how do i make it so at say level 20 you learn sword attack or whatever.

mob
proc
Levelup()
if(src.exp>=src.maxexp)
src.level++
src.exp=0
src.maxexp*=1.5
src<<"\red You gained a level!"
else
..()


where it says
src.level++ make it src.level+=1
In response to Strange Kidd
Don't answer questions unless you know what you're talking about. Now go look up ++ in the reference.
In response to Nadrew
:'( I always wanted to feel special but i guess i cant
mob
proc
Levelup()
if(src.exp>=src.maxexp)
src.level++
src.exp=0
src.maxexp*=1.5
src<<"\red You gained a level!"
if(src.level==20)
usr << "You learn the sword technique!"
src.verbs += /verb/sword_technique
else
..()


Edit:
(made the code more helpful ^_^)

Replace sword technique with a verb you made (DON'T list the verb under user or mob unless you want them to always have this ;)