The Action List
Posted: Sun Apr 27, 2008 2:26 pm
So I'm still working on the same level from my last question where you have ot defend the villagers of a town from an assaulting army. I have all the enemy squads in place on the other side of the river, and its time to being scripting thier attack. I know i could use attack and melee actions, but i've heard rumors and started to get an idea that perhaps some linked action lists could cause randomness to the attack?
This is my idea, im curious if it will work. There are 3 main waves of attackers, and 3 waves of ghol "hunters." I want to program the 3 main waves to activate with a melee or attack action so that they come in and attack the peasants, but use a TUNI to make sure there are no nearby player forces that will take precedent over the peasents. Those three waves will be triggered one after the other (hopefully randomly, so you dont know where or what is coming at you next - is this where i use the action list?) with delays so they dont come all at once.
Unrealted to those three attacks, the three waves of ghols will be programmed to ignore players, and just hunt down the peasents. Since the villagers are one of the victory conditions, the player will be forced to stop these fast, focused hunters. Since these three waves are the same, i assume i wont need to randomize them, but is there some way to delay them so they dont come all at the same time? Do i just give them REALLLY long trigger times? Or is there some other effective way to delay them?
This is my idea, im curious if it will work. There are 3 main waves of attackers, and 3 waves of ghol "hunters." I want to program the 3 main waves to activate with a melee or attack action so that they come in and attack the peasants, but use a TUNI to make sure there are no nearby player forces that will take precedent over the peasents. Those three waves will be triggered one after the other (hopefully randomly, so you dont know where or what is coming at you next - is this where i use the action list?) with delays so they dont come all at once.
Unrealted to those three attacks, the three waves of ghols will be programmed to ignore players, and just hunt down the peasents. Since the villagers are one of the victory conditions, the player will be forced to stop these fast, focused hunters. Since these three waves are the same, i assume i wont need to randomize them, but is there some way to delay them so they dont come all at the same time? Do i just give them REALLLY long trigger times? Or is there some other effective way to delay them?