I have been needing help with something that is not very complicated, but having not enough knowledge of javascript brings me crazy!
I tried to ask Yanfly himself through Patreon but apparently he has abandoned everything about his plugin or directly ignores the people because despite paying the Patreon after months no response is received from him...
My question is the following. I am creating a combat system based on rows, where the first row is tank, the second is wizards and the third is archery. To attack the wizards or archers you must first kill the tank.
Up to here everything perfect.
But there is something that resists me, since I am trying to make certain weapons ignore the tanks and attack directly to the 2nd or 3rd row. I have managed to make certain weapons attack those lines using <Target: Enemy Row x> but it turns out that by doing that the attack instead of attacking only 1 enemy, attacks all those in that line. Suppose we have 1 Tank, 1 Wizard and 3 Archers. I want to attack the line of archers and attack only one of that line but I can not do it in any way :(
This brings me crazy, since I get to attack that line but I hit the 3 archers instead of just one. I think that can be achieved with some knowledge of javascript and sincerely I have been learning javascript for 2 months just to manage that, but still it is impossible for me to get it.
Would someone please help me? You could even give a small payment through Paypal in exchange for help if necessary.
Edit: I forgot to say it is for RPG Maker MV
Thank you in advance
Help with YEP_TargetCore.js
● ARCHIVED · READ-ONLY
-
-
I've moved this thread to Plugin Support. Thank you.
-
Try adding Yanfly's Selection Control plugin (requires Target Core). Target Core changes the target "grouping", Selection Control changes which targets are selectable from the scope. Link: http://yanfly.moe/2016/04/22/yep-94-selection-control/
I believe the tag you're looking for is this, but I'm short on time at the moment so can't test right now:
Code:<Select Conditions> Row 2 Min </Select Conditions> -
Thank you very much for your response.Try adding Yanfly's Selection Control plugin (requires Target Core). Target Core changes the target "grouping", Selection Control changes which targets are selectable from the scope. Link: http://yanfly.moe/2016/04/22/yep-94-selection-control/
I believe the tag you're looking for is this, but I'm short on time at the moment so can't test right now:
Code:<Select Conditions> Row 2 Min </Select Conditions>
Yes and No, I tried it before and that code makes the actor target the desired row without problems but after kill all in that row he is unnable to attack the first Row, he just make an attack without moving from the site and hit deals no damage. And I think is not possible make actor attack 2nd Row only, if I put Row 2 min, he can attack Row 2 and 3.
Maybe is easy doing this with statistics conditions, for example target enemy with Max MP = 100 (in my game the MP was removed so I can put any value in this field, lets say I put MaxMP 50 for Row 2 and MaxMP for Row 3. Then I say to my actor if there is any enemy alive with MaxMP=50 only can attack that.
I tried with <Target: Foes param Multiple Of x> but I really do not understand how this works... Lets say I change value of an enemy MaxMP=500 then I put <Target: Foes maxmp Multiple Of 500>, but doesn't work, the actor can attack all allies and enemies without restrictions :( -
bump
-
Sorry for the delay! :kaocry:
I just re-read your post and experimented a bit, now I have a few more suggestions:
- Yanfly's Selection Control plugin has <melee> and <range> tags for weapons (these go in the weapon notebox). Someone with a <melee>-tagged weapon should only be able to attack the front row of enemies, but if you have a <range>-tagged weapon equipped then you can attack any row. Is this sort of what you were trying to do? :kaoswt:
- Also, there is a Weapon Range condition for the <Select Conditions> skill notetag that will force the skill to obey the user's weapon's range when deciding who they can target:
Code:By default all single-target Physical Hit skills are set to this, but you can disable that with the Physical Weapon Range plugin parameter if you like. The default weapon range is melee, i.e. any weapon without a <melee> or <range> tag will be treated as <melee>. Melee weapons can only target the front row (the closest row with living enemies). There's a plugin parameter, Default Weapon Range, that you can change to "ranged" if you like.
<Select Conditions> Weapon Range </Select Conditions> - If you want to use it, I think the param Multiple of thing just needs mmp instead of maxmp:
Code:I changed it to 50 because then I believe you should be able to attack any enemy with max MP = 50, 100, 150, 200, etc... This might just target all enemies with matching max MP, though. >_<<Target: Foes mmp Multiple Of 50> - Lastly, if you want to only target a specific row, there's Row x Only condition for the <Select Conditions> tag:
Code:<Select Conditions> Row 2 Only </Select Conditions>
-
Sorry for the delay! :kaocry:
I just re-read your post and experimented a bit, now I have a few more suggestions:
- Yanfly's Selection Control plugin has <melee> and <range> tags for weapons (these go in the weapon notebox). Someone with a <melee>-tagged weapon should only be able to attack the front row of enemies, but if you have a <range>-tagged weapon equipped then you can attack any row. Is this sort of what you were trying to do? :kaoswt:
- Also, there is a Weapon Range condition for the <Select Conditions> skill notetag that will force the skill to obey the user's weapon's range when deciding who they can target:
Code:By default all single-target Physical Hit skills are set to this, but you can disable that with the Physical Weapon Range plugin parameter if you like. The default weapon range is melee, i.e. any weapon without a <melee> or <range> tag will be treated as <melee>. Melee weapons can only target the front row (the closest row with living enemies). There's a plugin parameter, Default Weapon Range, that you can change to "ranged" if you like.
<Select Conditions> Weapon Range </Select Conditions> - If you want to use it, I think the param Multiple of thing just needs mmp instead of maxmp:
Code:I changed it to 50 because then I believe you should be able to attack any enemy with max MP = 50, 100, 150, 200, etc... This might just target all enemies with matching max MP, though. >_<<Target: Foes mmp Multiple Of 50> - Lastly, if you want to only target a specific row, there's Row x Only condition for the <Select Conditions> tag:
Code:<Select Conditions> Row 2 Only </Select Conditions>
Thank you for your reply. Don't worry about the delay, at least you are trying to help me :kaoluv:
I will re-test everything and see if I find any way to give priority to Select Conditions and when I get at home I will check your option for param Multiple of I cannot believe I didn't changed MaxMP to mmp when I was testing (I'm so dumb) but if it is not possible in this way then I will continue with what I done yet.
I managed to make some skills (attacks) start to attack from Front Row Only (Melee) and Back Row only (Melee too) and for second row I changed the style and made some weapons get <Bypass Taunt> for the state I have in the Row 1, so they can attack all targets. While I find another way to make what I wanted I will leave it as I said. That is enough for now.
PS: I am trying to make too an attack that makes damage to 1 enemy in 2 different rows. For example a "Spear" attack that deals damage to one foe in Front Row and one in Row 2. But I think is not possible so its not important for now.
If at the end I need those things I will hire a developer that helps me to fit the scripts to make them have those features
Edit:
I just re-read again your message and need to say that is close as I want to do but not in that way. I want a Hero who have dagger equipped can skip tanks and attack second row. I can do this with Row 2 Max, but the problem is I have 4 rows and when actors kills 1st and 2nd Rows then the actor with daggers cannot attack anymore in the current battle because he is unable to attack 3rd and 4th row.Yanfly's Selection Control plugin has <melee> and <range> tags for weapons (these go in the weapon notebox). Someone with a <melee>-tagged weapon should only be able to attack the front row of enemies, but if you have a <range>-tagged weapon equipped then you can attack any row. Is this sort of what you were trying to do?