ID:155385
 
Ok i am sure this is something simple but how do I make a mob give the person who slays it experience points to level up
You can define an experience var and add to it randomly using rand() proc when a person kills a specific mob. Then you can use if() to check if required experience is met or not and if yes, add one to level and you are done. :)
In response to Hashir
So like
mob
enemy
BadGuy
name= "SomeGuy"
icon = 'LocoDudes.dmi'
gold=10
exp=10
max_exp=100

NPC=1
New()
..()
wander(src)
In response to Wrath69
That will only define the vars for the mob, you need to override this mob's Del() proc to add experience to someone who killed it. Or you can make a Death() proc and add experience to the killer. :)
In your deathcheck, make sure you have

src.exp+=//Numerical Value/Formula
src.LevelUp()//Trigger the LevelUp()!


And make sure to trigger the deathcheck every time an ability is triggered. Or however often you want it to :3
In response to Kenny84
I got it im a idiot I was calling a old death proc i forgot to delete Thank you for the help
In response to Wrath69
an* idiot :)
Lmao jk! Mistakes happen, you just learn from them and proceed.
No problem, by the way.