run_dialog

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: run_dialog
Off With Their Heads
Member # 4045
Profile Homepage #0
Does anyone else think this is kind of wacky? In order to set the response options for dialogues using add_dialog_choice, we refer to numbers 0-2, but in the number we get back from run_dialog we get 1-3. That is, if we say add_dialog_choice(0,"Yes") and the player chooses it, then run_dialog gives us back 1. Likewise, for add_dialog_choice(1,"No"), we'd get back 2, and for the third, it's 2 and 3.

I didn't actually believe this was how it worked until I looked at ASR's t2 town script, state 13. Should this be changed for the next version of BoA?

--------------------
Arancaytar: Every time you ask people to compare TM and Kel, you endanger the poor, fluffy kittens.
Smoo: Get ready to face the walls!
Ephesos: In conclusion, yarr.

Kelandon's Pink and Pretty Page!!: the authorized location for all things by me
The Archive of all released BoE scenarios ever
Posts: 7968 | Registered: Saturday, February 28 2004 08:00
The Establishment
Member # 6
Profile #1
No, it shouldn't because of compatibility issues. Every scenario from this point on would have to be rewritten which would be VERY annoying versus the minor annoyance associated with a slightly awkward notation.

--------------------
Your flower power is no match for my glower power!
Posts: 3726 | Registered: Tuesday, September 18 2001 07:00
Post Navel Trauma ^_^
Member # 67
Profile Homepage #2
You mean every scenario from this point back :P

--------------------
Barcoorah: I even did it to a big dorset ram.

New Mac BoE
Posts: 1798 | Registered: Thursday, October 4 2001 07:00
Triad Mage
Member # 7
Profile Homepage #3
Well, we're going to have to make some changes, and this might as well be one of them.

--------------------
"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