Page 1 of 1

result_units from spawner prototype, or evolution spawn func

Posted: Fri Jun 10, 2016 10:21 pm
by sparr
I want to emulate the evolution-based spawning pattern of a biter-spawner. The easiest solution for me would be if the API exposed a function for the spawner prototype that did the selection for me, in the same fashion that real spawns use. Alternatively, just exposing result_units and making me do the math myself would still be useful.

Re: result_units from spawner prototype, or evolution spawn func

Posted: Sat Jun 11, 2016 6:38 pm
by bobingabout
What are you trying to do that would need this?

Re: result_units from spawner prototype, or evolution spawn func

Posted: Sat Jun 11, 2016 7:33 pm
by sparr
"hatch" dropped artifacts [back] into biters

viewtopic.php?f=93&t=26524

My "dumb" solution is to just limit it to low-hp enemies, but that's no good late-game. What I want to do is pick something from the current evolution spawn table. (I already wrote code to balance out the various types of enemies linked to a particular color artifact, but threw it out when I couldn't find the evolution info)

Re: result_units from spawner prototype, or evolution spawn func

Posted: Sun Jun 12, 2016 8:50 pm
by sparr
This is a duplicate of viewtopic.php?f=28&t=16008

Also, this has supposedly been implemented for an upcoming release.