Two conditions for a dialog - is it possible?

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: Two conditions for a dialog - is it possible?
Infiltrator
Member # 760
Profile #0
Is it possible to have two different conditions for a dialog? Example:

state = 2;
nextstate = 3;
condition1 = get_flag(3,3) == 0;
condition2 = get_flag(4,4) == 0;

Can that be achieved?

[ Monday, June 14, 2004 06:15: Message edited by: Wizard ]

--------------------
"The Darkness Shall Return!"
Posts: 642 | Registered: Saturday, March 16 2002 08:00
Agent
Member # 4506
Profile Homepage #1
quote:
Originally written by Wizard:

Is it possible to have two different conditions for a dialog? Example:

state = 2;
nextstate = 3;
condition1 = get_flag(3,3) == 0;
condition2 = get_flag(4,4) == 0;

Can that be achieved?

Just test it yourself - then you know if it works or not...

--------------------
"You dare Trifle with Avernum?" ~ Erika the Archmage
--------------------
My Scenarios:
Undead Valley : A small Undead problem, what could possibly go wrong?
--------------------
Richard Black - PROOF of his existance (the Infernal one's website).
--------------------
MY FORUM! Randomosity at it's highest! :)
Posts: 1370 | Registered: Thursday, June 10 2004 07:00
Board Administrator
Member # 1
Profile Homepage #2
Yes, Use &&.

- Jeff Vogel

--------------------
Official Board Admin
spidweb@spiderwebsoftware.com
Posts: 960 | Registered: Tuesday, September 18 2001 07:00
Infiltrator
Member # 154
Profile #3
quote:
Originally written by Wizard:

Is it possible to have two different conditions for a dialog? Example:

state = 2;
nextstate = 3;
condition1 = get_flag(3,3) == 0;
condition2 = get_flag(4,4) == 0;

Can that be achieved?

Try.condition1 = (get_flag(3,3) == 0) && (get_flag(4,4) == 0));

[ Monday, June 14, 2004 11:08: Message edited by: Grey-Eyed Stranger ]

--------------------
Apparently still annoying.
Posts: 612 | Registered: Saturday, October 13 2001 07:00
Infiltrator
Member # 760
Profile #4
Yay, got it working :)
Thanks for answers!

--------------------
"The Darkness Shall Return!"
Posts: 642 | Registered: Saturday, March 16 2002 08:00