Easygoing Eyebeast Enraged Slith Posted September 29, 2006 Share Posted September 29, 2006 Is there a variable for amount damage done and type of damage to a character? Quote Link to comment Share on other sites More sharing options...
Hatchling Cockatrice Lilith Posted September 29, 2006 Share Posted September 29, 2006 Nope. If you want to see how much damage a character has taken in a round, the best you can do is check its HP before and after and measure the difference. Quote Link to comment Share on other sites More sharing options...
Easygoing Eyebeast Enraged Slith Posted October 2, 2006 Author Share Posted October 2, 2006 New question. Suppose I want a cutscene to trigger after a GROUP of enemies is dead, what variable could I use? And does num_killed_in_town(which_town) even work? Quote Link to comment Share on other sites More sharing options...
Unflappable Drayk Lazarus. Posted October 2, 2006 Share Posted October 2, 2006 I would place all the enemies in a group, then have a check in the start_state of that town to see if the group is alive. Use num_chars_in_group(). If it returns 0 then start the cutscene. I can't say I've ever used num_killed_in_town(), but I think I've heard others complaining that it is broken. Quote Link to comment Share on other sites More sharing options...
Magnificent Ornk Kelandon Posted October 2, 2006 Share Posted October 2, 2006 According to the most recent bugs thread , that call always returns 0. Quote Link to comment Share on other sites More sharing options...
Magnificent Ornk nikki. Posted October 3, 2006 Share Posted October 3, 2006 In the creatures DEAD_STATE, use the call Code: inc_flag(x,y,1). Then, in the scenario script's START_STATE, use IF calls to check that flag(x,y) equals the number of dead bad guys the party needs to have killed to trigger the cutscene, and then trigger it. Hope that's clear... Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.