var list/books = new
var save_path = "worldsaves.sav"
obj/
BookShelves
Click()
var mob/m = usr
var chosen
var information
switch(input(m,"What would you like to do?") in list("Cancel","Read","Write"))
if("Read")
if(global.books.len == 0)
src << "The bookcase is empty."
return
chosen = input(m,"Which book?","Select a Book") in global.books
information = global.books[chosen]
// chosen = Title of the Book
// information = The contents of the book/text.
src << "Reading <u>[chosen]</u>."
src << information
if("Write")
chosen = input(m,"Title?","Title") as text
if(chosen && length(chosen) > 3)
information = input(m,"The title is [chosen].","Contents") as message
if(information && length(information) > 23)
global.books[chosen] = information
world/New()
..()
global.books = new
if(fexists(save_path))
var savefile/s = new(save_path)
s["books"] >> global.books
world/Del()
var savefile/s = new(save_path)
s["books"] << global.books
..()
icon='bookshelf.dmi'
One
icon_state="bookshelf"
density=1
layer=TURF_LAYER+1
Two
icon_state="bookshelf1"
density=1
layer=TURF_LAYER+1
Three
icon_state="bookshelf2"
density=1
layer=TURF_LAYER+1
Four
icon_state="bookshelf3"
density=1
layer=TURF_LAYER+1
Five
icon_state="bookshelf4"
density=1
layer=TURF_LAYER+1
Problem description:This is what i have so far. I was making a library/book system and i have only one error stating the this process definition not allowed inside another proc
The line below is the one holding the error
icon='bookshelf.dmi'