Sparrow gave enough info to start. Don't forget, the best way to learn is to experiment. Literally nothing bad is going to happen if you don't get it to work on the first try. Mess with the math, compile, get in-game, and kill a slime and see what EXP you get. If you try and then go in-game...