turf
icon='person.dmi'
grass
icon_state = "grass"
water
icon_state = "water"
density = 1
world
name = "My First Game"
turf = /turf/grass
mob
Login()
Name()
Gender()
proc
Name()
var/prompt_title = "What would you like to be known as?"
var/help_text = "What is your name?"
default_name = key
name = input(src, help_text, prompt_title, default_name) as null|text
Gender()
switch(input("What gender?") in list("male","female"))
if("male")
usr.icon = 'person.dmi'
usr.icon_state = "male"
usr.hp = 100
usr.maxhp = 100
usr.loc = locate(1,1,1)
if("female")
usr.icon = 'person.dmi'
usr.icon_state = "female"
usr.hp = 100
usr.maxhp = 100
usr.loc = locate(1,1,1)
mob
verb
Attack()
set src in oview(1)
src.hp -= rand(1,10)
usr<<"You attack [src]!"
sleep(30)
src.Deathcheck()
proc
Deathcheck()
if(src.hp <= 0)
src<<"You have died!"
src.loc = locate(1,1,1)
mob
var
str = 5
def = 5
atom/movable/var
hp = 100
maxhp = 100
default_name = ""
mob
Stat()
statpanel("[src]'s Statistics")
stat(src)
stat("Health","[src.hp]/[src.maxhp]")
mob
icon='person.dmi'
male
icon_state="male"
female
icon_state="female"
mob
monster
icon='person.dmi'
icon_state="monster"
obj
icon='bush.dmi'
icon_state='bush'
in the obj part it says it cannot find file in the icon state and empty type name at the icon state part.
ID:146136
Aug 27 2005, 7:34 am
|
|
In response to DarkCampainger
|
|
*cough* Also.. There is an indentation at icon_state get rid of it
|
In response to Chrisman767
|
|
thanks ( i tried useing those but i think i put it in the wrong place and the entire code ended up being in bold)
|
First, use dm tags. Second, you put single quotes (Which refer to a file name) instead of double quote (which refer to a text string)