Indinera

Indie Dev
Veteran
Joined
Mar 13, 2012
Messages
2,389
Reaction score
1,097
First Language
French
I'd like to make it so that bows cannot be countered even if the enemy has CNT 100%.
Is this possible? I also have Visustella.
 

Trihan

Speedy Scripter
Veteran
Joined
Apr 12, 2012
Messages
5,423
Reaction score
5,112
First Language
English
Primarily Uses
RMMZ
Ooh, that's a tough one. Modifying ex-parameters based on the user's stats is easy, but changing the *target* isn't, because in the formula that calculates them, there's no attacker/target relationship to reference. And CNT isn't an actual value you can change in a notetag.
 

Indinera

Indie Dev
Veteran
Joined
Mar 13, 2012
Messages
2,389
Reaction score
1,097
First Language
French
Pity because it's a bit silly that long range weapons can get countered.
 

dopan

Veteran
Veteran
Joined
Mar 27, 2020
Messages
1,228
Reaction score
645
First Language
German
Primarily Uses
RMMV
i have no idea on MZ but if its similar to MV, you need to find the function:
JavaScript:
BattleManager.invokeCounterAttack = function(subject, target) {
JavaScript:
BattleManager.invokeCounterAttack = function(subject, target) {
    var action = new Game_Action(target);
    action.setAttack();
    action.apply(subject);
    this._logWindow.displayCounter(target);
    this._logWindow.displayActionResults(target, subject);
};
there you could add some small scripts to make sure this wont be triggered if you dont want to.

this Function shoud be located somewhere in the RPG Managers Plugin..

(its probably better to build a mini plugin which overwrites the function instead of editing the original rpg plugin)

- subject & target are the data of the 2 battlers
(not sure which one is which one)

- Than you need the MZ script for:
"if attackers Wtype id is not bowType"
..and use this script as condition to trigger the main script

this should not be much script or coding work i just dont use MZ thats why i cant help on the detailed script info sry.

its allready solved so my text isnt needed^^
 

Latest Threads

Latest Posts

Latest Profile Posts

no longer using rm2k3
Don't you hate when you're trying to sleep and suddenly the smoke detector needs batteries? That's exactly what happened to me. Now I'm sluggish and tired after that darn thing started chirping at 11:30 at night. Man I wish I had one of those smart smoke detectors that sends a message to your phone way before it starts chirping.
Interior of a bus, may do more vehicle interiors :kaoswt2:
1670089782219.png
I can hardly believe it is the third day of Christmas and I have yet to put up decorations! Spending my morning cooking breakfast and getting them up.
https://itch.io/s/83641/1-week-sale Do you want a Roguelike game like a turn-based Hades? Get Zodiac Hunters now while it's on sale!

Forum statistics

Threads
127,016
Messages
1,183,202
Members
166,878
Latest member
Phunction
Top