Profile for iluvhorses

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

Recent posts

Pages

AuthorRecent posts
dialog/special encounter problem in Blades of Avernum
Warrior
Member # 5861
Profile Homepage #9
Here it is fixed, and it works:

// Town 2: New Town

// This is the special encounter script for this town.

begintownscript;

variables;

int choice;
body;

beginstate INIT_STATE;
// This state called whenever this town is entered.
enable_add_chars(0);

// Names must appear first.
set_name(11,"Jean");

set_crime_tolerance(2);
break;

beginstate EXIT_STATE;
// Always called when the town is left.
message_dialog("You walk out of New Town, curious as to what adentures you can find!"," ");
break;

beginstate START_STATE;
// This state is called every turn the party is in this town.
break;

beginstate 11;
reset_dialog();
add_dialog_str(0, "You see a beggar holding out a tin cup to you. _Could you please spare a few coins so I can eat?_" 0);
add_dialog_choice(0, "Yes I will. (Give him coins)");
add_dialog_choice(1, "Sorry, I don't have any myself.");
add_dialog_choice(2, "Back off old man and leave me alone!");
choice = run_dialog(0);
if (choice == 1) {
if (coins_amount() == 0) {
message_dialog("When he sees that you yourself don't have enough coins to give him, he looks rather ashamed of himself."," ");
}
else {
change_coins(-10);
message_dialog("He thanks you profusely and walks to the nearest bakery."," ");
}
}
else if (choice == 2) {
message_dialog("He sighs and sulks away."," ");
end();
}
else {
message_dialog("He spits in your face and walks away, muttering about how young people only think of themselves these days."," ");
}
break;
Thanks for the help guys! I've just finished creating dialog for two shops!! I think I'm getting a hang of this!! I doubt I'll have much time to work on it the next three weeks because of school, but I do have another question (surprise surprise). How do I make the outer walls of the city taller?? When my party is actually in the city, they look taller than the city walls! And, how can you put items inside things like crates, bookshelves, desks, etc....???

[ Sunday, November 27, 2005 18:12: Message edited by: iluvhorses ]
Posts: 72 | Registered: Sunday, May 29 2005 07:00
dialog/special encounter problem in Blades of Avernum Editor
Warrior
Member # 5861
Profile Homepage #7
Thank you, thank you, thank you, thank you, thank you, thank you!!! Ok, so anytime your going to use anything as a variable that's how you declare it? Ok, now I know. That was something else I was confused about. Like I said, bear with me - it's been a long time since I've done any sort of programming, and this is my first time with Avernumscript. Thanks again for the help guys!
Posts: 72 | Registered: Sunday, May 29 2005 07:00
dialog/special encounter problem in Blades of Avernum
Warrior
Member # 5861
Profile Homepage #7
Thank you, thank you, thank you, thank you, thank you, thank you!!! Ok, so anytime your going to use anything as a variable that's how you declare it? Ok, now I know. That was something else I was confused about. Like I said, bear with me - it's been a long time since I've done any sort of programming, and this is my first time with Avernumscript. Thanks again for the help guys!
Posts: 72 | Registered: Sunday, May 29 2005 07:00
dialog/special encounter problem in Blades of Avernum Editor
Warrior
Member # 5861
Profile Homepage #5
// TOWN SCRIPT
// Town 2: New Town

// This is the special encounter script for this town.

begintownscript;

variables;

choice = run_dialog(0);

body;

beginstate INIT_STATE;
// This state is called whenever this town is entered.
enable_add_char(0);
set_crime_tolerance(2);
break;

beginstate EXIT_STATE;
// Always called when the town is left.
message_dialog("You walk out of New Town, curious as to what adventures you can find!"," ");
break;

begingstate START_STATE;
// This state is called every turn the party is in this town.
break;

beginstate11;
reset_dialog();
add_dialog_str(0, "You see a beggar holding out a tin cup to you. _Could you please spare a few coins so I can eat?_" 0);
add_dialog_choice(0, "Yes I will. (Give him coins)");
add_dialog_choice(1, "Sorry, I don't have any myself.");
add_dialog_choice(2, "Back off old man and leave me alone!");
choice = run_dialog(0);
if (choice == 1) {
change_coins(-10);
message_dialog("He thanks you profusely and walks to the nearest bakery."," ");
}
else if (choice == 2) {
message_dialog("He sighs and sulks away."," ");
}
else {
message_dialog("He spits in your face and walks away, muttering about how young people only think of themselves these days."," ");
}
break;
Anything??

