ID:263621
 
Code:
mob
icon = 'person.dmi'
var
level = 1
health = 30
maxhealth = 30
strength = 3
exp = 0
max_exp = 100
Login()
world << "[usr] has joined the quest to destroy the darkness!!" icon_state = gender
loc = locate(1,1,1)
..()


mob
slime
icon = 'slime.dmi'
var
health = 100

Eternal Darkness.dm:10:error:health :duplicate definition
Eternal Darkness.dm:27:error:health :previous definition


Problem description:

This was in developers forum but I put it here cuz its code >.>
........It's defined twice.

mob
icon = 'person.dmi'
var
level = 1
health = 30 // ONCE
maxhealth = 30
strength = 3
exp = 0
max_exp = 100
Login()
world << "[usr] has joined the quest to destroy the darkness!!" icon_state = gender
loc = locate(1,1,1)
..()


mob
slime
icon = 'slime.dmi'
var
health = 100 //TWICE


You really can't do that. When you define in under the pearent-type then there is no need to define it under another type path under the same pearent-type and also you actually are unable to do that. So just get rid of the health variable under the slime.
In response to Granado Espada
Granado Espada first of all you didn't help him much, 2nd don't use game name as you nickname ..

mob
var //define everything here
level = 1
health = 30
maxhealth = 30
strength = 3
exp = 0
max_exp = 100

mob
icon = 'person.dmi'
Login()
//you dont need to set it here because it's already defined and has default value
world << "[usr] has joined the quest to destroy the darkness!!" icon_state = gender
loc = locate(1,1,1)
..()


mob
slime
icon = 'slime.dmi'
health = 100 //don't use var here (it's used to define new variable),
//only set slimes health to other number so it wont be default
Code:
mob
icon = 'person.dmi'
var
level = 1
health = 30 //u said it once here
maxhealth = 30
strength = 3
exp = 0
max_exp = 100
Login()
world << "[usr] has joined the quest to destroy the darkness!!" icon_state = gender
loc = locate(1,1,1)
..()


mob
slime
icon = 'slime.dmi'
var
health = 100 // twice here...

dont define it for mob only define for mob/slime
In response to Poisonstrike
Poisonstrike wrote:
dont define it for mob only define for mob/slime

You have that backwards.

It should be defined under mob since it gets defined for all types under it also. (which would include mob/slime)