XML:BINA/OBJC/NEUT: Difference between revisions
Jump to navigation
Jump to search
Paradox-01 (talk | contribs) mNo edit summary |
Paradox-01 (talk | contribs) mNo edit summary |
||
Line 9: | Line 9: | ||
'''XML structure''' | '''XML structure''' | ||
<?xml version="1.0" encoding="utf-8"?> | <?xml version="1.0" encoding="utf-8"?> | ||
<Oni | <Oni> | ||
< | <Objects> | ||
'''''[...]''''' | '''''[...]''''' | ||
</ | </Objects> | ||
</Oni> | |||
'''''[...]''''' means at least one neutral behavior block. Paste all a patrol data into there (this includes < | '''''[...]''''' means at least one neutral behavior block. Paste all a patrol data into there (this includes <NEUT Id="..."> and </NEUT> tag). | ||
'''example''' | '''example''' | ||
< | <NEUT Id="1853"> | ||
<Header> | <Header> | ||
<Flags> | <Flags></Flags> | ||
<Position>146.41217 -48.8205528 1027.55249</Position> | <Position>146.41217 -48.8205528 1027.55249</Position> | ||
<Rotation>0 0 0</Rotation> | <Rotation>0 0 0</Rotation> | ||
Line 48: | Line 49: | ||
<EnergyCell>0</EnergyCell> | <EnergyCell>0</EnergyCell> | ||
<Hypo>0</Hypo> | <Hypo>0</Hypo> | ||
<Other> | <Other></Other> | ||
</Rewards> | </Rewards> | ||
<DialogLines> | <DialogLines> | ||
Line 65: | Line 66: | ||
</DialogLines> | </DialogLines> | ||
</OSD> | </OSD> | ||
</ | </NEUT> | ||
Revision as of 14:16, 9 September 2011
neutral behavior
general information
- BINACJBONeutral.oni is level specific. (It can be found in edition/GameDataFolder/levelXX_... )
XML structure
<?xml version="1.0" encoding="utf-8"?> <Oni> <Objects>
[...] </Objects>
</Oni>
[...] means at least one neutral behavior block. Paste all a patrol data into there (this includes <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>
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> |
| |
<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:
|
<Abort> |
for example:
| |
<Enemy> | You will be notified about enemies by the person you are talking to. |
for exampel:
|
<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 |
|
<DialogLines> | ||
<DialogLine> | ||
<Flags> |
| |
<Anim> |
| |
<OtherAnim> | ||
<SpeechName> |
for example:
|