/*
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.
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.