ID:270209
 
Ok, how do I make the folowing monster drop the item below it?*Note, I left out the monster AI, I didn't think it was needed, if it was, please tell me*
mob
Kangaroo
icon = 'Monster3.dmi'
icon_state = " "
gold = 150
HP = 200
MHP = 200
player = 0
Str = 106
Def = 106
Expg = 5462
level = 90
monster = 1
PK = 1
NPC = 0

obj/equipment/head/Knighthelmet
mob
Kangaroo
icon = 'Monster3.dmi'
icon_state = " "
gold = 150
HP = 200
MHP = 200
player = 0
Str = 106
Def = 106
Expg = 5462
level = 90
monster = 1
PK = 1
NPC = 0
Del()//When it's going to be deleted
var/obj/equipment/head/Knighthelmet/K = new //Make a new
K.Move(src.loc)//Move it to the Kangeroo his location
..() //Do the normal

obj/equipment/head/Knighthelmet


In response to Mysame
what if you wanted it to drop randomly?how would you do that?
In response to Dragon_fire6653
mob
Kangaroo
icon = 'Monster3.dmi'
icon_state = " "
gold = 150
HP = 200
MHP = 200
player = 0
Str = 106
Def = 106
Expg = 5462
level = 90
monster = 1
PK = 1
NPC = 0
Del()//When it's going to be deleted
if (prob(50)) //50% Chance of going onto to dropping the helmet.
var/obj/equipment/head/Knighthelmet/K = new //Make a new
K.Move(src.loc)//Move it to the Kangeroo his location
..() //Do the normal

obj/equipment/head/Knighthelmet


That should do the job. If theres a indentation error, blame not being able to use indents on Firefox(?) and/or the BYOND forum.