mob
icon='person.dmi'
Login()
icon_state = gender
world << "[src] has logged in"
..()
Rat
icon='rat.dmi'
HP = 15
DeathCheck()
if (HP <= 0)
view() << "[src] was killed"
if(prob(80))
var/obj/copper_piece/G = new(loc) //makes coins where the rat was
G.amount = rand(1,4)
Gainexp(25)
Del()
..()
verb
Pebble_throw()
usr << "<i>You sling a pebble from the ground</i>"
oview() << "<i>[usr] slings a pebble from the ground</i>"
sleep(5)
var/obj/pebble/P = new(usr.loc)
walk(P,usr.dir,2)
sleep(20)
del(P)
obj
pebble
icon='rock.dmi'
density=1
Bump(atom/O)
var/damage= rand(1,10)
if(ismob(O))
usr << "You hit [O]!"
O:HP -= damage
O:DeathCheck(usr)
O << "You take [damage] damage."
del(src)
Problem description:
1.My character's icon always shows up as a neuter state no matter what the gender of my key is.
2.When I kill an enemy with a special attack, the enemy dies but my character does not get expierience like when I kill it with a normal attack.
It would also help to see what is in Gainexp().
~~> Unknown Person