Talk:XmlTools
Jump to navigation
Jump to search
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)
- Feature requests, like bug reports, are also better placed on bugs.oni2.net ^_^ It's a better system for tracking and discussing ideas, and Script will get emails for new requests that are filed. --Iritscen (talk) 13:59, 24 April 2013 (CEST)
- What are the ticket's settings to make sure Script gets an e-mail?? --paradox-01 (talk) 15:06, 24 April 2013 (CEST)