Tags and team tags

From Gladiabots Wiki
Revision as of 05:04, 8 September 2017 by Kanishka RN3 (Talk | contribs)

Jump to: navigation, search

Basics

Tags are single-character marks placed on objects on the Gladiabots Arena, such as:

  • Myself
  • Allies
  • Enemies
  • Allied bases
  • Enemy bases
  • Resources

Tags

From left to right: Exclusive Team Tag "A", Add Team Tag "A", Exclusive Tag "1" and Add Tag "1"

Tags (previously known as Bot Tags) exist as numerals, the numbers 1 through 5. They can be detected only by the bot which placed the Tag.

Team Tags

Team Tags exist as alphabets, the letters A through E. They can be detected by all bots which are in the same team as the bot which placed the Team Tag.

Bot action: Tag

The bot action Tag (also known as exclusive tagging) is an action that removes all other instances of the same Tag, and Tags the new target, all in one tick. If there is currently a resource, a base and a bot Team Tagged "A" and a bot is Team Tagging itself "A" all the other "A" marks get removed.

Bot action: Add Tag

The bot action Add Tag is an action that Tags the new target and keeps other instances of the same Tag like they were before. If there is currently a resource, a base and a bot Team Tagged "B" and a bot uses Add Team Tag "A" to itself all the other "A" marks are still there.

Programming Tags

Tags take 1 tick to place or to remove. Other bots detect the bot doing the tagging or untagging as idle in the next tick.

Remarks:

  • It is possible to place multiple Tags on the same target, the order does not matter.
  • Tags cost ticks, so it is advisable to try and minimize Tag usage. For example to continuously attack one bot it is preferred to use Action Filters.
  • Tags can be used for focus fire, determining a leader, counting bots, mark resources and timing actions. They can also be used for more complex choreography.
  • 2 bots of the same team trying to exclusive Tag 2 different targets can start off an endless loop.
  • If several bots try to Team Tag or Team Untag in a contradictory way they tag in the order specified in the instantiation order.

Examples using Tags

Map Set your priorities

Tagging the resource in the center can help secure a 3-2 score.

Dance choreography

They can also be used for more complex choreography, such as:

The bots are moving to the allied bot that's tagged with the next letter in series, i.e., A > B > C > D > E > A and they are fleeing from the bot that's tagged with the previous letter in series. They are also fleeing from the allied base to prevent clumping up.