Articulate Vlish RavagedSoul Posted November 1, 2004 Share Posted November 1, 2004 When you create a scenario, you choose a starting point for the indoors, and the outdoors. If I had a scenario that went through 3 towns before ever coming outside, would the party show up at the starting point for outside? Link to comment Share on other sites More sharing options...
Hatchling Cockatrice Lilith Posted November 1, 2004 Share Posted November 1, 2004 Yes. Link to comment Share on other sites More sharing options...
Articulate Vlish RavagedSoul Posted November 1, 2004 Author Share Posted November 1, 2004 Okay. How about this. What is the way to teleport a party from one town to another? Does the move_to_new_town() call work? I wrote a script and it didn't seem to recognize the call, so I don't think so. Is there another call that allows one to move the party to a different town easily? Link to comment Share on other sites More sharing options...
Easygoing Eyebeast *i Posted November 2, 2004 Share Posted November 2, 2004 The call has worked for me. Please post the exact syntax of your code. Link to comment Share on other sites More sharing options...
Articulate Vlish RavagedSoul Posted November 2, 2004 Author Share Posted November 2, 2004 begintownscript; variables; short Choice; body; beginstate INIT_STATE; break; beginstate EXIT_STATE; break; beginstate START_STATE; break; beginstate 10; if (get_flag(0,0) == 0) { message_dialog("You are not clean, you may not pass.","") block_entry(1); } if (get_flag(0,0) == 1) { message_dialog("You walk over the runes and hear a voice enter your head. "You have been cleansed. You may pass.",""); block_entry(0); } break; beginstate 11; if (get_flag(0,1) == 0) { message_dialog("This is odd. These are the regeneration crystals that allow your clan to awake. While you have awaken, these are still uncharged." , "You will have to find a way to recharge these if you want to awaken your clan."); set_flag(0,1,1); } break; beginstate 12; if (get_flag(0,0) == 0) { reset_dialog(); add_dialog_str(0,"These are the cleansing pools for your clan. After resting for so long, most people would want to wash their faces, do you?",0); add_dialog_choice(0,"No."); add_dialog_choice(1,"Yes."); Choice = run_dialog(0); if (Choice == 1) { message_dialog("You filthy, filthy Vahnatai.",""); } if (Choice == 2) { message_dialog("You dip your hands into the liquid, and wash your face. You feel extremely refreshed.",""); set_flag(0,0,1); } break; beginstate 13; reset_dialog(); add_dialog_str(0,"Would you like to continue upward?",0); add_dialog_choice(0,"No."); add_dialog_choice(1,"Yes."); Choice = run_dialog(0); if (Choice == 2) { move_to_new_town(1,43,24); } break; beginstate 14; reset_dialog(); add_dialog_str(0,"Would you like to continue upward?",0); add_dialog_choice(0,"No."); add_dialog_choice(1,"Yes."); Choice = run_dialog(0); if (Choice == 2) { move_to_new_town(1,24,4); } break; beginstate 15; reset_dialog(); add_dialog_str(0,"Would you like to continue upward?",0); add_dialog_choice(0,"No."); add_dialog_choice(1,"Yes."); Choice = run_dialog(0); if (Choice == 2) { move_to_new_town(1,4,24); } break; beginstate 16; reset_dialog(); add_dialog_str(0,"Would you like to continue upward?",0); add_dialog_choice(0,"No."); add_dialog_choice(1,"Yes."); Choice = run_dialog(0); if (Choice == 2) { move_to_new_town(1,24,43); } break; beginstate 17; message_dialog("This is the storage room for all of the pre-made statues. They are waiting to be hauled out for towns.",""); break; beginstate 18; message_dialog("This is the storage room for all of the pre-made power crystals. They are waiting to be hauled out for towns.",""); break; Link to comment Share on other sites More sharing options...
Magnificent Ornk Kelandon Posted November 2, 2004 Share Posted November 2, 2004 And what error message do you get? Link to comment Share on other sites More sharing options...
Articulate Vlish RavagedSoul Posted November 2, 2004 Author Share Posted November 2, 2004 Unknown Command, or Unrecognizable Command. I think it was the former. (in line 26) Link to comment Share on other sites More sharing options...
Magnificent Ornk Kelandon Posted November 2, 2004 Share Posted November 2, 2004 Is the unknown command "You," by any chance? That's one critical part of the message that you left out. Link to comment Share on other sites More sharing options...
Hatchling Cockatrice Lilith Posted November 2, 2004 Share Posted November 2, 2004 To be more explicit: Quote: message_dialog("You walk over the runes and hear a voice enter your head. "You have been cleansed. You may pass.",""); If you want to put quotation marks in a message_dialog call, you have to use underscores. So instead of "You have been cleansed. You may pass." it should read _You have been cleansed. You may pass._ Link to comment Share on other sites More sharing options...
Well-Actually War Trall Khoth Posted November 2, 2004 Share Posted November 2, 2004 It helps greatly to use a text editor that tells you line numbers. Then you can see where the error actually is, rather than making some wild guess. Link to comment Share on other sites More sharing options...
Magnificent Ornk nikki. Posted November 3, 2004 Share Posted November 3, 2004 Quote: Originally written by RavagedSoul: [QB] beginstate 10; if (get_flag(0,0) == 0) { message_dialog("You are not clean, you may not pass.","") block_entry(1); } /QB] You missed the semi-colon off the end of the line where you called the message_dialog. That is probably the problem. Link to comment Share on other sites More sharing options...
Articulate Vlish RavagedSoul Posted November 3, 2004 Author Share Posted November 3, 2004 Quote: Originally written by RavagedSoul:beginstate 13; reset_dialog(); add_dialog_str(0,"Would you like to continue upward?",0); add_dialog_choice(0,"No."); add_dialog_choice(1,"Yes."); Choice = run_dialog(0); if (Choice == 2) { move_to_new_town(1,43,24); } break; beginstate 14; reset_dialog(); add_dialog_str(0,"Would you like to continue upward?",0); add_dialog_choice(0,"No."); add_dialog_choice(1,"Yes."); Choice = run_dialog(0); if (Choice == 2) { move_to_new_town(1,24,4); } break; beginstate 15; reset_dialog(); add_dialog_str(0,"Would you like to continue upward?",0); add_dialog_choice(0,"No."); add_dialog_choice(1,"Yes."); Choice = run_dialog(0); if (Choice == 2) { move_to_new_town(1,4,24); } break; beginstate 16; reset_dialog(); add_dialog_str(0,"Would you like to continue upward?",0); add_dialog_choice(0,"No."); add_dialog_choice(1,"Yes."); Choice = run_dialog(0); if (Choice == 2) { move_to_new_town(1,24,43); } break; Ok.. Got a new problem. This is (almost) the exact code from the script. (the almost part is I added a if (Choice == 1){block_entry(1);}) and now, I am getting this problem. Regardless of whether or not I leave from the north, south, east, or west, I end up at the east exit. Can anyone tell me why, and how to fix it? Link to comment Share on other sites More sharing options...
Well-Actually War Trall Khoth Posted November 3, 2004 Share Posted November 3, 2004 Is it calling the right code? You might have it set to call the same state for each exit. If you make the dialog message different for each, it'll be easy to tell. Link to comment Share on other sites More sharing options...
Articulate Vlish RavagedSoul Posted November 3, 2004 Author Share Posted November 3, 2004 The code is as it was written above. (didn't you see it?) another small question after someone (hopefully) tells me what's wrong with the script. What are events? Not SDF apparently. I can't seem to find anything in the docs or appendix. If anyone could either give me a run through, or just tell me where in the documents I could find it. EDIT: You know what, screw the events. If I have a creature that I do not want to show up until a SDF is done. How would I do so? (This means the party would be inside the SAME town. I also don't care if it's creating the creature at that moment, but the problem is that the only call I've found to do so, is place_monster or whatever it is, and hence, makes the character hostile.) Link to comment Share on other sites More sharing options...
Hatchling Cockatrice Lilith Posted November 3, 2004 Share Posted November 3, 2004 We see your script, yes, but you have to call the correct state within the town. We can't tell whether you're doing that from the script. For your next question, place the creature in town and make it hidden, then use the encounter call to make it show up when it's meant to. Link to comment Share on other sites More sharing options...
Articulate Vlish RavagedSoul Posted November 3, 2004 Author Share Posted November 3, 2004 Yes I checked the town special encounter numbers. I do so every time that I start writing a town script. Thuryl, I hope you know while that gives me a rough idea of how to do it, it does not give me anything else but more questions. Use the encounter call? Now I can assume you mean the special encounter that I want the creatures visibilty state to change upon. (obviously) However, I searched the doc appendix and did not find anything on visibility or creating the creature or anything of the sort. So, in order for that to not arise more questions, what is the call used to change a creatures statis from not there (invisible), to there? Or what is the call to make a non-hostile creature? Link to comment Share on other sites More sharing options...
Hatchling Cockatrice Lilith Posted November 3, 2004 Share Posted November 3, 2004 Well, as regards your first question, if you're always ending up in the same place when you enter town it probably means the other places you're trying to move the party to aren't big enough to fit the party. Put more empty space (such as ground or floor) around where the party's meant to show up, and make sure there are no obstructions. Link to comment Share on other sites More sharing options...
Articulate Vlish RavagedSoul Posted November 3, 2004 Author Share Posted November 3, 2004 Ok, I figured it out. Thanks to everyone who helped (or attempted to). Beyond that though, the creature thing? Could someone explain that fully to me? Really all I need to know are the correct calls. Link to comment Share on other sites More sharing options...
Hatchling Cockatrice Lilith Posted November 4, 2004 Share Posted November 4, 2004 The call you want is activate_hidden_group. It's documented under Town Calls in the appendices of the docs. Link to comment Share on other sites More sharing options...
Recommended Posts