Senior Member
Join Date: Nov 2012
Posts: 208
|
I have weapons defined like this:
<thing id="wpUnarm" name="Unarmed Strike" description=" " compset="Melee" holdable="no"> <tag group="WepDamage" tag="1"/> <tag group="WepCat" tag="wcSimple"/> <tag group="WepProp" tag="Bludg"/> <tag group="WepProp" tag="OffHand"/> </thing> and an Armory list like this: <portal id="arMelee" style="tblNormal"> <table_dynamic component="Gear" showtemplate="arWpnPick" choosetemplate="arWpnThing" buytemplate="BuySizCash" selltemplate="SellCash"> <list><![CDATA[ component.WeapMelee & !Hide.Weapon ]]></list> <candidate inheritlist="yes"><![CDATA[ !Equipment.Natural & !component.MagicStaff & !User.HexbladeWp &!Helper.FeatHack ]]></candidate> <description/> <headertitle><![CDATA[ @text = "Melee Weapons" ]]></headertitle> <additem><![CDATA[ @text = "Add New Melee Weapons" ]]></additem> </table_dynamic> </portal> Now I want to make the display of some of the weapons based on if a specific Hero Tag is present (like Hero.IsSpecial). How can I do this? I tried using <containerreq phase="Initialize" priority="10">Hero.IsSpecial</containerreq> in the weapon definition, but the effect I got was that - in this example the tag Hero.IsSpecial was present only if a special class (which is part of houserules) was at least of level 10 - when I leveled up the character to level 10 the weapon still was not there. Only when I leveled some more - or saved the character and reloaded - the weapon appeared. What am I doing wrong? Or is there a better way to do this? Thanks in advance. Best regards, MagicSN |
#1 |
|
|