[ Saturday, November 26, 2005 18:59: Message edited by: iluvhorses ]
Posts: 72 | Registered: Sunday, May 29 2005 07:00
dialog/special encounter problem in Blades of Avernum
Warrior
Member # 5861
Profile Homepage #5
// TOWN SCRIPT
// Town 2: New Town

// This is the special encounter script for this town.

begintownscript;

variables;

choice = run_dialog(0);

body;

beginstate INIT_STATE;
// This state is called whenever this town is entered.
enable_add_char(0);
set_crime_tolerance(2);
break;

beginstate EXIT_STATE;
// Always called when the town is left.
message_dialog("You walk out of New Town, curious as to what adventures you can find!"," ");
break;

begingstate START_STATE;
// This state is called every turn the party is in this town.
break;

beginstate11;
reset_dialog();
add_dialog_str(0, "You see a beggar holding out a tin cup to you. _Could you please spare a few coins so I can eat?_" 0);
add_dialog_choice(0, "Yes I will. (Give him coins)");
add_dialog_choice(1, "Sorry, I don't have any myself.");
add_dialog_choice(2, "Back off old man and leave me alone!");
choice = run_dialog(0);
if (choice == 1) {
change_coins(-10);
message_dialog("He thanks you profusely and walks to the nearest bakery."," ");
}
else if (choice == 2) {
message_dialog("He sighs and sulks away."," ");
}
else {
message_dialog("He spits in your face and walks away, muttering about how young people only think of themselves these days."," ");
}
break;
Anything??

[ Saturday, November 26, 2005 18:59: Message edited by: iluvhorses ]
Posts: 72 | Registered: Sunday, May 29 2005 07:00
dialog/special encounter problem in Blades of Avernum Editor
Warrior
Member # 5861
Profile Homepage #3
Ok, that helped a little - 1 slight problem. I got it to give me the correct response when I choose option three, however the
choice = run_dialog(0); is not working. I keep getting an error message saying "Unknown command choice in line 39" (or whatever line it happens to be in). I tried declaring it in the variables sectiong, and where Thuryl put it in the code, but it still doesn't work. And without it the dialog box repeats when I choose the 2nd and 3rd options.

BTW, about what Thuryl suggested about having a way to handle it if the player offers the money but has none - would I use another if statement for that???

(bear with me, guys, I'm new to this, you'll probably hear more from me on this forum than the other one!)
Posts: 72 | Registered: Sunday, May 29 2005 07:00
dialog/special encounter problem in Blades of Avernum
Warrior
Member # 5861
Profile Homepage #3
Ok, that helped a little - 1 slight problem. I got it to give me the correct response when I choose option three, however the
choice = run_dialog(0); is not working. I keep getting an error message saying "Unknown command choice in line 39" (or whatever line it happens to be in). I tried declaring it in the variables sectiong, and where Thuryl put it in the code, but it still doesn't work. And without it the dialog box repeats when I choose the 2nd and 3rd options.

BTW, about what Thuryl suggested about having a way to handle it if the player offers the money but has none - would I use another if statement for that???

(bear with me, guys, I'm new to this, you'll probably hear more from me on this forum than the other one!)
Posts: 72 | Registered: Sunday, May 29 2005 07:00
dialog/special encounter problem in Blades of Avernum Editor
Warrior
Member # 5861
Profile Homepage #0
Ok, this is my first time trying to create a BOA scenario. I don't have a story yet, but I'm just trying to get myself familiar with scripting and all that jazz until I do decide what I want to make a scenario about.

Ok, the current problem I'm having is with a special encounter. I have a town and I have a beggar in this town. Here's the code:

beginstate11;
reset_dialog();
add_dialog_str(0, "You see a beggar holding out a tin cup to you. _Could you please spare a few coins so I can eat?_" 0);
add_dialog_choice(0, "Yes I will. (Give him coins)");
add_dialog_choice(1, "Sorry, I don't have any myself.");
add_dialog_choice(2, "Back off old man and leave me alone!");
if (run_dialog(0) == TRUE) {
change_coins(-10);
message_dialog("He thanks you profusely and walks to the nearest bakery."," ");
}
else {
message_dialog("He sighs and sulks away."," ");
}
else {
message_dialog("He spits in your face and walks away, muttering about how young people only think of themselves these days."," ");
}
break;
Ok, the problem I'm having is that when I play the scenario and I choose the third option, it gives the response "He sighs.." instead of "He spits...". I've tried figuring out what I should do differentely, and I've tried all of my resources (docs, westra's cookbook, Kelandon's page, plus looking at other scenarios). Any ideas??

