num_killed_in_town()
Author | Topic: num_killed_in_town() |
---|---|
Agent
Member # 27
|
written Tuesday, July 10 2007 12:25
Profile
Does anyone know how to get around this call since it doesn't work? It's basically the only thing keeping me from releasing my scenario for beta, which I need to get done by tonight. Posts: 1233 | Registered: Wednesday, October 3 2001 07:00 |
Infiltrator
Member # 5576
|
written Tuesday, July 10 2007 13:12
Profile
Homepage
To the best of my knowledge, no one has ever gotten that call to work. You can work around it though, by making all of the creature scripts in a town increment an SDF when killed; then you can just check the flag for the number killed. I would do something like: That way you can just insert it into all of your creature scripts and have a killed count in every town. Refinements could be made to count only deaths of creatures hostile to the party, or to accommodate more than 30 towns. -------------------- Überraschung des Dosenöffners! "On guard, you musty sofa!" Posts: 627 | Registered: Monday, March 7 2005 08:00 |
Agent
Member # 27
|
written Tuesday, July 10 2007 13:15
Profile
Thanks for the advice. I wish I had known about that inc_flag() call earlier, as it would have saved me so much time :rolleyes: Posts: 1233 | Registered: Wednesday, October 3 2001 07:00 |