By Bahamut.Raenryong 2011-11-24 22:49:48
There are many, many ways of doing it but one of the easier ones (and the type I favour as I am an advocate of variables) is
1. In the Variables section of your spellcast (before rules and sets but after config), have
<var name="TPEarring">Suppanomimi</var>
~ you could set that to anything in practice. It doesn't matter. What matters is that it is initialised.
2. in your TP set, define one of your earrings (ie the one to swap between Suppa and w/e) as $TPEarring. Literally typed, eg
<neck>Rancor Collar</neck>
<lear>$TPEarring</lear>
<rear>Brutal Earring</rear>
3. In the rules section, have:
<if Advanced='"%EquipSub"=="{yourgrip}"'>
<var cmd="set TPEarring {2handedearring}" />
</if>
<else>
<var cmd="set TPEarring Suppanomimi" />
</else>
Replace my {} brackets. There's a complication if your weapon has a ' in it; let me know if that is the case...
If you use more than one grip for whatever reason, you can extend it as such:
<if Advanced='"%EquipSub"=="{yourgrip}" OR "%EquipSub"=="{anothergrip"'> etc, just keeping within the ''.
Single = probably works just as well as double; I am just used to having to program in other stuff where you need the double in that kind of situation.