current_out_section()

Error message

Deprecated function: implode(): Passing glue string after array is deprecated. Swap the parameters in drupal_get_feeds() (line 394 of /var/www/pied-piper.ermarian.net/includes/common.inc).
AuthorTopic: current_out_section()
Master
Member # 5977
Profile Homepage #0
In what form is the outdoor's section coordinates returned? Is it something like "0,0" or is it the two numbers added up (in this exmaple "0") or is it something different?

Thanks in advance.

[ Sunday, August 20, 2006 07:47: Message edited by: Thralni ]

--------------------
Play and rate my scenarios:

Where the rivers meet
View my upcoming scenario: The Nephil Search: Escape.

Give us your drek!
Posts: 3029 | Registered: Saturday, June 18 2005 07:00
Lifecrafter
Member # 6193
Profile Homepage #1
The first section (0,0) is number 0. (1,0) is number 1, (2,0) is 2 etc. Once its gone all through the (x,0) row, it starts with (x,1) row.

I hope that wasn't too confusing. Basically it starts with 0 in the NW corner. Then keeps adding one as it goes east, and restarts at the west each time. I tested this in every outdoor section of my 3x3 scenario.

--------------------
Guaranteed to blow your mind.

Frostbite: Get It While It's...... Hot?
Posts: 900 | Registered: Monday, August 8 2005 07:00
Master
Member # 5977
Profile Homepage #2
So, if I understand you correctly, in a world of 5x5, the sections (4,1) and (4,2) are respectively 17 and 18, is that correct?

--------------------
Play and rate my scenarios:

Where the rivers meet
View my upcoming scenario: The Nephil Search: Escape.

Give us your drek!
Posts: 3029 | Registered: Saturday, June 18 2005 07:00
Agent
Member # 2820
Profile #3
No, I think it would be 21 and 22. In a world of w width, the outdoor section (x,y) is represented by the number (x * w + y). At least that is how I remember it.

--------------------
Thuryl: I mean, most of us don't go around consuming our own bodily fluids, no matter how delicious they are.
====
Alorael: War and violence would end if we all had each other's babies!
====
Drakefyre: Those are hideous mangos.
Posts: 1415 | Registered: Thursday, March 27 2003 08:00
Triad Mage
Member # 7
Profile Homepage #4
Wouldn't it be 9 and 14?

--------------------
"At times discretion should be thrown aside, and with the foolish we should play the fool." - Menander
====
Drakefyre's Demesne - Happy Happy Joy Joy
Encyclopedia Ermariana - Trapped in the Closet
====
You can take my Mac when you pry my cold, dead fingers off the mouse!
Posts: 9436 | Registered: Wednesday, September 19 2001 07:00
Lifecrafter
Member # 6193
Profile Homepage #5
Actually I think its the other way around (x + (y * w)), so Drakey is right.

--------------------
Guaranteed to blow your mind.

Frostbite: Get It While It's...... Hot?
Posts: 900 | Registered: Monday, August 8 2005 07:00
Master
Member # 5977
Profile Homepage #6
Oh wit, I wrote down the numbers from northg to south, not west to east.

Thanks. An other thing cleared up!

--------------------
Play and rate my scenarios:

Where the rivers meet
View my upcoming scenario: The Nephil Search: Escape.

Give us your drek!
Posts: 3029 | Registered: Saturday, June 18 2005 07:00
Agent
Member # 2820
Profile #7
Wow, that is incredibly counterintuitive.

--------------------
Thuryl: I mean, most of us don't go around consuming our own bodily fluids, no matter how delicious they are.
====
Alorael: War and violence would end if we all had each other's babies!
====
Drakefyre: Those are hideous mangos.
Posts: 1415 | Registered: Thursday, March 27 2003 08:00