Profile for Latha Luain

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

AuthorRecent posts
set_char_status and set_party_status calls in Blades of Avernum Editor
Apprentice
Member # 5815
Profile #2
Hi again, and thanks for the reply.

Sorry, I must've mixed up the code I pasted. I've tried pretty much everything to see if I'd misunderstood the syntax, including checking many parameter combinations. For my post, I was probably thinking of the set_party_status call, which I also tried, and which doesn't require you to specificy a character.

Anyways, I took your suggestion, double-checked I hadn't made any other blunders, and got exactly the same error. However, then I realized something. The same call works in another town script of mine, where buying beer in an inn makes you drunk.

So I poked around a bit, and realized that even entering the room to talk to the character in question calls up the same error (I'd previously just been talking through the window to save time during testing). Do you think the townscript or scenario .bas file or something might be corrupted? There is no special encounter or terrain script or anything in that room...
Posts: 2 | Registered: Sunday, May 15 2005 07:00
set_char_status and set_party_status calls in Blades of Avernum
Apprentice
Member # 5815
Profile #2
Hi again, and thanks for the reply.

Sorry, I must've mixed up the code I pasted. I've tried pretty much everything to see if I'd misunderstood the syntax, including checking many parameter combinations. For my post, I was probably thinking of the set_party_status call, which I also tried, and which doesn't require you to specificy a character.

Anyways, I took your suggestion, double-checked I hadn't made any other blunders, and got exactly the same error. However, then I realized something. The same call works in another town script of mine, where buying beer in an inn makes you drunk.

So I poked around a bit, and realized that even entering the room to talk to the character in question calls up the same error (I'd previously just been talking through the window to save time during testing). Do you think the townscript or scenario .bas file or something might be corrupted? There is no special encounter or terrain script or anything in that room...
Posts: 2 | Registered: Sunday, May 15 2005 07:00
set_char_status and set_party_status calls in Blades of Avernum Editor
Apprentice
Member # 5815
Profile #0
Hello:

This regards using the calls set_char_status and set_party_status during dialogue; I have had some difficulty getting them to work. I have isolated the problem to one line, I think: the following code works perfectly if the line "set_char_status(13,10,1,0);" is omitted, but encounters an error if that line is added (regardless of the values used).

code =
while (x <= 5){
if (get_stat(x,13) > 0){
change_char_energy(x,-299);
set_char_status(13,10,1,0);
}
x = x + 1;
}
break;
(oh, yeah, x has been set to 0 above)

The error message is displayed in a separate window, when the dialogue script is accessed (i.e., anyone in the town is spoken to). It is unlike other BofA errors in the appearance of the window, and reads:

Unhandled Exception: c0000005
At address: 00439ab0

Is this a bug, or am I doing something wrong? I don't have much experience with Avernumscript or c, so any insights at all would be much appreciated. Thanks, and sorry if it's a dumb question!

P.S. What I'm trying to do is look for mages in the party, dumbfound them, and take away their spell energy. It's a non-combat situation, more of a plot point to demonstrate a friendly NPC's power. I thought of 10 possibly being an invalid value for dumbfounding (status 13), but the code doesn't work for any other status either.

[ Sunday, May 15, 2005 17:19: Message edited by: Latha Luain ]
Posts: 2 | Registered: Sunday, May 15 2005 07:00
set_char_status and set_party_status calls in Blades of Avernum
Apprentice
Member # 5815
Profile #0
Hello:

This regards using the calls set_char_status and set_party_status during dialogue; I have had some difficulty getting them to work. I have isolated the problem to one line, I think: the following code works perfectly if the line "set_char_status(13,10,1,0);" is omitted, but encounters an error if that line is added (regardless of the values used).

code =
while (x <= 5){
if (get_stat(x,13) > 0){
change_char_energy(x,-299);
set_char_status(13,10,1,0);
}
x = x + 1;
}
break;
(oh, yeah, x has been set to 0 above)

The error message is displayed in a separate window, when the dialogue script is accessed (i.e., anyone in the town is spoken to). It is unlike other BofA errors in the appearance of the window, and reads:

Unhandled Exception: c0000005
At address: 00439ab0

Is this a bug, or am I doing something wrong? I don't have much experience with Avernumscript or c, so any insights at all would be much appreciated. Thanks, and sorry if it's a dumb question!

P.S. What I'm trying to do is look for mages in the party, dumbfound them, and take away their spell energy. It's a non-combat situation, more of a plot point to demonstrate a friendly NPC's power. I thought of 10 possibly being an invalid value for dumbfounding (status 13), but the code doesn't work for any other status either.

[ Sunday, May 15, 2005 17:19: Message edited by: Latha Luain ]
Posts: 2 | Registered: Sunday, May 15 2005 07:00