[ Saturday, November 26, 2005 19:01: Message edited by: iluvhorses ]
Posts: 72 | Registered: Sunday, May 29 2005 07:00
dialog/special encounter problem in Blades of Avernum
Warrior
Member # 5861
Profile Homepage #0
Ok, this is my first time trying to create a BOA scenario. I don't have a story yet, but I'm just trying to get myself familiar with scripting and all that jazz until I do decide what I want to make a scenario about.

Ok, the current problem I'm having is with a special encounter. I have a town and I have a beggar in this town. Here's the code:

beginstate11;
reset_dialog();
add_dialog_str(0, "You see a beggar holding out a tin cup to you. _Could you please spare a few coins so I can eat?_" 0);
add_dialog_choice(0, "Yes I will. (Give him coins)");
add_dialog_choice(1, "Sorry, I don't have any myself.");
add_dialog_choice(2, "Back off old man and leave me alone!");
if (run_dialog(0) == TRUE) {
change_coins(-10);
message_dialog("He thanks you profusely and walks to the nearest bakery."," ");
}
else {
message_dialog("He sighs and sulks away."," ");
}
else {
message_dialog("He spits in your face and walks away, muttering about how young people only think of themselves these days."," ");
}
break;
Ok, the problem I'm having is that when I play the scenario and I choose the third option, it gives the response "He sighs.." instead of "He spits...". I've tried figuring out what I should do differentely, and I've tried all of my resources (docs, westra's cookbook, Kelandon's page, plus looking at other scenarios). Any ideas??

[ Saturday, November 26, 2005 19:01: Message edited by: iluvhorses ]
Posts: 72 | Registered: Sunday, May 29 2005 07:00
Zakhazi Run in Blades of Avernum
Warrior
Member # 5861
Profile Homepage #11
Thanks! I had Erik Wenstra's cookbook, but I didn't know about the other thing by Kelandon - thanks!! It's slow going, very slow going. I don't even know what I want to do an adventure about yet, I'm just working on learning everything so that when it comes time to make an adventure, I'll hopefully know what I'm doing :)
Posts: 72 | Registered: Sunday, May 29 2005 07:00
Zakhazi Run in Blades of Avernum
Warrior
Member # 5861
Profile Homepage #9
I tried that, but the only "town" is the bridge, the rest of the maze is "outdoors" so I couldn't do it.

Yes, Thralni, I had already killed the human headed serpent, but I was not across the bridge. I had come into the maze from the north and had to jump down a couple of ledges to get to where I was. The next time I'll just stay completely away from that place!!!!!! :)

I have a new question - I downloaded the BOA editor cause I want to try my hand at designing a scenario (I know, a big job for one who can't get through any scenario without some sort of help!) My question is how do you do scripting? I've been reading through the book and it all looks very confusing to me, then I look at script code for an already finished scenario by someone else and it just confuses me even more. I'm having fun with the terrain and stuff, but I want to get some words in there, other than the ones in the town that is given to you.
Posts: 72 | Registered: Sunday, May 29 2005 07:00
Zakhazi Run in Blades of Avernum
Warrior
Member # 5861
Profile Homepage #6
Ok, yeah, I'm getting better at the saving thing, but I still forgot sometimes to back them up. Shoot, I didn't think I'd get stuck in the maze. Alright, what I'll do is use the Character Editor to get out of the scenario and start all over again. Thanks for your help!!
Posts: 72 | Registered: Sunday, May 29 2005 07:00
Zakhazi Run in Blades of Avernum
Warrior
Member # 5861
Profile Homepage #4
But is there any way to get out of the maze from where I am?? I had to jump down a couple of ledges to get into the maze.
Posts: 72 | Registered: Sunday, May 29 2005 07:00
Zakhazi Run in Blades of Avernum
Warrior
Member # 5861
Profile Homepage #2
I can't find it. I came to it from the north side - didn't realize that I didn't need to go here if I had helped the unicorn, I was trying to find a way out of Morog's area and couldn't find it and ended up here.
Posts: 72 | Registered: Sunday, May 29 2005 07:00
Zakhazi Run in Blades of Avernum
Warrior
Member # 5861
Profile Homepage #0
Alright - I'm always getting myself stuck in someting and asking you guys for help, and here I am again. I'm stuck in the stupid Dark Maze where all those fire lizards are and broken bridge over the fire pit. I was able to save my self some time by going to the Character Editor and changing the day, but I still can't figure out how to get out of the Dark Maze. Help ??
Posts: 72 | Registered: Sunday, May 29 2005 07:00
MA in Blades of Avernum
Warrior
Member # 5861
Profile Homepage #5
thanks, I got it :)

