Dude, XPhater, you are awesome.
😀
Using this as a sort of template, I finally managed to make a weapon note tag that makes a dual-wielding character swing both icons! The best thing is that the tag doesn't interfere with using the weapon by itself or with a shield. Anyone who wants the second weapon to show on the second strike, here ya go:
Spoiler
<whole action>move user: target, base, wait
stance: user, attack
wait: 15
create icon: user, weapon, hand
icon: user, weapon, swing
autosymphony: attack full
delete icon: user, weapon
if user.weapons[1]
wait: 15
create icon: user, weapon2, hand
icon: user, weapon2, swing
autosymphony: attack full
delete icon: user, weapon2
end
</whole action>
<target action>
wait: 1
</target action>
Spoiler
Just drop that on to any one-handed melee weapon you want dual wielding with, and it will swing the second icon as the second hit, or ignore it completely if you are using a single weapon or shield. 👍
Edit: For some reason, it didn't copy the action tags. That's the whole code now, sorry.
I use similar tags for two characters in my project. One thing to take note of, when dual wielding in Symphony, is that characters will do outrageous, unintended damage. Suppose he has a 1000 Sword of Awesome, and a 2 Plastic Spork. He will attack for 1002 twice, or a total of 2004. That's twice the intended damage!
So to "fix" this, I add the following tag at the top of <target action>, before his first attack:
if user.weapons[1]
damage change: 50%
end
Then right above </target action>, I put this:
wait: 1
damage change: 100%
end
This cuts all of his damage in half. So he will attack for 501 twice, total of 1002. This does mean that each weapon will do the same damage (Sword of Awesome vs Plastic Spork), but the overall net result is in the intended range.
Also another one, What about Random Enemies?
I have a move called Earth Burst, where the player thrusts his sword into the ground and causes the earth to shake (ani 72) and then 3 rocks fly towards 3 random enemies, (ani 71)
However each rock does two things, 3 hits to one enemy, or 3 hits for both.
Here's my symphony tag:
Spoiler
<setup action>
immortal: targets, true
create icon: user, weapon
move user: forward 6, wait
icon: user, weapon, swing
ani wait: 5
animation 72: target,wait
</setup action>
<whole action>
ani wait: 3
animation 71: target
ani wait: 3
skill effect: dmg
move target: backward, 2
wait: 3
animation 71: target
ani wait: 3
skill effect: dmg
move target: backward, 2
wait: 3
animation 71: target
ani wait: 3
skill effect: dmg
move target: backward, 2
wait: 20
</whole action>
<target action>
wait: 1
</target action>
<follow action>
wait: 5
immortal: targets, false
wait: 1
delete icon: user, weapon
wait: 1
stance: target, break
</follow action>
<finish action>
stance: user, retreat
move user: origin
move target: origin
wait for move
stance: user, break
</finish action>
Spoiler
Sorry about the Double Post, I thought I hit the edit screen.
Not sure what the question is. Do you just want one hit per enemy? That's easy enough, just remove the extra hits from your <whole action> segment.