Awesomenauts Wiki
Explore
Main Page
All Pages
Interactive Maps
navigation
Main page
Community portal
Recent changes
Random page
Admin noticeboard
'Nauts
Admiral Swiggins
Ayla
Chucho Krokk
Clunk
Coco Nebulon
Commander Rocket
Deadlift
Derpl Zork
Dizzy
Froggy G
Genji the Pollen Prophet
Gnaw
Ix the Interloper
Jimmy And The Lux5000
Ksenia
Leon Chameleon
Max Focus
Nibbs
Penny Fox
Professor Milton Yoolip
Qi'Tara
Raelynn
Rocco
Scoop of Justice
Sentry X-58
Sheriff Lonestar
Skølldir
Skree
Smiles
Snork Gunk
Ted McPain
Vinnie & Spike
Voltar the Omniscient
Yuri
PS3/XBOX 360 'Nauts
Clunk
Coco Nebulon
Derpl Zork
Froggy G
Leon Chameleon
Sheriff Lonestar
Voltar the Omniscient
Yuri
Patch notes
PC/Mac/Linux
Gamepedia
Gamepedia support
Report a bad ad
Help Wiki
Contact us
FANDOM
Fan Central
BETA
Games
Anime
Movies
TV
Video
Wikis
Explore Wikis
Community Central
Start a Wiki
Don't have an account?
Register
Sign In
Sign In
Register
Awesomenauts Wiki
1,783
pages
Explore
Main Page
All Pages
Interactive Maps
navigation
Main page
Community portal
Recent changes
Random page
Admin noticeboard
'Nauts
Admiral Swiggins
Ayla
Chucho Krokk
Clunk
Coco Nebulon
Commander Rocket
Deadlift
Derpl Zork
Dizzy
Froggy G
Genji the Pollen Prophet
Gnaw
Ix the Interloper
Jimmy And The Lux5000
Ksenia
Leon Chameleon
Max Focus
Nibbs
Penny Fox
Professor Milton Yoolip
Qi'Tara
Raelynn
Rocco
Scoop of Justice
Sentry X-58
Sheriff Lonestar
Skølldir
Skree
Smiles
Snork Gunk
Ted McPain
Vinnie & Spike
Voltar the Omniscient
Yuri
PS3/XBOX 360 'Nauts
Clunk
Coco Nebulon
Derpl Zork
Froggy G
Leon Chameleon
Sheriff Lonestar
Voltar the Omniscient
Yuri
Patch notes
PC/Mac/Linux
Gamepedia
Gamepedia support
Report a bad ad
Help Wiki
Contact us
Editing
AI Modding - Tips and tricks
(section)
Back to page
Edit
VisualEditor
View history
Talk (0)
Edit Page
AI Modding - Tips and tricks
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== Things Every AI Needs == === Class Behaviour Trees === In-game AI's use behaviour trees named after their classes. These add functionality to the bots that would be expected in-game, such as health upgrades. Without a class behaviour tree, an AI will not function properly in-game. In order to load a class behaviour tree, add an [[AI_Editor#executeBehaviorTree|executeBehaviourTree]] block with "[http://www.awesomenauts.com/forum/viewtopic.php?f=23&t=30440 their class]" as the argument to fileName. === GeneralAI === Every AI needs a behavior tree called a GeneralAI. GeneralAI's are shared logic that finds it's way into every bot. It handles things such as finding where to go, pushing, and chasing. Without a GeneralAI, your AI will do nothing. There are many different GeneralAI's used in AI's. This is because bot makers like to modify GeneralAI with their own tweaks. However, it is generally accepted that a bot should use VeankoAI, or some derivative of it. To use VeankoAI, add an [[AI_Editor#executeBehaviorTree|executeBehaviourTree]] block with "VeankoAI" as the argument to fileName. === Movement Logic === AI's intended for the game need to be able to move. Movement logic is something you need to create yourself. While many AI's have some extra features in their movement logic, every one follows the same general formula. First, you need to create a MoveAwayFromTarget block, which tells bots how to move away from their targets. Secondly, you need a MoveTowardsTarget block, which tells bots how to move towards their targets. Finally, AI's need a "Handle Movement" block, which describes how to actually move. To learn how to use these, it is best to look at AI's in your "ExampleAIs" folder. Movement logic also uses a few bools to dictate how bots should move every tick. These are then interpreted by movement logic to translate into actual movement. Most of them are reset to "no" after every tick. * MoveAwayFromTarget - Interpreted by the MoveAwayFromTarget block, which sets bools for moving away from a selected target. * MoveTowardsTarget - Interpreted by the MoveTowardsTarget block, which sets bools for moving towards a selected target. * float - Typically not necessary, but used by some AI's in more advanced logic. This tells AI's to float in air by jumping multiple times. * CantMove - Tells bots not to move. This is not reset every tick. * DontMove - Tells bots not to move, but still allows jumping. * DownJump - Jump under a platform. * jump * GoBack * GoForward * GoDown * GoUp === Skill Logic === To create a skill logic, first think about what kind of skills your character has. Then think about what situations you use them, and how. Skills are used with the mouse. To make the bot use a skill you have to use [[AI_Editor#pressButton|pressButton]], and the arguments we're going to need are: * FACE_LEFT (left click) * FACE_RIGHT (right click) * FACE_TOP (middle click) The durations of these button presses are typically 0.1, but could be anything, depending on how long you want the bot to hold down the button. Here's how a simple skill-logic could look: [[File:SimpleSkillLogic.png]] When using VeankoAI, it is a good idea to use a [[AI_Editor#getBoolEquals|getBoolEquals]] block, as shown in the picture. This does, so when the bot is on lower difficulties, it will only use skills after a specific amount of times, to make it easier. Then we use [[AI_Editor#hasTarget|hasTarget]] to check whether we have a target or not. If we do, aim at him. If target is close enough, the AI will proceed to press the left mouse button.
Summary:
Please note that all contributions to the Awesomenauts Wiki are considered to be released under the CC BY-SA 3.0
Cancel
Editing help
(opens in new window)
Follow on IG
TikTok
Join Fan Lab