Ugh, I always get out of one situation, with just enough time to get into another situation that I can't figure out. The big magical dude who throws the axeblades. I can't figure out how to turn off those magical thingys that are keeping him alive.
(nevermind, I got him too)

[ Saturday, November 19, 2005 19:16: Message edited by: iluvhorses ]
Posts: 72 | Registered: Sunday, May 29 2005 07:00
MA in Blades of Avernum
Warrior
Member # 5861
Profile Homepage #2
I don't know how to use it to my advantage. The only thing that's worked on her so far is acid, but it barely hurts her, it only takes off 4-10 points at a time.
Posts: 72 | Registered: Sunday, May 29 2005 07:00
MA in Blades of Avernum
Warrior
Member # 5861
Profile Homepage #0
How do I get past Chika? Nothing I use has any effect on her. I managed to kill off (of course, I'll have to do it again) the nephil warriors that suddenly appeared, but I can't figure out how to get past Chika without her killing me.
Posts: 72 | Registered: Sunday, May 29 2005 07:00
now what? - Death at Chapman's in Blades of Avernum
Warrior
Member # 5861
Profile Homepage #3
Yeah, I finally got it all figured out - now I'm on to a new scenario that, yet again, I'm stuck in: Crescent Valley. Ok, I found the doll thing that the she-demon wanted, and I found Demonslayer - I haven't been able to tell the girl in Farthest that I found the Demonslayer, and I haven't been able to tell the dude who's friends with the she-demon that I have the doll. It doesn't come up in the dialogue. Oh, and I couldn't find that stupid candlestick either for that other girl. Help?
Posts: 72 | Registered: Sunday, May 29 2005 07:00
now what? - Death at Chapman's in Blades of Avernum
Warrior
Member # 5861
Profile Homepage #0
(nevermind, I think I got it)

Hey everybody - I just started playing DAC and I'm at a standstill. I've talked to the death dude in the storage area, and I found the death charm. I don't know where else to go. I've searched just about every corner. What am I missing? Do I have to actually use the death charm thingy?

[ Friday, November 18, 2005 20:13: Message edited by: iluvhorses ]
Posts: 72 | Registered: Sunday, May 29 2005 07:00
Lord Putidus help in Blades of Avernum
Warrior
Member # 5861
Profile Homepage #9
Yup, got it. Thanks.
Posts: 72 | Registered: Sunday, May 29 2005 07:00
Lord Putidus help in Blades of Avernum
Warrior
Member # 5861
Profile Homepage #7
mmmkay - got past the statues, went back up out of the fire pit, talked to Collatinus, talked to Lucretia, talked to Faustulus, and now I'm at Putidus' door. I tried once already, and I was dead in seconds. How do you kill the fiend???
Posts: 72 | Registered: Sunday, May 29 2005 07:00
Lord Putidus help in Blades of Avernum
Warrior
Member # 5861
Profile Homepage #6
argh, I lost some of my potions in battles outside. You know when you have to fight those animals, and some battles were like with 9 bears or 11 worgs or something, sometimes I would end up with two people left and they didn't have enough room to pick everything up that was owned by the others and once I ended combat mode it was all gone. So, that's how I lost some potions.
Posts: 72 | Registered: Sunday, May 29 2005 07:00
Lord Putidus help in Blades of Avernum
Warrior
Member # 5861
Profile Homepage #0
K, now I'm playing Lord Putidus. I got passed the floor with the letters. And the room beyond that is filled with live statues that attack me and summon up those humongous fungi things and I'm dead before I can shoot maybe 3 arrows. help???? Should I keep persevering, or take a trip to the character editor??
Posts: 72 | Registered: Sunday, May 29 2005 07:00
A Perfect Forest??? in Blades of Avernum
Warrior
Member # 5861
Profile Homepage #16
I did it!! I did it!! Finally. Before I saw your last post, Fire Shard, I had managed to, somehow, get the mirror out of the room. I just couldn't figure out exactly where to put it. Now I don't die as I walk. Thank you soooooo much for your help!!!!!
Posts: 72 | Registered: Sunday, May 29 2005 07:00

Pages