This relativly simple set of scripts spawns in 120 ant's over the course of a combat. There are several scripts associated with this as well as some variables set on the area. Here are the variables that are set on the area and there values: ANTS_IN_BURROW 120 ANTS_ON_FIELD 0 ANT_COMBAT_STARTED 0 COMBAT_ROUND 0 IDLE_ROUNDS 0 NUM_PC_IN_AREA 0 There are five scripts associated to this combat. Three of them are dedicated to the area. One is for the Ant's on death event. Finally a small snippet of code for the Module on Death event. All of the variables set on the area control the flow of the combat. While several of the values are hard coded in the script if you wanted to make it a bit more dynamic substituting more variables in the area and feeding those into the scripts would be you're best option. Enjoy! orshad2048
black_feather1
The variable strTemplate located in the function StartAntSpawnLogic. This function is inside of the larger script placed in the Area OnHeartBeat event. The StartAntSpawnLogic function generates the ants by rolling a percentiles and assigning the resref to the variable strTemplate. Here is the snippet of code that controls this:
01 - 70 ant solder
71 - 89 ant guard
90 - 100 ant queen
Just substitute the resref of you're choosing here and you're off and running. Also you can change this section in as many ways as you're imagination takes you. if you just want 1 creature then drop the percentile roll and assign the resref to the variable when it is initialized at the start of the sub-function. Or change the IF logic to alter the percentage. The choice ultimately up to you. I attached a .erf to this post so you can down load it and import it into a module of you're own. Please let me know if it breaks and I'll try to rectify any mistakes.
Also keep in mind there is a 2 tiered loop that controls the 12 way-points set up to spawn in at most 12 ants and as little as 0 depending on how many ants are on the field of battle. Good luck orshad2048
The ant's are from the CEP. I made copies of them to attach the new on death script. Also I beefed up the ant's stats from the CEP so that the encounter is for 5 to 7th level characters.
Posted by Lexx ( 60.229.xxx.xxx ) at 2005-03-27 18:28:00
Are the ants in the picture from a hack? And if so which one?
You must be Logged In to post comments in this section.