Garrulous Glaahk Matanbuchus Posted December 10, 2006 Share Posted December 10, 2006 How hard can it be to get a stairway to function properly? So far, I have this: Code: 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. Quote Link to comment Share on other sites More sharing options...
Hatchling Cockatrice Lilith Posted December 10, 2006 Share Posted December 10, 2006 It doesn't look like there are any problems with the code fragment you posted. Please post the entire town script. Quote Link to comment Share on other sites More sharing options...
Garrulous Glaahk Matanbuchus Posted December 10, 2006 Author Share Posted December 10, 2006 Code: 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; Quote Link to comment Share on other sites More sharing options...
Unflappable Drayk Lazarus. Posted December 10, 2006 Share Posted December 10, 2006 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); Quote Link to comment Share on other sites More sharing options...
Garrulous Glaahk Matanbuchus Posted December 10, 2006 Author Share Posted December 10, 2006 So that line alone made the rest of the script fail? Wow. Thanks a bunch, I'll try it out. Quote Link to comment Share on other sites More sharing options...
Easygoing Eyebeast Thralni Posted December 10, 2006 Share Posted December 10, 2006 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? Quote Link to comment Share on other sites More sharing options...
Magnificent Ornk Kelandon Posted December 10, 2006 Share Posted December 10, 2006 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.