I've been beating my head against the desk with this for hours now, and could use another set or two of eyes/brains.
I'm trying to add class detection to
Dragowulf's SpellTimer Window. Basically, I'm setting it up for use by up to five different classes. I added a text object to hold the subclass name for comparison, and five hidden buttons with the scripts to copy data into the working set.
The gist of each button's script is (OnPress):
Code:
Parent.SpellTimerData.1.SpellName=Parent.ClassSpellData.A.1.SpellName
Parent.SpellTimerData.2.SpellName=Parent.ClassSpellData.A.2.SpellName
Parent.SpellTimerData.3.SpellName=Parent.ClassSpellData.A.3.SpellName
...repeated through 15. SpellTimerData is the 'working set' from Dragowulf's original code, which I haven't modified in any way (as far as I know); and ClassSpellData is the new set I added. There's one button per class, A through E, to reduce the workload.
I seem to have figured out the class detection part, but apparently the data getting put into the working set is "Parent.ClassSpellData.A.1.SpellName" and so forth, rather than the contents of that property.
A slightly less frustrating problem is getting the buttons to activate. OnPress should be triggered by Buttonname.Activated=true, correct?
If looking at the actual files would help more, links to both are below (the data is in a separate file for easy modification).
main xml
data xml