mob
var/HP
enemy
bug
HP = 30
goblin
HP = 35
evil goblin
HP = 45
dragon
HP = 50
meddragon
HP = 100
icon = 'person.dmi' //make it so all mobs will be created with the person icon
bug //new prototype
icon = 'bug.dmi' //override the parent's icon, which was 'person.dmi'
goblin
icon = 'goblin.dmi'
evil goblin
icon = 'evil goblin.dmi'
dragon
icon = 'dragon.dmi'
meddragon
icon = 'meddragon.dmi'
var
wealth
Del()
var/obj/gold/G = new(loc)
G.amount = rand(1,100)
..()
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!
Testworld.dm:13:error: dragon: expected end of statement
Testworld.dm:26:warning: /mob/evil: value changed
Testworld.dm:26:error: dragon: expected end of statement
This is my code and these are the errors I am getting. Plz tell me what I need to fix.
Copyright © 2025 BYOND Software.
All rights reserved.
You can't have spaces in your object definitions. So just remove the space in evil goblin or use an underscore. However you can have a space in the name when used in dream seeker by using set name.