Sorry, wasn't sure how to phrase what I needed succinctly, but basically, I need to be able to run a small string of Javascript as an actor queues up to select their next action. Visustella lets you run script as an action begins, but I need it right as the command selection process begins.
To give more detail, my skill descriptions use icons to show what element said skill is. Now, there are various skills that use the actor's weapon to do them, so I had the idea to make it so that the displayed element icon changes depending on what the user's weapon's element actually is (my initial idea was to have an icon that meant "adopts the element of the user's weapon", and obviously I can just do that instead, but...). My process was going to be as follows:
1. run script as command selection begins to store the actor's ID in a variable (not terribly important for this specifically but it does tie in)
2. run script after that to identify the attack element of the actor's weapon and store it in another variable
3. run the second variable through a created text macro that returns a specific icon depending on the value of said variable (in battle only; outside of battle it'd display something else)
4. stick that macro in every relevant skill description
I know steps 3 and 4 would work, as I've done similar things in other areas of the game. But alas, I cannot act on those as I'm stuck at step 1.
Is there any recourse? I'm not averse to the use of other plugins, or to things that don't involve my original plan at all. I have a feeling I could honestly just use the macros by themselves to do all of this, but I wouldn't know how without any help.
To give more detail, my skill descriptions use icons to show what element said skill is. Now, there are various skills that use the actor's weapon to do them, so I had the idea to make it so that the displayed element icon changes depending on what the user's weapon's element actually is (my initial idea was to have an icon that meant "adopts the element of the user's weapon", and obviously I can just do that instead, but...). My process was going to be as follows:
1. run script as command selection begins to store the actor's ID in a variable (not terribly important for this specifically but it does tie in)
2. run script after that to identify the attack element of the actor's weapon and store it in another variable
3. run the second variable through a created text macro that returns a specific icon depending on the value of said variable (in battle only; outside of battle it'd display something else)
4. stick that macro in every relevant skill description
I know steps 3 and 4 would work, as I've done similar things in other areas of the game. But alas, I cannot act on those as I'm stuck at step 1.
Is there any recourse? I'm not averse to the use of other plugins, or to things that don't involve my original plan at all. I have a feeling I could honestly just use the macros by themselves to do all of this, but I wouldn't know how without any help.