num_killed_in_town()

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).
AuthorTopic: num_killed_in_town()
Agent
Member # 27
Profile #0
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
Profile Homepage #1
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:
beginstate DEAD_STATE;
inc_flag(100,current_town(),1);
break;
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
Profile #2
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