Help with stairs...

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: Help with stairs...
Apprentice
Member # 7661
Profile Homepage #0
How hard can it be to get a stairway to function properly?

So far, I have this:

beginstate 20; // stairway
message_dialog("You walk downstairs.","");
move_to_new_town(2,5,22);
break;
I keep getting an error message, "unknown command void on line 11" or something like that. I tried with the void-prefix too, only to get the same result. :/
Posts: 25 | Registered: Monday, November 13 2006 08:00
...b10010b...
Member # 869
Profile Homepage #1
It doesn't look like there are any problems with the code fragment you posted. Please post the entire town script.

--------------------
The Empire Always Loses: This Time For Sure!
Posts: 9973 | Registered: Saturday, March 30 2002 08:00
Apprentice
Member # 7661
Profile Homepage #2
begintownscript;
variables;
body;

beginstate INIT_STATE;
set_name(6,"Commander Cidius");
set_crime_tolerance(1);
void enable_add_chars(0);
break;

beginstate EXIT_STATE;
break;

beginstate START_STATE;
break;

beginstate 15;
end_scenario(0);
break;

beginstate 20; // stairway
message_dialog("You walk downstairs.","");
move_to_new_town(2,5,22);
break;

Posts: 25 | Registered: Monday, November 13 2006 08:00
Lifecrafter
Member # 6193
Profile Homepage #3
Void and short appear in the appendix to tell you what type of call it is. You never actually put short call() or void call().

Fix line 11 so it reads enable_add_chars(0);

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

Frostbite: Get It While It's...... Hot?
Posts: 900 | Registered: Monday, August 8 2005 07:00
Apprentice
Member # 7661
Profile Homepage #4
So that line alone made the rest of the script fail? Wow. :D Thanks a bunch, I'll try it out.
Posts: 25 | Registered: Monday, November 13 2006 08:00
Master
Member # 5977
Profile Homepage #5
In all cases like these, the error either lies in line X itself, or before line X. In this case, I quess you got the error upon entering the town?

--------------------
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
Off With Their Heads
Member # 4045
Profile Homepage #6
quote:
Originally written by pinski_88:

So that line alone made the rest of the script fail?
Any script error makes the whole script fail.

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