Jump to content

checking for dead characters


Recommended Posts

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

Quote:
Originally written by Angarahad:
according to the docs deduct_ap only works in a creature script.
This has been changed for the most recent version of BoA. Try it; it ought to work.

Quote:
Originally written by Angarahad:
i tried char_ok but the game came up with Inappropriate Command
The call char_ok was not the problem, then. You must've typed something else wrong.
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

×
×
  • Create New...