Jump to content
Sign in to follow this  
Warrior Mage

I have played blades of avernum and I am now new to editor. Can anyone help in the new beginning?

Recommended Posts

There are a bunch of resources for getting started, including the old BoA Cookbook, the Scenario Workshop, various articles I wrote, and probably other things I'm forgetting. You'll want the most recent 3D editor, which I think is in the forum header. If you have questions, ask away.

 

Also, welcome the boards, and leave your sanity at the door! I almost never get to do the traditional greeting.

Share this post


Link to post
Share on other sites

Kelandon, First of all thank you for your reply. I have downloaded the scenario workshop you mentioned and also read the cookbook PDF. The cookbook is a better resource of all and it was meaningful, but I find it difficult at some places with a lot of confusion especially at those scripting examples which was not proper with why a code is being used, in what txt name and where we have to save it and use of those parantheses and numbers seems to be undefined at some places. I hope you and the community would help in me in clearing my daily queries.

Please try to clear the queries I already mentioned above in this post as I am very willing to edit a scenario.

Share this post


Link to post
Share on other sites
6 hours ago, Warrior Mage said:

I find it difficult at some places with a lot of confusion especially at those scripting examples which was not proper with why a code is being used, in what txt name and where we have to save it and use of those parantheses and numbers seems to be undefined at some places.

I have to admit, I'm not sure what you're asking. Could you clarify? Maybe references to specific pages would help.

 

You may also want to look at some specific scenarios to see what they did. For example, my High Level Party Maker was commented out pretty carefully so that people could read it and understand what I was doing.

Share this post


Link to post
Share on other sites

Kelandon, Thank you for your response. This question may make you understand better. What should I do if I want a message to pop up - "Welcome to my scenario!"as soon as I enter a scenario?

Share this post


Link to post
Share on other sites

Hello Warrior Mage,

 

I’d like to build a little on Kelandon’s advice, if I may. When first starting work on a new program, engine, or something I have no prior experience with, there are always two things I feel are of particular importance: studying examples and experimentation.

 

The resources you’ve been looking through are extremely useful, and include some excellent introductions. They contain some great reference material, and you’ll want to keep them to hand! Do check out Kelandon’s introductory article if you haven’t already, which is one of the articles linked above.

 

However, reference material can be confusing when just taken on its own. Think of it this way. Imagine you’re trying to learn a new spoken language. Would you try learning the language solely from dictionaries and simple introductory texts for tourists? Wouldn’t you also like to see examples of real sentences, to hear people speak it in real-world contexts, and to experiment with saying simple things yourself? The reference guides are useful, but are made far more so when combined with hearing examples and trying things out yourself!

 

The same is true here. If you want to get to grips with Blades, examples and experimentation are two key tools in your arsenal!

 

Kelandon suggested looking at his scenarios, and I second that. However, it’s also worth remembering that the four scenarios bundled with the game (Valley of Dying Things, etc.) were in part written to demonstrate the engine. They’re full of examples of how to do certain things.

 

So, first off, if you’ve not played the scenarios – play them! One you’ve done that, you can use the information they contain to help you in your designing. If you want to do something specific, think back to those scenarios and consider if any of them do what you’re trying to do. If so, great! You can look at that scenario in the editor, or in its scripts, and see precisely how it was done.

 

I’m saying all of this because I hope it will be helpful. We are of course more than happy to answer questions on here. We enjoy doing so! But remember that it always takes a little time for us to reply. So, if you ask us about everything, you might find that waiting time adding up quite quickly! Generally speaking, it might be quicker to discover certain things from poking around in the engine yourself.

 

Let’s take your question. You want to find out how to have a message appear when your scenario is first opened, right? Let’s try putting my suggestion into practice. Think back to Valley of Dying Things. You’ll remember that, when you open the scenario, a few screens appear telling you the story of what’s going on.

 

