A mess

October 13, 2008 01:46PM
Alright, I had this script from long time ago. Got it off the boards. Used it with my bard. I did a copy/paste job into the class script of a new folder for a different class (different affects, obviously). I want it to work, but it keeps creating a looping trigger and I can't seem to fix it. Please help. Just trying to make an affects checker:


#CLASS {General - Bard Affects}
#CLASS 0
#CLASS {General - Bard Affects|Affects}
#VAR DesiredAffects {Song: 'anthem of resistance'|Song: 'canticle of the gods'|Song: 'charismatic prelude'|Spell: 'detect invis'|Song: 'battaglia'|Song: 'chant of resilience'|Song: 'bagatelle of bravado'}
#VAR MissingAffects {Song: 'anthem of resistance'|Song: 'canticle of the gods'|Song: 'charismatic prelude'|Spell: 'detect invis'|Song: 'battaglia'|Song: 'chant of resilience'|Song: 'bagatelle of bravado'}
#TRIGGER {You are affected by:} {
#T+ AffChecker
#VAR MissingAffects @DesiredAffects
} "" {disable}
#CLASS 0
#CLASS {General - Bard Affects|Affects|Affchecker}
#TRIGGER {^$} {
#T- AffChecker
#SA You are missing:
#FO @MissingAffects {#SA %i}
#SA
} "" {disable}
#TRIGGER {^Song: 'charismatic prelude'} {#DELI MissingAffects "Song: 'charismatic prelude'"} "" {disable}
#TRIGGER {^Song: 'canticle of the gods'} {#DELI MissingAffects "Song: 'canticle of the gods'"} "" {disable}
#TRIGGER {^Song: 'chant of resilience'} {#DELI MissingAffects "Song: 'chant of resilience'"} "" {disable}
#TRIGGER {^Spell: 'detect invis'} {#DELI MissingAffects "Spell: 'detect invis'"} "" {disable}
#TRIGGER {^Song: 'battaglia'} {#DELI MissingAffects "Song: 'battaglia'"} "" {disable}
#TRIGGER {^Song: 'anthem of resistance'} {#DELI MissingAffects "Song: 'anthem of resistance'"} "" {disable}
#TRIGGER {^Song: 'bagatelle of bravado'} {#DELI MissingAffects "Song: 'bagatelle of bravado'"} "" {disable}
#CLASS 0
Subject Author Posted

A mess

The Baron October 13, 2008 01:46PM

Haven't tested it, but here's a possible solution

Dave October 31, 2008 12:57PM

I thought ^$ was regular expression for matching blank lines

Inquisitor October 30, 2008 09:31PM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 141
Record Number of Users: 1 April 26, 2024
Record Number of Guests: 161 April 28, 2024