ID:2407026
 
(See the best response by Lummox JR.)
Code:
/*


Hey guys. I am currently working on a text based game...
Most of the verbs and procs will be in the area of a location
I want to make multiple jobs that are different in different areas

This is my coding:

*/
//Login to pick Location and other basic information.
mob
Login()
TitleScreen()
..()

Logout()
savePlayer()
del src



proc
TitleScreen()
switch(alert("Welcome to Project Reality. Do you want to start a New Game, or Load Game?", "Title Screen", "New Game", "Load Game"))
if ("New Game")
NameSelect()
AgeSelect()
GenderSelect()
CountrySelect()
Starter()
else if ("Load Game")
loadPlayer()
else return 1

NameSelect()
var/Name = input("What is your Name?", "Name Selection") as text
usr.name = Name

AgeSelect()
var/age = input("How old are you?", "Age Selection") as num
usr.Age = age

GenderSelect()
var/GENDER = (alert("Are you Male or Female?", "Gender Selection", "Male", "Female"))
usr.Gender = GENDER

CountrySelect()
var/country = input("What Country are you from?", "Country Selection") in list("Canada", "USA", "Exit")
if (country == "Exit")
return 1
else if (country == "Canada")
usr.Country = country
usr.Citizenship = country
alert("Congratulations, you are now officially a Citizen of [country]", "Citizenship")
var/City = input("What State/Province do you live in?", "State/Province") in list("Ontario", "Quebec", "British Columbia", "Alberta", "Manitoba", "Saskatchewan", "Nova Scotia",
"New Brunswick", "Newfoundland and Labrador", "Prince Edward Island", "Northwest Territories", "Nunavut", "Yukon")
usr.City = City
if (City == "Ontario")
usr.loc = locate(/area/Ontario)
else if (City == "Quebec")
usr.loc = locate(/area/Quebec)
else if (City == "British Columbia")
usr.loc = locate(/area/BritishColumbia)
else if (City == "Alberta")
usr.loc = locate(/area/Alberta)
else if (City == "Manitoba")
usr.loc = locate(/area/Manitoba)
else if (City == "Saskatchewan")
usr.loc = locate(/area/Saskatchewan)
else if (City == "Nova Scotia")
usr.loc = locate(/area/NovaScotia)
else if (City == "New Brunswick")
usr.loc = locate(/area/NewBrunswick)
else if (City == "Newfoundland and Labrador")
usr.loc = locate(/area/NewfoundlandandLabrador)
else if (City == "Prince Edward Island")
usr.loc = locate(/area/PrinceEdwardIsland)
else if (City == "Northwest Territories")
usr.loc = locate(/area/NorthwestTerritories)
else if (City == "Nunavut")
usr.loc = locate(/area/Nunavut)
else if (City == "Yukon")
usr.loc = locate(/area/Yukon)


Starter()
alert("Welcome to Project Reality... You have been given $500 in local currency to start out with.", "Financial Starter Kit")
usr.Money += 500



//List of My areas in Canada


area
Ontario
Quebec
BritishColumbia
name = "British Columbia"
Alberta
Manitoba
Saskatchewan
NovaScotia
name = "Nova Scotia"
NewBrunswick
name = "New Brunswick"
NewfoundlandandLabrador
name = "Newfoundland and Labrador"
PrinceEdwardIsland
name = "Prince Edward Island"
NorthwestTerritories
name = "Northwest Territories"
Nunavut
Yukon

//This is what I need help with
//Jobs is the Parent of the tree
//What I would like to do is make it so certain jobs are in different Provinces...
//And Make the Jobs Label available to Players in that area.
Jobs
/area/NovaScotia
TimHortons
name = "Tim Hortons"

TimHortons
verb
Work(area/NovaScotia)
set src in view()
usr << "You are now working."


//I'm hoping someone can help me figure this out.
//Thanks in advance.


Problem description:Need help making labels available and interactive in an area verb for a Text Based Game.

Best response
1) Please don't shout. Please edit your subject line so it's not all in caps.

2) You put some of your regular text inside the <dm> ... </dm> block so it doesn't really stand out. Please edit that as well. You can have multiple code blocks and put the text between.
Is it possible to put an area inside of an area and call the verb by that way?

area
Canada
area
NovaScotia
area
Jobs
TimHortons
verb
Work()
set src in view()
usr << "You worked in Nova Scotia"


or

area
NovaScotia
area
TimHortons
verb
Work()
set src in view()
usr << "You worked today"
That's definitely not right.

But what is it exactly that you're trying to accomplish? I think I'm missing something fundamental here.
I'm trying to make it so Nova Scotia is in the Canada area, and I'm trying to add jobs that only certain area's have.
area
Canada
NovaScotia
TimHortons
verb
...
In response to Zenarith
The problem is, there isn't a one-to-one relationship with any of these things. A country may have several states/provinces, each of those has counties, each of those has townships, etc. But the businesses that run may exist in multiple locations.