So, let’s load the scenario and try to find out how that’s done. In the 3D editor, there’s lots of information that comes up at once. One of the possible menu choices is ‘Scenario’. That sounds like a good place to start looking! If you click on that menu, you’ll see various items, three of which are ‘Set Intro Text 1’, ‘Set Intro Text 2’ and ‘Set Intro Text 3’. If you open the first, you’ll see some text. It’s the introductory text for the scenario – exactly what you’ve been looking for!

 

Now that you’ve found out how Valley of Dying things does this, you can do it in your scenario too! Load your scenario, navigate to ‘Set Intro Text 1’ and type in what you want to say – try a ‘Hello World!’.

 

Of course, if you were looking into this yourself, you might not stumble onto the right menu response right away. It might take you a few minutes. But I hope this illustrates my point – a few minutes looking at an example and trying things out yourself can save you hours of waiting for replies on this forum, and then trying to interpret them!

 

To summarise, we’re more than happy to help you figure things out! But don’t forget that you can also learn a lot yourself by poking around in pre-existing scenarios, and trying things out for yourself. By combining this with questions about some of the more tricky points, you might be surprised to find out how quickly you’ll learn how everything works – you’ll be designing scenarios before you know it!

Share this post


Link to post
Share on other sites

Oh, Thank you for that Ess-Eschas! I completely forgot that we can learn by looking into pre existing scenarios with an editor and script. I'll try my best doing that. Also, I found that the 3D editor is very cool! But, unfortunately it's my nature to ask a bunch of questions.

Share this post


Link to post
Share on other sites

Kelandon, I have all of your scenarios, but trying to download 'The Magic' scenario from your website is showing some errors. Please take this into care.

Share this post


Link to post
Share on other sites
Posted (edited)
8 hours ago, Warrior Mage said:

But, unfortunately it's my nature to ask a bunch of questions.

 

Don’t think that’s a bad thing, Warrior Mage! I just wanted to give you a little heads-up that people on these boards can’t always reply quickly, and that sometimes it might be easier and faster to check out things yourself.

 

If you want to ask, then by all means ask! :)

Edited by Ess-Eschas
Adding some slight clarification.

Share this post


Link to post
Share on other sites

begintownscript;
body;
beginstate INIT_STATE
    set_name(20, "Chief Guard");// ID 114
break;
message_dialog("Welcome to my town!", "");
beginstate EXIT_STATE;
break;
 

What mistake is in this for this is not working at all!

Share this post


Link to post
Share on other sites
49 minutes ago, Warrior Mage said:

begintownscript;
body;
beginstate INIT_STATE
    set_name(20, "Chief Guard");// ID 114
break;
message_dialog("Welcome to my town!", "");
beginstate EXIT_STATE;
break;
 

What mistake is in this for this is not working at all!

The mistake is that the message_dialog() call is not in any state. If it's not in a state, it never happens (and possibly breaks the script). Here's what you want:

begintownscript;
body;
beginstate INIT_STATE
    set_name(20, "Chief Guard");// ID 114
message_dialog("Welcome to my town!", "");
break;
beginstate EXIT_STATE;
break;

Note that this will show the message "Welcome to my town!" every time you enter the town. You need SDFs to make it happen only the first time.

Share this post


Link to post
Share on other sites

Hi everyone. I have attempted what you told into my script, Kelandon. But it had a 0% of working. I don't know why. I have saved my script for that particular town named "Town" as t1town.txt (as t0 is warrior's grove) in ....../Blades of Avernum/Blades of Avernum Scenarios/Game (my scenario folder name) and also in data folder. But whatever I do is not working. Please give me an idea.

Share this post


Link to post
Share on other sites
Posted (edited)

And the guard is also not named. I have changed the script of creature 20 as 't1town' from default. I will like to get rid of this problem which allows me to do nothing!😅 Also, it will be useful if there is a program to check scripting errors.

Edited by Warrior Mage

Share this post


Link to post
Share on other sites
Posted (edited)

Hello? I know that my constant messaging is irritating you people but I will stop that after my newbie problems are completed.

Edited by Warrior Mage

Share this post


Link to post
Share on other sites

