ID:268500
 
When I try to make a new object to put on the map, it says it can't find the file, and I either already have it, or I go and make one. Then i complie again, and it says it cannot find the file. Am I supposed to put these in a certain folder or something? Can some please help?
Oh yeah, and here is my codes:

mob
icon = 'person.dmi' //make it so all mobs will be created with the person icon
var
HP = 30 //define a new variable called HP, with a value of 30

Login()
icon_state = gender //when a player logs in, get them the right icon state for
..() //the gender of their key. Then call the parent!

proc
DeathCheck() //check to see if an attack is deadly
if (HP <= 0) //if the defender's HP is low enough...
world << "[src] dies!" //give the death messaging

verb
attack(mob/M as mob in oview(1)) //attack a mob within 1 tile of you
usr << "You attack [M]!" //send this message to the usr
oview() << "[usr] attacks [M]!" //send this message to everybody else
var/damage = rand(1,10) //assign a random # to a new variable
world << "[damage] damage!" //tell the damage to the world
M:HP -= damage //take away the damage from M
M:DeathCheck() //check for death with a proc

say(msg as text) //what the usr says is passed into "msg" as text
world << "[usr]: [msg]" //the world sees chatroom-like output

turf
icon = 'grass.dmi' //that has an icon named 'grass.dmi'. In single quotes!

world //set one of our world's characteristics:

turf
icon = 'dirt.dmi'
icon_state = "dirt"

world
FF FAN wrote:
When I try to make a new object to put on the map, it says it can't find the file, and I either already have it, or I go and make one. Then i complie again, and it says it cannot find the file. Am I supposed to put these in a certain folder or something? Can some please help?

Well, did you go up to file, click new, choose .dmi file, type in the name, and then make your icon? If not, then that'd be the problem >_>

~Chance
In response to Chance777
Yes, I did do that
In response to FF FAN
Oh. Wait. Duh

turf
icon = 'grass.dmi'

turf
icon = 'dirt.dmi'
icon_state = "dirt"

That's not right, since you didn't define the name of the grass or the dirt.

turf/Grass
icon = 'grass.dmi'

turf/Dirt
icon = 'dirt.dmi'
icon_state = "dirt"

That should work

~Chance
In response to FF FAN
mob
icon = 'person.dmi'
var
HP = 30

Login()
icon_state = gender
..()

proc
DeathCheck()
if (HP <= 0)
world << "[src] dies!"
verb
attack(mob/M as mob in oview(1))
usr << "You attack [M]!"
oview() << "[usr] attacks [M]!"
var/damage = rand(1,10)
world << "[damage] damage!"
M:HP -= damage
M:DeathCheck()

say(msg as text)
world << "[usr]: [msg]"

turf
grass
icon = 'grass.dmi'
dirt
icon = 'dirt.dmi'
icon_state = "dirt"


Try that I guess...