
Originally Posted by
Magi
I copy and pasted exactly what you wrote out Nishida but nothing happened, I tried changing some things around as best I could but I got nothing to work. I checked to see if addtochat worked for me at all and it does, 204 is a dark green, but timestamp actually does show up for me on the same line when it prints to the screen. Not really sure what I'm doing wrong D:
Code:
<if Spell="Haste">
<action type="AfterCastDelay" Delay="175" />
<command>spellcast var inc hasteid</command>
<action type="addtochat" color="204" when="aftercast">[$hasteid:%spell] <%SpellTarget> Wearing off in 5s</action>
</if>
Try this? if I were able to test this in game + saw your full XML I'd be able to test this myself @_@;
If that doesn't work you can try:
Code:
<if Spell="Haste">
<action type="AfterCastDelay" Delay="175">
<command>spellcast var inc hasteid</command>
<action type="addtochat" color="204" when="aftercast">[$hasteid:%spell] <%SpellTarget> Wearing off in 5s</action>
</action>
</if>
Not sure which one is the correct way to put it. They may both work.
Note:
http://wiki.windower.net/plugins/spellcast/colortestxml
this gives an ingame display of all colors and their respective codes for the addtochat variable.

Originally Posted by
TacoTaru
So if I go with your first option, I don't need anything in the rules concerning spells? Just add:
<main>$Staff-%SpellElement</main>
in my nuking/enfeebling sets, make sure the variables are there and that's that? Feel like I tried this last night, but it may have looked like this:
<main>$Staff%SpellElement</main>
Does the hyphen between them matter?
Using the syntax he gave you need to use the hyphen. What $Staff-%SpellElement does is takes whatever the spell element is of the spell you're casting. For example you will get $Staff-Ice when casting Paralyze. So in the variables he has <var name="Staff-Ice">Aquilo's Staff</var>
This essentially makes $Staff-%SpellElement turn into $Staff-Ice which tells spellcast to equip Aquilo's Staff.