Voila! I am now successful in setting the name and displaying the message. It did not work as I had done a simple fault. Forgot to set the script name in the town details which I found after referring to a site.

 

But, there are still problems. I receive errors as state -2 not found and also as creature script bad header as soon as I entered the town. And also, I found an error trying to talk to CHIEF GUARD (which I mentioned above) instead of Talking: It doesn't respond.

 

Please try to solve my problems, partners.

Share this post


Link to post
Share on other sites

You can't use the same script as both a creature script and a town script. Change the guard's script back to the default and that should fix the error message.

 

To make the guard respond to talking, you'll need town dialogue script (which is different from the town script and has a different format).

Share this post


Link to post
Share on other sites

Hey! Thank you, Celtic Minstrel. That was successful and no error was appearing. But I found another error in the game with the following script:

 

begintownscript;
variables;
body;
beginstate INIT_STATE;
set_crime_tolerance(2);
set_name(20, "Chief Guard"); // ID 114
set_level(18, 40);
message_dialog("Welcome to my town!" , "");
beginstate EXIT_STATE;
message_dialog("There is nothing useful in there.","");
break;

 

It says that the state is not completed right in line 17,(I also started wonder there is no line 17 in it). I also did not get the message below exit state. Please consider these problems and help me. I am showing good progress(or that's what I think). 

Share this post


Link to post
Share on other sites

I think the problem is that there's no break; at the end of your INIT_STATE. You need a break at the end of each state.

Share this post


Link to post
Share on other sites

Hello everyone! Today I am very happy with my proceedings. I have removed all the errors from my scenario and also successfully made a character to talk with a reasonable amounts of dialog.

 

But, still I face a problem. I cannot place outdoor wandering encounters. I can designate but cannot choose exact location of those monsters. Please try to help me as the 1st spawn point option is not clearer to me. Monsters appear suddendly if I go near the point that too only sometimes. Clearly explain please about placing outdoor wandering monsters.

Share this post


Link to post
Share on other sites

Have you read the documentation that comes with the editor? A lot of your questions are answered there. Here's the section from Chapter 1.6 on Editing the Outdoors:

Quote

There are three different sorts of encounters: Wandering Encounters, which are occasionally randomly placed on the wandering monster spawn points and hunt down the party. Special Encounters, which are spawned into existence by commands on the outdoor section script. And Preset Encounters, which are set to always be there when the party enters the given outdoor section, until you do something to make them disappear.

You probably want to use a Preset Encounter and specify the Move Type (probably Move Type 1, which is "Doesn't move").

Share this post


Link to post
Share on other sites
Posted (edited)

Hello everyone. Today I got negative results. I tried to place a terrain script on a box at the same way in docs and the script was mainly to trigger a message_dialog() call under SEARCH_STATE(). I placed the following code that included INIT_STATE() [but the game told that there was no state 0] and also confirmed that I placed semicolons (as I received messages that semicolons were missing).

 

beginterrainscript;

variables;

body;

beginstate INIT_STATE();

break;

beginstate START_STATE();

break;

beginstate SEARCH_STATE();

 message_dialog("This box contains the donated coins.","");

break;

 

I also tried to use EXIT_STATE() call but it was unsuccessful.

Edited by Warrior Mage

Share this post


Link to post
Share on other sites

None of the state names should have parenthesis. It's just INIT_STATE, not INIT_STATE().

Share this post


Link to post
Share on other sites

I'm a week too late for this topic, but I've finally gotten my site working again, so the BoA Design Tutorial is available again. It doesn't cover everything, but it walks you through creating a (very) simple scenario from start to finish.

Share this post


Link to post
Share on other sites

Thank you for the tutorial, Dintiradan. I tried to go into that through your post in another forum and showed some errors. I will work on my small scenario based on your concepts and then reply. This was what I mainly insisted in this forum (learning with examples is easier). If this post was not here, it would have a lot sucked for me to proceed further. I am now slightly more confident about my first tiny successful scenario. 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...