Baiprog: Difference between revisions

Torphedo (talk | contribs)
Create baiprog page
Torphedo (talk | contribs)
m Clearer wording (?)
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 the AI section (or any other section). 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 19, its index would be 160 (140 + 19 + 1 because counting starts at [AI/Action/etc.]_0).


=Parameter Objects=
=Parameter Objects=