checking for dead characters
Author | Topic: checking for dead characters |
---|---|
Apprentice
Member # 5821
|
written Saturday, May 28 2005 06:47
Profile
I've made a series of special items that when used run a scenario script state that checks for hostiles within a certain distance and damages them in a certain way. These work fine except that it is possible to use more than one during a combat round. when the second one is used it acts as if characters killed by the first item are still in their places. Can anyone tell me if there's a way of either A. getting the script to check if a character is alive or not before trying to attack it (i tried char_status and char_ok but it came up with an inappropriate command error) or B. ending the round after the item has been used thanks Posts: 10 | Registered: Tuesday, May 17 2005 07:00 |
Off With Their Heads
Member # 4045
|
written Saturday, May 28 2005 06:50
Profile
Homepage
A. The call char_ok checks this. B. The call deduct_ap should be able to accomplish this (although make sure you're using the latest version of BoA). If I've somehow misunderstood you and you intend to end a monster's combat turn, not the PC's, use end_combat_turn. -------------------- Arancaytar: Every time you ask people to compare TM and Kel, you endanger the poor, fluffy kittens. Smoo: Get ready to face the walls! Ephesos: In conclusion, yarr. Kelandon's Pink and Pretty Page!!: the authorized location for all things by me The Archive of all released BoE scenarios ever Posts: 7968 | Registered: Saturday, February 28 2004 08:00 |
Apprentice
Member # 5821
|
written Saturday, May 28 2005 07:19
Profile
according to the docs deduct_ap only works in a creature script. i'm looking for something to go in the scenario script state that operates the item. i tried char_ok but the game came up with Inappropriate Command Posts: 10 | Registered: Tuesday, May 17 2005 07:00 |
Off With Their Heads
Member # 4045
|
written Saturday, May 28 2005 11:02
Profile
Homepage
quote:This has been changed for the most recent version of BoA. Try it; it ought to work. quote:The call char_ok was not the problem, then. You must've typed something else wrong. -------------------- Arancaytar: Every time you ask people to compare TM and Kel, you endanger the poor, fluffy kittens. Smoo: Get ready to face the walls! Ephesos: In conclusion, yarr. Kelandon's Pink and Pretty Page!!: the authorized location for all things by me The Archive of all released BoE scenarios ever Posts: 7968 | Registered: Saturday, February 28 2004 08:00 |
Apprentice
Member # 5821
|
written Saturday, May 28 2005 12:21
Profile
yeah, deduct_ap does work in the scenario script. problem solved. thanks Posts: 10 | Registered: Tuesday, May 17 2005 07:00 |