"The battered marines took cover behind a broken down truck as countless enemy rifle rounds rained death above them. After having spent just a moment to regain their breath they looked towards their sergeant for further orders. The sergeant responded with a silent nod, something which filled the marines with dread, there was no hope and they were to make their last stand."
Weekly Trigger Exercise #2
This weeks trigger exercise is about creating a squad mechanic where the whole group of units behave as one entity. You can use any unit for the exercise from a classical marine squad to a swarm of scourge. While you can interpret the concept of a squad any way you wish I have listed a few possible features to help you get started.
The unit share any orders given.
The group goes into a specific shape whenever possible.
The whole unit shares a single health bar with units getting killed at specific intervals.
The squad fires at all units near a target unit.
Good luck! I am looking forward to seeing results!
I've been thinking of doing some kinda squad formation trigger work since open beta... but this actually gave me some slight incentive to just do it. xD
Sorry about the poor resolution, i got a shitty monitor.
Fraps stopped working on me in the middle, didn't get to capture the part where the units die sequentially with the global HP dropping.
Formation is loosely done (primary focus is a cohesive squad that acts and takes damage as one unit)
Formation readily changes shape when collision or interruptions occur
Everything leader unit does, all other squad units copy (Attack, Move, Patrol, etc)
Squad Leader is any unit that you click on at any given time. Changing lead is dynamic and instant.
Joint HP pool works by combining the max hp of all the spawned units.
HP bars of each unit reflects the total HP pool of the whole squad
Each unit in squad shares the same HP pool, and damage is done to the squad as a single entity.
Random unit dies within squad when the squad takes an amount of damage equal the maxHP of a single marine.
Boss bar up top is only to show the HP clearer
Some known issues
Auto attack could probably screw this whole system up
Drag-box selection must be disabled, because it starts dropping units out of the squad
An interesting side effect of the implementation is that I can continue to add units onto the squad post-initial-spawning, by clicking on them (temporarily making them squad leader). So as long as they are of the same unit type of your squad.
Hope you guys like it. Pretty easy and quick to implement yourself. I'll upload map tomorrow after i do some organizing in it.
I tried to make a Total War-esque square formation. The squad has a leader that is selected when any clicking on any of the squad members. The squad gets in formation every time a move or a stop order is issued. When one of the members die, the next one takes his place when the next order is issued. If the leader dies the one next to him become the leader.
I something like this in Warcraft3. Give me a few hours.
After several hours I came up with the basic program. I'll tweak it up over the next several hours. Attached is what I have so far.
Click on a marine and type "form" to form a group of up to 32 nearby marines. The "Leader" Marine should enlarge to 125% of his size. You can have up to 24 different groups (maximum of 32 units each). Type "disband" while selecting the leader to disband the group.
I'll make it so that the leader dies last later on.
Onisagi, how did you get the "Point" that the move command was targeted at? The only current workaround is using a dummy unit to take the place of the leader, while the Leader is is instantly moved to its ordered location and hidden from view until the dummy unit arrives via the follow command.
I figured that out. Use the Event "Unit Uses Ability" instead of "Unit Receives Order" then set your point variable to the location of the order.
1) Rename this to WGE: Weekly Galaxy Exercise. Will avoid confusions with 2 WTEs :).
2) Are we allowed to do small edits to units in the data editor? Eg, i would like to edit it slightly to have 1 larger selection ring rather than X small ones, and remove the health bars on most of the units (and increase the size on one of them).
Damn. I really like that huge squad of Zealots you got going tFighterPilot!
It reminds me alot of Kingdom Under Fire: Heroes (not the crappy second one that was a pure RPG). I just love that game so much. Good stuff!
EdwardSolomo; I like the fact that the leader is 125% larger then the rest, gives a nice clear visual of who the boss is! It could also be cool to model swap in a WarPig as the boss, that would be like turning it into table top Warhammer(the Leader of the Squad is always a little more distinguishable/special than the rest).
Those 2 together just give me a great idea. Too bad I won't be using them, hehe.