XML:BINA/OBJC/NEUT
NEUT : Neutral | ||
---|---|---|
XML
AKEV << Other file types >> CONS TMBD << Other BINA >> ONIE MELE << Other OBJC >> PART |
General information
- The XML on this page is based on OniSplit v0.9.61.0.
- BINACJBONeutral is level-specific (levelx_Final.dat).
- Press the action key to talk with a character (if possible). The interaction depends on what ID that character has.
File structure
<?xml version="1.0" encoding="utf-8"?> <Oni> <Objects> [...] </Objects> </Oni>
[...] means at least one neutral behavior block. Paste all your behavior data into there (this includes the <NEUT Id="..."> and </NEUT> tag).
Example
<NEUT Id="1853"> <Header> <Flags></Flags> <Position>146.41217 -48.8205528 1027.55249</Position> <Rotation>0 0 0</Rotation> </Header> <OSD> <Name>Give VDG Pistol (CivFem)</Name> <NeutralId>2</NeutralId> <Flags>NoResumeAfterGive</Flags> <Ranges> <Trigger>100</Trigger> <Talk>40</Talk> <Follow>200</Follow> <Enemy>70</Enemy> </Ranges> <Speech> <Trigger>civfem_trigger</Trigger> <Abort>civfem_abort</Abort> <Enemy>civfem_enemy</Enemy> </Speech> <Script> <AfterTalk></AfterTalk> </Script> <Rewards> <WeaponClass>w6_vdg</WeaponClass> <Ammo>0</Ammo> <EnergyCell>0</EnergyCell> <Hypo>0</Hypo> <Other></Other> </Rewards> <DialogLines> <DialogLine> <Flags></Flags> <Anim>0</Anim> <OtherAnim>0</OtherAnim> <SpeechName>civfem_gift_weapon</SpeechName> </DialogLine> <DialogLine> <Flags>GiveItems</Flags> <Anim>202</Anim> <OtherAnim>0</OtherAnim> <SpeechName></SpeechName> </DialogLine> </DialogLines> </OSD> </NEUT>
Tags
XML tag | Content type | Description |
---|---|---|
<ObjectCollection> | - | |
<NEUT Id="1853"> | integer | The ID here doesn't matter. |
<Header> | - | |
<Flags> | flag |
|
<Position> | float x3 | XYZ position, unused |
<Rotation> | float x3 | XYZ rotation, unused |
<OSD> | - | |
<Name> | char[32] | The name of the NEUT profile. Used by BSL command ai2_neutralbehavior. |
<NeutralId> | integer | Used by BINA/OBJC/CHAR and BINA/OBJC/MELE. |
<Flags> | flag |
|
<Ranges> | - | |
<Trigger> | float | The distance between the AI and the player character when the NEUT behavior mechanics kick in. |
<Talk> | float |
A threshold distance for approaching the player character:
|
<Follow> | float |
An "allowed travel" distance for the NEUT-driven AI, starting from the moment the player entered the <Trigger> range (see above). The NEUT-driven AI is allowed to travel only this far from its pre-trigger location before it gives up on chasing the player character. When the <Follow> distance is expended, the NEUT behavior for the given character is terminated and control over the character is handed to some other AI2 system (for example the Patrol Path system). Of course if the player again enters the <Trigger> range, the NEUT mechanics kick in again (with a reset <Follow> distance to expend). |
<Enemy> | float |
The range within which the NEUT-driven AI will react to the presence of enemies (even those behind its back!). Who is considered an "enemy" is defined according to Oni's team affiliations.
The further reaction of the NEUT-driven AI to the enemy depends on their CHAR settings — it can start cowering in fear (NonCombatant flag is set) or go attack the enemy (default setup). |
<Speech> | - | |
<Trigger> | char[32] | Speech sound for hailing the player. If "distance to player" <= "Talk range" then the NEUT-driven AI stands still, rotates in order to keep looking at the player, and keeps repeating the Hail anim type and playing the speech sound specified in this <Trigger> tag at a 5 second interval.
OSBDfile.amb.oni (without file pre-/suffix) Examples of such OSBD .amb files:
|
<Abort> | char[32] | Speech sound for when player interrupts the conversation. This sound is played when the player aborts the conversation by performing some offensive action such as a punch/kick or by breaking away in the middle of the conversation with a movement.
OSBDfile.amb.oni (without file pre-/suffix) Examples of such OSBD .amb files:
|
<Enemy> | char[32] | Speech sound to play when conversation is interrupted due to an enemy entering the <Enemy> range.
OSBDfile.amb.oni (without file pre-/suffix) Examples of such OSBD .amb files:
|
<Script> | - | |
<AfterTalk> | char[32] | A name of a BSL function. The function will will be executed after the conversation is finished. The function in BSL can have an optional parameter of type string which receives the name of the NEUT-driven AI. |
<Rewards> | - | You can get rewards for saving people. A reward can be a weapon, ballistic ammo, energy cells, hypos, a shield, a phase cloak, or an LSI. |
<WeaponClass> | char[32] | Any weapon. Filename without prefix ONWC and suffix .oni, for example "w6_vdg". |
<Ammo> | integer | Number of ammo clips. |
<EnergyCell> | integer | Number of energy cells. |
<Hypo> | integer | Number of hypo sprays. |
<Other> | flag | These flags can be combined:
|
<DialogLines> | - | |
<DialogLine> | - | There can be multiple dialogue lines. |
<Flags> | flag | These flag can be combined:
|
<Anim> | integer | The anim type ID of the TRAM applied to the NEUT-driven AI during this dialogue line. Any TRAM which has the anim state "Standing" and is present in a NEUT-driven AI's TRAC should be valid.
|
<OtherAnim> | integer | Anim type ID of the TRAM applied to the player character during this dialogue line. Any TRAM which has the anim state "Standing" and is present in the player character's TRAC should be valid. |
<SpeechName> | char[32] | The actual sound played during the dialogue line. The length of this sound file determines the length of the dialogue line's effect in-game.
OSBDfile.amb.oni (without file pre-/suffix) For example:
|