Omni-bot WikiMain Page | About | Help | FAQ | Special pages | Log in

Categories: ET | Doom 3 | Quake 4 | RTCW
Printable version | Disclaimers | Privacy policy

Omni-bot Script Goals

From Omni-bot Wiki

Main Page Omni-bot Script Goals

Contents

Script Goals

Script goals are a feature of 0.7 and so are not yet available in the latest public release.

Intro

New to Omni-bot 0.7, scripted goals have gotten a complete makeover, along with the internal goal system.

Several large changes are the result of this new system

Script Goals

Script goals are located in the scripts/goals folder of the Omni-bot installation folder, under the relevant game. For example, for Enemy Territory it is et/scripts/goals. They can alternatively be placed in global_scripts/goals where they will be loaded in any game.

All script goals must have a prefix of goal_ in the filename. This prefix is what the bot uses to load all script goals that exist in that folder.

During the initialization of the bot, all files in the global_scripts/goals and scripts/goals folder starting with goal_ will be loaded once to create a template for a goal. When a bot is added to the game, all script goals that were previously loaded are cloned and added to the bots behavior tree, which can be seen in its entirety in the Debug Window.

When the goal_* scripts are run, the value of this in the scripts is the script goal object itself, and it is up to the script to define the necessary functions for the goal.

Anyone familiar with Finite State Machines (FSM), will recognize the very state machine like setup of script goals.

Script Goal Functions

Script Goal Functions are documented in the ScriptGoal script reference page.

Game Specific Script Goals

Certain games may come with script goals already implemented. They implement additional functionality for the game they were written for. They may also be used as reference for writing your own.

Retrieved from "http://www.omni-bot.com/wiki/index.php?title=Omni-bot_Script_Goals"

This page has been accessed 1,454 times. This page was last modified 15:46, 3 October 2008.


Find

Browse
Main Page
Community portal
Current events
Recent changes
Random page
Help
Donations
Most Recent Blogs
Edit
View source
Editing help
This page
Discuss this page
Post a comment
Printable version
Context
Page history
What links here
Related changes
My pages
Log in / create account
Special pages
New pages
File list
Statistics
Bug reports
More...