Its possible, and an interesting prospect. Personally, I've made a map where grunts constantly stream at a player and you eliminate as many as possible in 2 minutes, and are rewarded according to the number of kills. (
http://www.youtube.com/watch?v=C4MAdb5idYg)The front part of the video is sort of what you want, no?
So if you want the player to know how many grunts he's killed, then there's a problem. You'll need to use HUD messages, meaning a separate HUD message for each number of AI killed. So you'll need to attach a cap to the number of enemies in the level. Say its 70. Then compile a HUD message file as you would do an objective file. Inside, you type out 70 individual HUD messages, each of them unique to the number of AI that would die.
So it would be something like:
msg1=You have killed 1 enemy in total
msg2=You have killed 2 enemies in total
msg3=You have killed 3 enemies in total
And so on until you reach the maximum number of AI. Compile with tool, then script the encounter.
Using the method MooseGuy mentioned above, calculate how many AI the player has killed, and add 1 to the variable whenever a new kill is detected. (Alternatively, you could do what I did in the map mentioned above, which was to assign a single AI individual to his own squad, and running a continuous script that would detect if he was dead, then add 1 to the variable and respawn him. Your choice)
At the end of the level, your variable should equal the number of AI killed. So what I did was compile a lengthy script that would display each corresponding HUD message to the variables. I'm sure there's a simpler method, but I await some smarter person to figure it out for me.
Ok, so your script that assigns the correspondence would be:
(script startup score
[insert event that would determine the end of the level]
(if (= score 1))
(show_hud_help_text true)
(hud_set_help_text msg)
(sleep 150)
(show_hud_help_text false)
(if (= score 2))
(show_hud_help_text true)
(hud_set_help_text msg2)
(hud_set_objective_text msg2)
(sleep 150)
(show_hud_help_text false)
And so on....(the entire process will take you less than an hour, unless you're really that slow. Its incredibly frustrating though)
Sorry if that was incoherent or messy, but I can't find an easier way of explaining it.
Edited by Polamee on Nov 19, 2010 at 08:15 AM