//chapter 1
mob
Login()
world<<"Hello world!"
verb
smile()
world<<"[usr] smiles"
//chapter 2
turf {
lava {
icon='lava.dmi'
}
} /*A simply demonstration of another type of indentation: turf/trap
tar; hole; lava*/
//chapter 3
#define favorite_car "honda"
mob
verb
ownit() //overriding this, i find it messy if i go: verb/owner_of_the_games_favorite_car()
name="What is the owners favorite car today?"
usr<<favorite_car
obj
car
name = "\improper honda" //an object; not a person
gender="neuter" //This is default; not really nescissary to put this
desc="A popular car"
suffix = "low gas efficiency"
text = "C" //If your seeing the map as letters, the car will be represented as C
icon = 'car.dmi'
icon_state="honda"
dir = NORTH //Default is south
overlays='bumpersticker.dmi' //Somone stuck a bumper sticker to the honda!! ***Problem (expected list??)
underlays='engine.dmi' //If the car blows up, can you guess what will be left? ***^^^^***
invisibility=0 //Default not an invisa car
luminosity = 2 //Somone forgot their car light on!!
opacity=1 //Unfortunatly, you arn't superman; you can't see through the car
density=1 //self explanitory
contents=/obj/Cigerettelighter //Ok - heres something i dont understand.. I understand that contents is\
a list, but why can't I have a cigerette lighter in the list?
verb
start_car()
set src in view(1)
world<<"[src] starts the car!"
world<<"<small><b>\red vroom!!!</b></small>"
//There is no reason to set a type; the care is obviously a obj
//I will not be including location either because i'm adding them to the map myself.
Cigerettelighter
//Ok; these were the first 3 chapters
Problem description:
Ok, i'm going through the blue book for the 5th time now, (probably with just as low understanding as the 3rd time I went through it (which was pretty low)) and this time I figured I would read each chapter again and do some things with each of them, hoping to become more intermediate rather than newbie. I have run into two unfortunate errors and am not excactly sure how to revise them. I have the problems commented and would appreciate help. Also, if there is any fix-ups either than that that you could mention, that would be great! Thanks
Lummox JR