Baiprog: Difference between revisions

Jump to navigation Jump to search
m (Better wording in intro)
m (Forgot 0 was a number again...)
 
Line 6: Line 6:


==Indexes==
==Indexes==
Everything in an AIProgram's parameter list is addressed by an index. This includes AIs, Actions, Behaviors, and Queries. Imagine every AI, Action, Behaviour, and Query as objects in an array. Counting starts at 0, and doesn't reset at the end of any section. For example, if there are 140 AIs and you wanted to reference Action 19, its index would be 160 (140 + 19 + 1 because counting starts at [AI/Action/etc.]_0).
Everything in an AIProgram's parameter list is addressed by an index. This includes AIs, Actions, Behaviors, and Queries. Imagine every AI, Action, Behaviour, and Query as objects in an array. Counting starts at 0, and doesn't reset at the end of any section. For example, if there are 140 AIs and you wanted to reference Action 20, its index would be 160 (140 + 20).


=Parameter Objects=
=Parameter Objects=