Jump to content

Problem adding a new Action to an item in A19


JymBoe

Recommended Posts

I'm having a problem with the following code, the code editor shows no error but I get a bad character error "<" on the second line.

 

<append xpath="/items/item[@name='meleeToolRepairT0TazasStoneAxe']>
        <actions name="Action1"> <!-- UseAction -->
                <property name="Class" value="Repair"/>
                <property name="Delay" value=".64"/> <!-- Repair actions still need the delay amount -->
                <property name="Repair_amount" value="800"/>
                <property name="Upgrade_hit_offset" value="-1"/>
                <property name="Sound_start" value="repair_block"/>
                <property name="Allowed_upgrade_items" value="resourceWood,resourceClayLump,resourceSnowBall,resourceScrapIron,resourceForgedIron,resourceForgedSteel,resourceConcreteMix,resourceCobblestones,ironDoor1_v1,vaultDoor01,scrapHatch_v1,vaultHatch_v1,resourceYuccaFibers,resourceCloth,resourceScrapPolymers"/>
                <property name="UsePowerAttackAnimation" value="false"/>
        </actions>
 
What's wrong here?

 

Link to comment
Share on other sites

There is a syntax error in the opening line of your append tag. It's missing the ending quotation mark.

The correct line would look like this:

<append xpath="/items/item[@name='meleeToolRepairT0TazasStoneAxe']">

 

Also, I do believe that you're correctly closing the append tag and it's just not present in the code example that you provided here in your post.

 

As a side note, please use Discussion and Requests sub-category for topics like this one. This is Tutorials & Guides which is for topics that are created for teaching purposes.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...