Talk:XmlTools: Difference between revisions
Jump to navigation
Jump to search
Paradox-01 (talk | contribs) (Created page with "==ideas== ===section- and condition-based replacements=== A character collection has many characters... But what if I only want to replace a value from the player character? ...") |
No edit summary |
||
Line 39: | Line 39: | ||
Would this be a correct syntax (or whatever coder call this) ? --[[User:Paradox-01|paradox-01]] ([[User talk:Paradox-01|talk]]) 12:36, 24 April 2013 (CEST) | Would this be a correct syntax (or whatever coder call this) ? --[[User:Paradox-01|paradox-01]] ([[User talk:Paradox-01|talk]]) 12:36, 24 April 2013 (CEST) | ||
:Feature requests, like bug reports, are also better placed on bugs.oni2.net ^_^ --[[User:Iritscen|Iritscen]] ([[User talk:Iritscen|talk]]) 13:59, 24 April 2013 (CEST) |
Revision as of 11:59, 24 April 2013
ideas
section- and condition-based replacements
A character collection has many characters...
But what if I only want to replace a value from the player character?
Example:
<CHAR Id="3860"> <Header> <Flags></Flags> <Position>-543.22 159 -630.0954</Position> <Rotation>0 180 0</Rotation> </Header> <OSD> <Flags>IsPlayer NotInitiallyPresent</Flags> <Class>konoko_generic</Class> <Name>konoko</Name> <Weapon>w1_tap</Weapon> <Scripts> <Spawn></Spawn> <Die>you_lose</Die> <Combat></Combat> <Alarm></Alarm> <Hurt></Hurt> <Defeated></Defeated> <OutOfAmmo></OutOfAmmo> <NoPath></NoPath> </Scripts> <AdditionalHealth>0</AdditionalHealth> [...] </CHAR>
@ReplaceValueInSection Section "CHAR" ParentTag "Scripts" Tag "Spawn" ConditionParentTag "OSD" ConditionTag "Flags" ConditionValue "IsPlayer" <xml> <Spawn>load_prone_mode_logic</Spawn> </xml>
Would this be a correct syntax (or whatever coder call this) ? --paradox-01 (talk) 12:36, 24 April 2013 (CEST)