Actually that's quite simple! you just have to use the "IF" tag
so it should look something like this:
<whole action>afterimage: user, trueimmortal: target, trueanimation 81: user, waithide nonfocuscreate icon: user, weapon</whole action><target action>if user.equips[0].wtype_id == 6icon: user, angle 45icon: user, weapon, cur_x 12wait 4icon create: user, arrow, hand, 592icon throw user: target, arrow, 14, 30, waiticon delete: user, arrowendif user.equips[0].wtype_id == 10wait: 10endunless user.equips[0].wtype_id == 6 && user.equips[0].wtype_id == 10move user: target, base, waiticon: user, weapon, swingendattack animation: target, wait ani wait: 3skill effect: dmgmove target: backward, 2wait: 3icon delete: user, weapon</target action><follow action>wait: 30move target: backward, 30icon delete: user, weaponshow nonfocusafterimage: user, falseimmortal: targets, false</follow action><finish action>move user: originface: user, leftwait: 30move target: originwait: 30wait for move</finish action>
Hmm, I took the liberty to modify your code a bit into something like below.
<whole action>afterimage: user, trueimmortal: target, trueanimation 81: user, waithide nonfocuscreate icon: user, weapon</whole action><target action>if user.equips[0].wtype_id == 17 or 18stance: user, skillicon create: user, weaponicon: user, weapon, angle, 45icon: user, weapon, cur_x 12wait: 4icon create: user, arrow, hand, 1780icon: user, arrow, rotate, 120, 30icon throw user: target, arrow, 14, 35, waiticon delete: user, arrowendif user.equips[0].wtype_id == 19icon create: user, weapon, handicon: user, weapon, angle, 45icon: user, weapon, cur_x 5wait: 4attack animation: targetskill effect: wholeicon: user, weapon, angle, 0icon: user, weapon, cur_x -5icon: user, weapon, cur_y 5wait: 4icon: user, weapon, angle, -25icon: user, weapon, cur_x -5wait: 4icon delete: user, weapon endif user.equips[0].wtype_id == 1 or 2 or 3 or 4 or 5 or 6 or 7 or 8 or 14 or 15 or 16move user: target, base, waiticon: user, weapon, swingendattack animation: target, wait ani wait: 3skill effect: dmgmove target: backward, 2wait: 3icon delete: user, weaponend</target action><follow action>wait: 30move target: backward, 30icon delete: user, weaponshow nonfocusafterimage: user, falseimmortal: targets, false</follow action><finish action>move user: originface: user, leftwait: 30move target: originwait: 30wait for move</finish action>This result in the user shoot and run to whack the enemy. Possibly because I need to use Unless condition as well?
My weapon type as follows.
- Dagger
- Sword
- Greatsword
- Katana
- 2h Katana
- Magic Sword
- Spear
- Scythe
- Rod
- Staff
- Cards
- Orb
- Grimoire
- Axe
- Mace
- War Fan
- Bow
- Crossbow
- Gun
(Yeah I have a lot of characters ._.)
Out of the list, 1-8 and 14-16 are melee weapons, while 17-19 are ranged (though I have different animations for each).
I was thinking about using > or < command to achieve this, is it possible? Although I don't know how to write it properly >.<