I've been trying to work out for the past 24 hours or so now as to why "$gameTemp.tas_power" is giving incorrect values during the calculation of my action sequence.
To give a better understanding of the quirk, here is the action sequence code I'm using for the "Rapid Strike" Bow Ability that I'm using.
The skill will always default to having 3*5 Arrows for the attack. When the skill is used, it will show a Mash Input event where depending on how sucessful you are, you will gain between 1*3 and 5*3 extra Arrows for the attack.
The problem however is that "$gameTemp.tas_power" is always giving "incorrect" values during calculation.
* When you use "Rapid Strike" for the first time, regardless of how well or not you did in the Mash Input event, "$gameTemp.tas_power" will always return a value of "1" instead of what it's suppose to during calculation (If you have 74% on the bar when the time runs out, it should give 4*3 Arrows. Regardless how you do, even if you somehow managed to reach 0%, it will always mark "$gameTemp.tas_power" as 100% or 1).
* When you use "Rapid Strike" again, it's getting the PRIOR value from the LAST "Rapid Strike" instead of the CURRENT "Rapid Strike" action sequence (if you got 53% this time, it will instead get the 74% from the "prior" Rapid Strike).
* This situation in bullet-point #2 will "always" happen regardless of the structure/order of my if statements.
NOTE - The "while if" statements in the "Target Action" are from another plugin that helps to aid in "looping" until a specific thing is done/completed (in this case, until there are no Arrows left to shoot). I would use "Jump to Label" and "Label" during the process but for some odd reason, they don't work... at all (not sure why).
To give a better understanding of the quirk, here is the action sequence code I'm using for the "Rapid Strike" Bow Ability that I'm using.
The skill will always default to having 3*5 Arrows for the attack. When the skill is used, it will show a Mash Input event where depending on how sucessful you are, you will gain between 1*3 and 5*3 extra Arrows for the attack.
The problem however is that "$gameTemp.tas_power" is always giving "incorrect" values during calculation.
* When you use "Rapid Strike" for the first time, regardless of how well or not you did in the Mash Input event, "$gameTemp.tas_power" will always return a value of "1" instead of what it's suppose to during calculation (If you have 74% on the bar when the time runs out, it should give 4*3 Arrows. Regardless how you do, even if you somehow managed to reach 0%, it will always mark "$gameTemp.tas_power" as 100% or 1).
* When you use "Rapid Strike" again, it's getting the PRIOR value from the LAST "Rapid Strike" instead of the CURRENT "Rapid Strike" action sequence (if you got 53% this time, it will instead get the 74% from the "prior" Rapid Strike).
* This situation in bullet-point #2 will "always" happen regardless of the structure/order of my if statements.
NOTE - The "while if" statements in the "Target Action" are from another plugin that helps to aid in "looping" until a specific thing is done/completed (in this case, until there are no Arrows left to shoot). I would use "Jump to Label" and "Label" during the process but for some odd reason, they don't work... at all (not sure why).
Code:
<Instant>
<Max Mastery Level: 4>
<Mastery Effect: +5% Damage Per Level>
<Custom EXP Mastery Formula: level * 250 + 250>
<Use Timed Attack Action Sequences>
<Timed Attack: mash>
Max Amount: 1000
Start Amount: 500
Speed: 12
Seconds: 5
Tap Gain: 20
Width: 100
Height: 20
Above Height: 60
Color 1: #ff5500
Color 2: #00ff55
<End Timed Attack>
<Custom Cost Display>
\fs[10]\C[6]5\I[143]
</Custom Cost Display>
<Custom Requirement>
user._abilityStacks = user._abilityStacks || 0;
value = user._abilityStacks >= 5;
</Custom Requirement>
<Custom Execution>
user._abilityStacks = user._abilityStacks || 0;
var stacks = user._abilityStacks;
stacks -= 5;
stacks = stacks.clamp(0, 20);
var comboStateId = 180;
user.setStateCounter(comboStateId, 'x' + stacks);
user._abilityStacks = stacks;
</Custom Execution>
<Setup Action>
change variable 3 = 5
perform start
SE: Bow4, 90, 90, 0
motion swing: user
CAMERA FOCUS: user, CENTER, 20
ZOOM: 200%, 20
WAIT FOR ZOOM
timed attack
wait: 10
if $gameTemp.tas_power > 0.80
CHANGE VARIABLE 3 += 1
end
if $gameTemp.tas_power > 0.60
CHANGE VARIABLE 3 += 1
end
if $gameTemp.tas_power > 0.40
CHANGE VARIABLE 3 += 1
end
if $gameTemp.tas_power > 0.20
CHANGE VARIABLE 3 += 1
end
if $gameTemp.tas_power > 0.01
CHANGE VARIABLE 3 += 1
end
change variable 3 *= 3
wait: 10
motion swing: user
immortal: targets, true
<\Setup Action>
<Target Action>
RESET CAMERA: 20
RESET ZOOM: 20
WAIT: 30
while $gameVariables.value(3) >= 1
motion missile: user
WAIT: 2
MOVE user: BACKWARD, 1, 2
FACE user: FORWARD
animation 155: user, mirror
projectile ani 150: start user, goal target, duration 3, angle
WAIT: 3
MOVE user: FORWARD, 1, 2
action effect: target
change variable 3 -= 1
WAIT: 60
end while
WAIT: 30
<\Target action>
<Finish Action>
immortal: targets, false
clear battle log
<\Finish Action>