Hi, everyone
I currently make a project ONLY with Yanfly's plugins.
I use many of the plugins, but I currently have troubles setting conditional weapon range based on the row the battler in.
I think it should be related with YEP Target Core, Selection Control, and Row Formation.
I use 2 rows in my project
So... the effect I'm looking for is:
1. If spear-wielding battler is in the front row, he can attack any enemy, but if he's at the back row, he can only attack front row.
2. If bow/gun-wielding battler is in the front row, he can only attack back row, but if he's at the back row, he can attack any enemy.
I think it should be related with <Custom Select Condition> note tag, but I'm not proficient in JS. I prefer making different skills for each weapon range since the name differs, but if the <Custom Select Condition> works, I'll go with it.
So far, I try using Weapon Unleash's lunatic mode <Custom Replace Attack> tags, but it didn't work and shows the basic attack instead.
Also, since I have skills whose range is based on equipped weapons', which solution is best?
UPDATE: I figured out that the 'battler' should be replaced by user OR target and it works perfectly, just as I want, so there's no need to answer my question 🙂 Cheers!
EDIT AGAIN: it seems that I'm stuck at using the <Custom Select Condition> note tags since some of my skills are generic and their range is based on weapons... I try
<Custom Select Condition>
if (user.row() === 1) {
condition = Any Row;
} else {
condition = Front Row Only;
}
</Custom Select Condition>
for spear but nothing changes... can anyone help?
I currently make a project ONLY with Yanfly's plugins.
I use many of the plugins, but I currently have troubles setting conditional weapon range based on the row the battler in.
I think it should be related with YEP Target Core, Selection Control, and Row Formation.
I use 2 rows in my project
So... the effect I'm looking for is:
1. If spear-wielding battler is in the front row, he can attack any enemy, but if he's at the back row, he can only attack front row.
2. If bow/gun-wielding battler is in the front row, he can only attack back row, but if he's at the back row, he can attack any enemy.
I think it should be related with <Custom Select Condition> note tag, but I'm not proficient in JS. I prefer making different skills for each weapon range since the name differs, but if the <Custom Select Condition> works, I'll go with it.
So far, I try using Weapon Unleash's lunatic mode <Custom Replace Attack> tags, but it didn't work and shows the basic attack instead.
<Custom Replace Attack>
if (user.battler.row() === 1) {
id = 21;
} else {
id = 22;
}
</Custom Replace Attack>
21 is all enemy and 22 is front row only
if (user.battler.row() === 1) {
id = 21;
} else {
id = 22;
}
</Custom Replace Attack>
21 is all enemy and 22 is front row only
<Custom Replace Attack>
if (user.battler.row() === 1) {
id = 23;
} else {
id = 24;
}
23 is back row only and 24 is all enemy
</Custom Replace Attack>
if (user.battler.row() === 1) {
id = 23;
} else {
id = 24;
}
23 is back row only and 24 is all enemy
</Custom Replace Attack>
Also, since I have skills whose range is based on equipped weapons', which solution is best?
UPDATE: I figured out that the 'battler' should be replaced by user OR target and it works perfectly, just as I want, so there's no need to answer my question 🙂 Cheers!
EDIT AGAIN: it seems that I'm stuck at using the <Custom Select Condition> note tags since some of my skills are generic and their range is based on weapons... I try
<Custom Select Condition>
if (user.row() === 1) {
condition = Any Row;
} else {
condition = Front Row Only;
}
</Custom Select Condition>
for spear but nothing changes... can anyone help?