XML:BINA/OBJC/NEUT

From OniGalore
< XML:BINA‎ | OBJC
Revision as of 16:57, 21 May 2009 by Paradox-01 (talk | contribs) (Created page with '=neutral behavior= '''general information''' * '''BINACJBONeutral.oni''' is level specific. (It can be found in edition/GameDataFolder/level''XX''_... ) * See [[XML basic tutori...')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

neutral behavior

general information

  • BINACJBONeutral.oni is level specific. (It can be found in edition/GameDataFolder/levelXX_... )
  • See HERE if you don't know how to convert an oni file into XML and vice versa.
  • See HERE if you are searching for more general information such as how to handle object coordinates.


XML structure

<?xml version="1.0" encoding="utf-8"?>
<Oni Version="0.9.30.0">
   <ObjectCollection>
           [...]
   </ObjectCollection>
</Oni>

[...] means at least one neutral behavior block. Paste all a patrol data into there (this includes <Object ...> and </Object> tag).

example

       <Object Id="1853" Type="NEUT">
           <Header>
               <Flags>0</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>0</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>
       </Object>


XML tag description flags (plus description)
<?xml version="1.0" encoding="utf-8"?>
<Oni Version="..."> If onisplit exe is newer then extracted file then file cannot be converted back to *.oni
<ObjectCollection>
<Object Id="1853" Type="NEUT"> Id doesn't matter and NEUT shouldn't become changed so leave them as they are.
<Header>
<Flags>
<Position>
<Rotation>
<OSD>
<Name>
<NeutralId> used by ONCC and BINA/CJBO/MELE
<Flags>
  • None
  • NoResume
  • NoResumeAfterGive
  • Uninterruptible
<Ranges>
<Trigger> second larges range, e.g. 100
<Talk> shortest range, e.g. 40
<Follow> larges range, e.g. 200
<Enemy> third larges range, e.g. 70
<Speech>
<Trigger> The actual talk.

for example:

  • civfem_trigger
  • hey_konoko
  • civmale1_trigger
  • civmale2_trigger
  • civmale3_trigger
<Abort>

for example:

  • civfem_abort
  • see_you_later
  • civmale1_abort
  • civmale2_abort
  • civmale3_abort
<Enemy> You will be notified about enemies by the person you are talking to.

for exampel:

  • civfem_enemy
  • what_the
  • civmale1_enemy
  • civmale2_enemy
  • civmale3_enemy
<Script>
<AfterTalk> BSL function name, e.g. set_objective_3
<Rewards> You can get rewards for saving people. A reward can be a weapon, ammo, cells, hypos, shield, phase cloak, and LSI.
<WeaponClass> any weapon, file name without prefix ONWC and suffix .oni; for exampel "w6_vdg"
<Ammo> number of ammo clips
<EnergyCell> number of energy cells
<Hypo> number of hypo sprays
<Other> combination possible
  • 1 (shield)
  • 2 (phase cloak)
  • 4 (level specific item)
<DialogLines>
<DialogLine>
<Flags>
  • None
  • IsPlayer
  • GiveItems
  • AnimOnce
  • OtherAnimOnce
<Anim>
  • 0 (None)
  • 200 (Act_No)
  • 201 (Act_Yes)
  • 202 (Act_Talk)
  • 203 (Act_Shrug)
  • 204 (Act_Shout)
<OtherAnim>
<SpeechName>

for example:

  • talking
  • civfem_gift_weapon
  • civfem_gift_hypo
  • civfem_gift_force_field
  • civmale1_gift_weaponS
  • civmale2_gift_weapon
  • civmale1_gift_ammo
  • civmale2_gift_ammo
  • civmale3_gift_ammo
  • civmale1_gift_hypoS
  • civmale2_gift_hypo
  • civmale3_gift_hypo
  • civmale1_gift_force_field
  • civmale2_gift_force_field
  • civmale3_gift_force_field
  • c03_12_06civ1
  • c03_12_07civ1
  • c03_12_08tctffag1
  • c03_12_09tctffag2