Put down a flag capture zone, and two counters.
Each counter should be team-scoped, start at 0, and track a property.
The first counter will be for “echo”, and the second will be for “vortex”. The property names should be something like “EchoScore” or “VortexScore”. Next, place down an end-of-game widget which should be active on game start and global.
Place down a triggerloop and wire that system to another trigger. Create a property called “Winner” that is text-based. Now create block code for the trigger:
When triggered…
if get property (EchoScore) > get property (VortexScore) then
set property Winner
value Create Text with "Echo won the game with this many points: "
get property EchoScore
else
set property Winner
value Create Text with "Vortex won the game with this many points"
get property VortexScore
And now set the end-of-game widget to be featured and show the property “Winner”.
Sorry, this is probably really confusing because I can’t take screenshots of the game right now, feel free to ask more questions if you need to.