ID:170479
 
I'm making a text-based RPG, and I want to know how to manually name areas so that I can have areas with the same name. Can someone help? Also, how do I make GM's?
Seraphrevan wrote:
I'm making a text-based RPG, and I want to know how to manually name areas so that I can have areas with the same name. Can someone help? Also, how do I make GM's?

Like this:

area
grass_A
name="grass"
grass_B
name="grass"


If you need administrators, I recommend hub://Spuzzum.s_admin
In response to Wizkidd0123
I tried doing

area1
name = "name blah blah"

But it didn't work.
In response to Seraphrevan
...what happens?
In response to Hell Ramen
When I run it, instead of displaying what I set as name, it says 'area1'
In response to Seraphrevan
That could be a problem somewhere else in your code, I don't really know. =/
The way Wizzie was showing it, it should've worked.
In response to Hell Ramen
Wizzie?
In response to Seraphrevan
Seraphrevan wrote:
Wizzie?

Show us the code you're using to display the area name.
In response to Wizkidd0123
world
New()
for (var/Atype in typesof(/area))
var/area/A = new Atype
A.tag = A.name

..()

area
var
north
south
east
west
place1
name = "Staircase_in_front_of_the_Halls_of_Aldurin"
desc = "Yes, a description goes here"
north = "Halls of Aldurin"
Town_Hall_of_Westinon
desc = "and this"
Dwarven_Halls_of_Stone
desc = "a description"
Elven_Temple_of_the_Wood
desc = "wutever"
Halls_of_Aldurin
desc = "hmm."

There's one part, and then theres:

Move(area/A)
..()
src << "<b>[A.name]</b>"
src << A.desc
src << "People here: \..."
for (var/mob/M in A)
if (M == src) src << "You \..."
else src << "[M] \..."

That part's under my mob code.
In response to Seraphrevan
Er, the name part under the list of ares should be the same indentation as desc and exits. Sorry.
In response to Seraphrevan
Well, first of all, there's an indentation mistake here:

area
place1
name = "Staircase_in_front_of_the_Halls_of_Aldurin"
desc = "Yes, a description goes here"
north = "Halls of Aldurin"


It should be:

area
place1
name = "Staircase_in_front_of_the_Halls_of_Aldurin"
desc = "Yes, a description goes here"
north = "Halls of Aldurin"


However, you really ddon't need the underscores in place/name either (irrelevant to the problem, but important that you know it):

area
place1
name = "Staircase in front of the Halls of Aldurin"
desc = "Yes, a description goes here"
north = "Halls of Aldurin"


Seraph, ZBT isn't meant to be copied and pasted anyway. You're supposed to learn from it, but not to steal it!
In response to Wizkidd0123
If you read my next reply down, you'll see that I realized the indentation, and if you're saying I stole it because some of my code is identical to ZBT's, I just copied that part, because this is my first game. This is actually the thing I used to follow along with the tutotial, so, my later games will have me programming, not just coppying like this one.
In response to Seraphrevan
And the underscores were from me trying to fix the problem myself, but I forgot to change it back.
In response to Seraphrevan
Well anyway, Wiz, thanks for the advice anyway, I'll keep it in mind. ^^


"You supposed to learn from it, not steal it!" -Wizkidd0123
In response to Seraphrevan
BTW, is the html for bolding text?
In response to Seraphrevan
Uhhh. nvm
In response to Seraphrevan
Seraphrevan wrote:
BTW, is the html for bolding text?

Yesh, it is.