1 / 3
A screenshot from Carnage's respawn system. When the player purchased a unit, it would show up as a part of a larger wave every 60 seconds. This script would take the amount of units they wanted and then spawn them when that time came.
2 / 3
This is from the damage script, specifically the job system designed for ranged damage. If the entity was in range to attack, and was ready to attack, then it would begin to fire and spawn the projectiles. The projectiles would hit and then compare against the set resistance chart before dealing their damage.
3 / 3
We had a spell system with each unique hero the player could select, and this is an example from Fermund, a human side hero that was built around healing and supporting his soldiers. This particular ability enabled the player to call down a rally flag, which would heal nearby friendly units.
❮
❯