world
New()
for (var/Atype in typesof(/area))
var/area/A = new Atype
A.tag = A.name
..()
mob
Login()
Move(locate("staggerinn"))
..()
Move(area/A)
..()
src << "<b>[A.title]</b>"
src << "[A.desc]"
src << "[A.features] \..."
area/var
title
area/var/list
features
area
staggerinn
title = "The Stagger Inn"
desc = "A homely litte inn and tavern catering to a simpler folk."
features = list("chairsandtables","liquorcollection")
obj
chairsandtables
desc = "An assortment of salvaged chairs and tables for patrons to use."
liquorcollection
desc = "A neatly organized collection of wines, liquors, beers, and ciders sits on the shelf."
Problem description:
Hi, I am brand new to programming and have been following ZBT3 text MUD tutorial but want to do something different with how the description of the room is displayed. Instead of a static text description, I want to use lists to make room features interactive.
In the above code I believe I have created and defined a list variable called "features". That list variable should contain the objects "chairsandtables" and "liquor collection" when the player is in the "staggerinn" area.
I want the Move() proc to send that list to the player with the
Code:
src << "[A.features] \..."
line but obviously that isn't how to do it. Next question will be how to send the "desc" variable of those objects to the player instead of just the names.
I've tried reading up on lists but it's all still kind of overwhelming at this point. Help?