Jump to content

Affects Highlights


Magick

Recommended Posts

XML for an affects color trigger.  Easy to expand.  The down side is only single word affects work and custom affects won't.
IE only the highlighted affect will trigger:
Affects:
  -   -   -  20  21   3   -   -   -   -  38  
 KAI DMS SHA BS  BF  BT  BLA IRN KYO DW  VOW 
Spell: mounted        : for 123 hours
Spell: pass door      : for 3 hours

<trigger priority="7830" id="2259">
  <pattern>Spell: (%w)*~:*for %d hours</pattern>
  <value>$SPELL=%1
#SWITCH ($SPELL)
 ("curse") {#CW lawngreen}
 ("stance") {#CW bright,white}
 ("lifeforce") {#CW bright,white}
 ("sanctuary") {#CW bright,white}
 ("blindness") {#CW lightslategray}
 ("protection") {#CW palevioletred}
 ("blasphemy") {#CW mediumspringgreen}</value>
</trigger>

I did do one for hyphenated or two-word affects, though.  Still easily expandable:

<trigger priority="7830" id="2265">
  <pattern>Spell: (%w)(?)(%w)*~:*for %d hours</pattern>
  <value>$SPELL = %1
#ADD $SPELL %2
#ADD $SPELL %3
#SWITCH ($SPELL)
 ("holy vengeance") {#CW grey}
 ("combat stance") {#CW bright,white}
 ("challenge-effect") {#CW pink}</value>
</trigger>
 

This should cover 95% of spells in FL.  To cover the three-or-more word spells (shield of thorns), it shouldn't be difficult expanding the two-word trigger.

 

Again, one might be able to consolidate the two, but this works.

Link to comment
Share on other sites

×
×
  • Create New...