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

No, no... I was not intending to ask something. I was just showing an instance where Blades of Avernum designing just casually converts itself into blades of disappointment and cast cloud of blades on me.

Share this post


Link to post
Share on other sites
Posted (edited)

I have to give an item to the PC using the code characteristic. I tried reward_give but I receive a message telling that it is an unknown command. How to give an item to my party? Help appreciated.

Edited by Warrior Mage

Share this post


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

I have to give an item to the PC using the code characteristic. I tried reward_give but I receive a message telling that it is an unknown command. How to give an item to my party? Help appreciated.

The way you give an item to the party in dialogue is exactly how you're describing. Post the code if you want it debugged.

Share this post


Link to post
Share on other sites

code =

reward_give (x);

break;

 

code =

reward_give (x, 5);

break;

 

I tried the above two. x is mentioned because I don't remember the item number right now. I tried 5 for the number of items.

Share this post


Link to post
Share on other sites

If you want help, you really need to copy and paste the actual section of the script, not just something from memory.

 

Also, the command reward_give() takes one short. Anything in the form reward_give(x,5) will generate an error because it has a second number.

 

I don't know why the first version wouldn't work (assuming that the extra spaces are not the problem). You'd need to post more of the script (at a minimum, the entire node).

Share this post


Link to post
Share on other sites

I just sent what was in my memory because I messaged just after finishing yesterday's session. But, I... deleted that part of the actual code after I found it not working. That's why I couldn't send the actual one. But, that was what I tried actually in the script. Sometimes, I am able to send the full code as I send during the session with forums open. However, I'll try it again and send the full node if it's not working again.

Share this post


Link to post
Share on other sites

I want to rather not show the date and year in the scenario in the area decription box, like the thing happened in 'The Magic' and Echoes: Renegade. What should I do?

Share this post


Link to post
Share on other sites
Posted (edited)

beginstate 19;
reset_dialog();

if (get_flag (0, 3) < 2) {
add_dialog_str (0, "You have not yet dealt with the problem affecting this place. But, you
could leave if you wished to in luxurious cart, leaving people die and you can run away with
shame. What do you wish to do?"" , 0);
add_dialog_choice (0, "Move on!");
add_dialog_choice (1, "No, let's help them.");
} else {
add_dialog_str (0, "Now you have dealt with the problem affecting this place, you could
leave this place luxuriously and proudly. Are you ready?" , 0);
add_dialog_choice (0, "Move on!");
add_dialog_choice (1, "Wait, please.");
}
choice = run_dialog (1);
if (choice == 1) {
if (get_flag (0, 3) < 2) {
message_dialog ("You move out of this place, shameful but with your life. You never ever
did adventuring due to your reputation. You started to work as a poor labourer in a smithy.
What a disappointment." , "THE END.");
end_scenario (0);
} else {
message_dialog ("You move on, to the nearest town, get some welcomes and treated as a
hero. You later on started working as dervishes to King Starrus later on. You took place in
the history. You become folklore heroes. " , "THE END.");
end_scenario (1);
}}

break;

 

This code is not working and the game tells me that unknown command 'move' has occurred. I haven't placed such command anywhere and I think it is showing the 'move' in the dialog choices but I don't know why it occurs and fails to load the entire outdoor script. Help appreciated.

Edited by Warrior Mage

Share this post


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

add_dialog_str (0, "You have not yet dealt with the problem affecting this place. But, you
could leave if you wished to in luxurious cart, leaving people die and you can run away with
shame. What do you wish to do?"" , 0);

Double end quotes.

Share this post


Link to post
Share on other sites

I want to create a cutscene. I want it to occur inside a closed door when I am outside of it. When I run it, I can't view the room any can view only blackness as it closed. How to make it visible? Help appreciated. And also, at the south end of my outdoor section, I see a blue area. I don't like it.

Edited by Warrior Mage

Share this post


Link to post
Share on other sites

If you want to be able to see an area in a cut scene, you either need to put a character close enough that the party can see the area, or you need to use set_total_visibility(1). Remember to set it back to 0 when the cut scene is over.

 

As for the south end of your outdoor section, I don't know why you're seeing a blue area, but maybe put in a wall?

Share this post


Link to post
Share on other sites

Thank you, but... it can't be done. The outdoor section is a section which was present in one of the spiderweb games and a wall was not supposed to be there. This happens every time you create a outdoor section (or atleast I think) the north and west edges get blue and I noticed it every time until I put up a wall. I tried to upload a screenshot in my website, but I couldn't for some reasons.

Edited by Warrior Mage

Share this post


Link to post
Share on other sites

If Blades of Avernum suffered from serious graphical glitches every time it produced an outdoor section, I suspect there would be far fewer scenarios, and far more aggravated players :)

 

I would politely point out that this problem is by no means a unique one in Blades of Avernum. There are scenarios that face exactly this sort of issue – that is, using portions of the Avernum maps from the various games of the two trilogies, but only allowing the player to explore so far. One example is 'A Visit to the Madhouse'. Another is 'Bahssikava'. Don't forget what I said at the beginning of this thread. There are very many examples of how designers deal with simple issues like these in the pre-existing scenarios. Don't be afraid to dive into them in the editor, or to play through them, and see how designers work around problems like these!

 

In other words, don't feel like you have to reinvent the wheel every time you encounter an issue that others will have grappled with before you! If car manufacturers did that, I don't image we'd have many cars on the roads these days ...

 

That ‘blue’ you talk about is water. Blades of Avernum, as with many games of this type, faces the typical problem of what to do when the end of the world is reached. The map inside the game is only so big, so what happens when the player gets to the edge? If the designer didn’t code in something, you’d get weird graphical anomalies at best, or more likely the engine would just crash entirely. So games like this need to put in some sort of information, something that tells the game what to do if the player sees off the edge of the world.

 

Some games put in blackness, some put in mountains, some put in generic empty space tiles. Blades of Avernum puts in ocean. It makes sense, if you think about it. The game needs to put in some sort of physical barrier to prevent the player from moving off the edge of the world – and one of the nice simple, big barriers provided by nature is a huge expanse of water, one so large that you can’t see its edges.

 

You are seeing this ‘blue’ because you’re letting the party see off the edge of the world. You need to make sure they can’t do that – and that’s easy! Just add additional outdoor sections onto the sides of the ones that border the edge of the world. You’ll need to partly decorate these sections to allow for the fact that the party can see into them – remember that Far Sight can extend much further than the party’s vision – and you’ll need to put in some form of script barrier to explain why the party can’t actually explore these dummy areas. Of course, you can’t do that at the fixed borders of the world on the north and west – you might need to shift your outdoor sections around to get the desired effect!

Share this post


Link to post
Share on other sites

Hello guys, I found out a way to hide the pacific ocean to the south of my outdoor section. Put the blackness terrain in the south edge of your outdoor section and you are fine. That's what I did to block the party from reaching the northern outdoor section which should be reached in a different manner. The cutscene was too fine. Is there any way to test the dungeon scripts by playing it without fighting the monsters in the way? It is annoying.

Share this post


Link to post
Share on other sites

You can change the starting location just for testing purposes or test with a god party. Or put in calls that you’ll later delete that move the party past the combat.

Share this post


Link to post
Share on other sites

Further to Kelandon’s answer, I'd suggest that you also look up ‘Debugging Mode’ in the documentation. It’s near the top of the section about testing, which makes me suspect that you might not have thought to look there. Remember that the documentation is your friend! :)

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