Hello! recently I've been trying to add more controller support to my game by allowing the player to choose what buttons are displayed during gameplay, and part of that includes changing what images are used for the "wheel" type timed attacks used for most of my game's basic magic spells.
SRD's timed attack wheel plugin doesn't have a plugin command to change the default image used whenever, and the parameters aren't defined in the code so I'm unable to use a script call to change them myself. So in order to achieve this I used some if else statements in yanfly's action sequences in combination with the timed attack action sequence plugin to try and work around this issue by calling the timed attack within dummy skills that correspond to the button display option the player has chosen, as seen below
an issue raised when attempting to do the same thing in a multi-target magic skill however. i know using target action tends to be a bit finicky there so I attempted to do this within whole action, and then leave target action completely empty to prevent anything strange from happening, as seen below.
this however didn't work as it'd seem to just skip straight to everything after the if/else statement. I then attempted to just use target action and leave whole action alone, which of course did not work, as it caused the whole sequence to trigger once per enemy, which isn't what I'm trying to achieve. I even attempted to try putting my if/else statement in setup action to see if it would work, but it did not, it simply skipped over the timed attack completely and went on to whole action as normal
Maybe it's just because I'm tired from staying up so late but I'm unable to actually find any way to achieve what I want here, would anyone know how I could get this to do what I want?
SRD's timed attack wheel plugin doesn't have a plugin command to change the default image used whenever, and the parameters aren't defined in the code so I'm unable to use a script call to change them myself. So in order to achieve this I used some if else statements in yanfly's action sequences in combination with the timed attack action sequence plugin to try and work around this issue by calling the timed attack within dummy skills that correspond to the button display option the player has chosen, as seen below
Code:
<Use Timed Attack Action Sequences>
<target action>
if $gameVariables.value(116) === 0
Timed Attack: 778
else if $gameVariables.value(116) === 1
Timed Attack: 784
else if $gameVariables.value(116) === 2
Timed Attack: 790
else
Timed Attack: 796
end
perform action
motion wait: user
action animation
wait for animation
action effect
death break
</target action>
an issue raised when attempting to do the same thing in a multi-target magic skill however. i know using target action tends to be a bit finicky there so I attempted to do this within whole action, and then leave target action completely empty to prevent anything strange from happening, as seen below.
Code:
<whole action>
if $gameVariables.value(116) == 0
Timed Attack: 779
else if $gameVariables.value(116) == 1
Timed Attack: 785
else if $gameVariables.value(116) == 2
Timed Attack: 791
else
Timed Attack: 797
end
perform action
motion wait: user
action animation
wait for animation
action effect
death break
</whole action>
<target action>
</target action>
this however didn't work as it'd seem to just skip straight to everything after the if/else statement. I then attempted to just use target action and leave whole action alone, which of course did not work, as it caused the whole sequence to trigger once per enemy, which isn't what I'm trying to achieve. I even attempted to try putting my if/else statement in setup action to see if it would work, but it did not, it simply skipped over the timed attack completely and went on to whole action as normal
Code:
<setup action>
clear battle log
display action
immortal: targets, true
perform start
wait for movement
if $gameVariables.value(116) == 0
Timed Attack: 779
else if $gameVariables.value(116) == 1
Timed Attack: 785
else if $gameVariables.value(116) == 2
Timed Attack: 791
else
Timed Attack: 797
end
</setup action>
<whole action>
perform action
motion wait: user
action animation
wait for animation
action effect
death break
</whole action>
<target action>
</target action>
Maybe it's just because I'm tired from staying up so late but I'm unable to actually find any way to achieve what I want here, would anyone know how I could get this to do what I want?