XML:BINA/OBJC/PWRU: Difference between revisions

m
link fix
m (Iritscen moved page OBD talk:BINA/OBJC/PWRU to XML:BINA/OBJC/PWRU without leaving a redirect)
m (link fix)
 
(11 intermediate revisions by 2 users not shown)
Line 1: Line 1:
==[[OBD:BINA/OBJC/PWRU|BINA/OBCJ/PWRU]]: powerups==
{{XML_OBJC_Header | prev=PATR | type=PWRU | next=TRGV | name=PowerUp}}


{{Template:XMLModdingHints}}
==General notes==
{| border=0 cellspacing=20 cellpadding=0 align=center
* The XML on this page is based on OniSplit '''v0.9.61.0'''.
| The xml code on this page is based on onisplit '''v0.9.61.0'''
* BINACJBOPowerUp is level-specific (level''x''_Final.dat).
|}
 
===general notes===
* '''BINACJBOPowerUp.oni''' is level specific. (It can be found in edition/GameDataFolder/level''XX''_... )
* Reminder: there are two ways to spawn powerups.
* Reminder: there are two ways to spawn powerups.
: A) By using original or [[OBD_talk:BINA/OBJC/FLAG|custom teleport flags]] in BSL command "powerup_spawn ''poweruptype:string flag:int''".
: A) By using the original or [[XML:BINA/OBJC/FLAG|custom]] teleport flags via the BSL command "powerup_spawn ''poweruptype:string flag:int''".
: B) And of course by using this powerup collection file.
: B) By using this powerup collection file.
 
===XML structure===


==XML structure==
  <?xml version="1.0" encoding="utf-8"?>
  <?xml version="1.0" encoding="utf-8"?>
  <Oni>
  <Oni>
Line 21: Line 16:
  </Oni>
  </Oni>


'''''[...]''''' means at least one powerup block. Paste all powerup data into there (this includes '''<font color="#0A0"><PWRU Id=""></font>''' and '''<font color="#0A0"></PWRU></font>''' tag).
'''''[...]''''' means at least one powerup block. Paste all your powerup data in there (this includes '''<font color="#0A0"><PWRU Id=""></font>''' and '''<font color="#0A0"></PWRU></font>''' tag).
 
'''Example'''


[[Image:XML_OBJC_PWRU.jpg|thumb|200px]]


'''example'''
{| border=0 cellspacing=20 cellpadding=0 align=right
|
[http://i305.photobucket.com/albums/nn207/unknownfuture/Oni_Galore_Images/XML_modding/powerup.png http://i305.photobucket.com/albums/nn207/unknownfuture/Oni_Galore_Images/XML_modding/powerup_preview.png]
|}
         '''<font color="#0A0"><PWRU Id="8167"></font>'''
         '''<font color="#0A0"><PWRU Id="8167"></font>'''
             <Header>
             <Header>
Line 40: Line 33:
         '''<font color="#0A0"></PWRU></font>'''
         '''<font color="#0A0"></PWRU></font>'''


 
==XML tags and options==
===XML tags and options===
* <Flags>: unknown
 
* <Position>: powerup is spawned at this XYZ position
* <Flags> : (unknown)
* <Rotation>: powerup has this XYZ rotation in degrees usually not used
* <Position> : (powerup is spawned at this xyz-position)
* <Rotation> : (powerup has xyz-rotation (in degrees) -- usually not used)
* <Class>
* <Class>
:: Ammo
:: Ammo
Line 52: Line 43:
:: Invisibility
:: Invisibility
:: Shield
:: Shield
:: [[OBD_talk:IPge|LSI]] (level specific item; truck keys in level 19, etc..)
:: [[LSI]] (level specific item; truck keys in level 19, etc.)
 
==Mod Tool addon==
[[Image:xsi_addon_powerups_manager.jpg|thumb|200px|right|Powerups manager]]
 
With [[Mod_Tool/OniTools_addon|OniTools.xsiaddon]] version 1, you can drag'n'drop BINACJBOPowerUp'''.oni''' into the viewport. Add or remove powerups and edit their position and rotation as if they were real objects. When ready, export the data as BINACJBOPowerUp.xml to a folder of your choice.
 
{{XML}}