Warl0ck45
Well-known member
- Joined
- Jan 31, 2014
- RedCents
- 8,554¢
I have been wanting to revamp my message system somewhat so instead of having 6-10 lines each place there is an announcement and making 1 for BC and one for non BC, I came up with a sub routine. After a few incarnation, and deciding I wanted to be flexible enough to colorize as needed at the call side, I came up with
which is clunky. Obviously have not had time to really test it yet, but thought while we were waiting I would toss this up here and see if someone has a more elegant way of doing this.
it ought to work like:
/call AnnounceMessage "${ChatChannel}" 3 r "no openings in" y "${TwistType} Twist list." r "Song NOT added"
no opening in Combat Twist list. Song NOT added
/if (${ReportFM}) /call AnnounceMessage "${ChatChannel}" 3 g "Mana at" t "${Me.PctMana" "GTG boss!"
Mana at 100 GTG boss!
/call AnnounceMessage "${ChatChannel}" 3 y "I don't have enough free space for this mod-rod" w "(or I'm not a caster)" r "so I'm destroying it."
I don't have enough free space for this mod-rod (or I'm not a caster) so I'm destroying it.
/call AnnounceMessage "${ChatChannel}" 1 y "Frantic Heal NOW!"
Frantic Heal NOW!
/if (${ReportHeals}) /call AnnounceMessage "${HealChannel}" 4 y "ACK!" t "${FranticHeal}" r "IS NOT CAST" y "because it is not ready!"
ACK! Fifteenth Emblem IS NOT CAST because it is not ready!
which would obviously look better with a black background... was something to do for a bit =P
- - - Updated - - -
And yeah! once I fixed the event/color order, worked out just fine. Now I can better color code messages in the future =)
Rich (BB code):
Sub AnnounceMessage(Channel, EventTotal, Color1, Event1, Color2, Event2, Color3, Event3, Color4, Event4, Color5, Event5,)
/if (${Channel.Equal[BC]} && ${EventTotal.Equal[1]}) /BC [+${Color1}+] ${Event1}
/if (${Channel.Equal[BC]} && ${EventTotal.Equal[2]}) /BC [+${Color1}+] ${Event1} [+${Color2}+] ${Event2}
/if (${Channel.Equal[BC]} && ${EventTotal.Equal[3]}) /BC [+${Color1}+] ${Event1} [+${Color2}+] ${Event2} [+${Color3}+] ${Event3}
/if (${Channel.Equal[BC]} && ${EventTotal.Equal[4]}) /BC [+${Color1}+] ${Event1} [+${Color2}+] ${Event2} [+${Color3}+] ${Event3} [+${Color4}+] ${Event4}
/if (${Channel.Equal[BC]} && ${EventTotal.Equal[5]}) /BC [+${Color1}+] ${Event1} [+${Color2}+] ${Event2} [+${Color3}+] ${Event3} [+${Color4}+] ${Event4} ${Event5}
/if (${Channel.NotEqual[BC]} && ${EventTotal.Equal[1]}) /${Channel} ${Event1}
/if (${Channel.NotEqual[BC]} && ${EventTotal.Equal[2]}) /${Channel} ${Event1} ${Event2}
/if (${Channel.NotEqual[BC]} && ${EventTotal.Equal[3]}) /${Channel} ${Event1} ${Event2} ${Event3}
/if (${Channel.NotEqual[BC]} && ${EventTotal.Equal[4]}) /${Channel} ${Event1} ${Event2} ${Event3} ${Event4}
/if (${Channel.NotEqual[BC]} && ${EventTotal.Equal[5]}) /${Channel} ${Event1} ${Event2} ${Event3} ${Event4} ${Event5}
/return
which is clunky. Obviously have not had time to really test it yet, but thought while we were waiting I would toss this up here and see if someone has a more elegant way of doing this.
it ought to work like:
/call AnnounceMessage "${ChatChannel}" 3 r "no openings in" y "${TwistType} Twist list." r "Song NOT added"
no opening in Combat Twist list. Song NOT added
/if (${ReportFM}) /call AnnounceMessage "${ChatChannel}" 3 g "Mana at" t "${Me.PctMana" "GTG boss!"
Mana at 100 GTG boss!
/call AnnounceMessage "${ChatChannel}" 3 y "I don't have enough free space for this mod-rod" w "(or I'm not a caster)" r "so I'm destroying it."
I don't have enough free space for this mod-rod (or I'm not a caster) so I'm destroying it.
/call AnnounceMessage "${ChatChannel}" 1 y "Frantic Heal NOW!"
Frantic Heal NOW!
/if (${ReportHeals}) /call AnnounceMessage "${HealChannel}" 4 y "ACK!" t "${FranticHeal}" r "IS NOT CAST" y "because it is not ready!"
ACK! Fifteenth Emblem IS NOT CAST because it is not ready!
which would obviously look better with a black background... was something to do for a bit =P
- - - Updated - - -
And yeah! once I fixed the event/color order, worked out just fine. Now I can better color code messages in the future =)
Last edited:

