How Real subtrees work?
Real Subtrees are a special node that links off to another AI and executes the contents lf that AI as long as it contains valid options. Usual priorities apply (left to right) in and out of the subroutine.how to tag entities.(bots,resources, bases.)
" can only be seen by that bot.
" are shared amongst all team members.
" action removes any other instance of the respective tag from all object types and then applies it to the target(s). I always use this unless I want the possibility of duplicates on purpose.
If two ally bots both tag something with [A], there may be two [A]s. If they both ExclusiveTag, there will be only one, which ever tagged second (since it removed the first).
Enemies, allies, resources and bases are all tagged in the same way. If a tagged resource is picked up, it will retain its tags when it is dropped, unless they are removed manually.IMPORTANT NOTE ON TAGGING
Applying or removing a tag(s) as an action costs one tick of thinking for the bot. So make sure your bots don't spend too long thinking and not enough time doing.how to create focus fire
For this, we'll make a simple AI. There's a video of this below if you can't be bother with reading or pictures.
1. Tag something.
The first node is made just like the above picture, but I used "ExclusiveTeamTagA" so that the whole team can see the tag.
2. Shoot the tag.
Tags should be used as filters in actions, and you'll find them at the bottom of the filters list. Again, this is TeamTagA.
3. Move towards the tag.
Because the GFX god's given us legs... Or hover blades at least.
4. Finished AI
All I've added is a condition that says "If no TeamTaggedA enemy exists" before tagging to be safe and a subroutine I use on all my boys to cleanup the resources after all enemies have been destroyed. It will be executed if it contains any valid action node and tested just like any other AI.Here is a quick video
showing some use of tags (to focus fire) and a subroutine (to do something that every bot should do).
[youtube]V4waCfCn1E4[/youtube]how to create anything useful from tagging system.
This is more complex, but this was my first iteration of a "Rescue" subroutine, to be added near the start of an AI.
On the left side, the bot tags itself and its nearest enemy with [E] if it needs help. If the bot is alone in a 1v1 and can win the fight, the subroutine "Duels Mk II" will be valid, so the "Rescue" subroutine will not be valid, and no one will get tagged.
On the right side, this bot will run to the aid of anyone who has tagged themselves or a nearby enemy with [E].
These [E] tags will be removed when an ally is here to help, so none should be left hanging if rescue arrived. If not, an [E] is left on the enemy... Because revenge. MUHAHAHAH!
EDITs: My grammar sucks arse.