How Can I play with the accuracy of a skill ?

Gregaur

Veteran
Veteran
Joined
Jan 3, 2017
Messages
134
Reaction score
20
First Language
french
Primarily Uses
RMMV
Hello guys !

I want to change the chance to touch for a skill (arrow raining) according to the number of monster on the battlefield.

Something like : Chance to touch = Chance to touch * Number of monster / 8

I am using all the main yanfly plugin if needed :).

Thank you very much and take care !
 

HumanNinjaToo

The Cheerful Pessimist
Veteran
Joined
Apr 18, 2013
Messages
1,226
Reaction score
606
First Language
English
Primarily Uses
RMMV
You could try using an if/then statement in troop window. Set a variable to the number of enemy battlers that are alive

$gameTroop.aliveMembers().length

then set the conditions of each variable. The issue is how to get the %chance to hit with the skill. You are using Yanfly Hit Accuracy? That one costs $ I think, but it's the only way I know of quickly to change a specific skills hit %. I don't have that particular plugin, so I cannot be sure, but I think it allows for lunatic code. So you would need to figure that part out for the conditional branches in the troop event.
 

Gregaur

Veteran
Veteran
Joined
Jan 3, 2017
Messages
134
Reaction score
20
First Language
french
Primarily Uses
RMMV
Hello !

I may be wrong but the yanfly plugin only apply to all skill. It can't be a modification for one skill...
 

Latest Threads

Latest Posts

Latest Profile Posts

FirestormNeos wrote on Neikoku's profile.
the cat in your profile picture is adorable
Are the default-size "chibi" sprites really a bad thing for a project? I'm not planning to sell my game anyway but I was wondering if they were as hated as some videos seem to claim...
Only 9 things left on the to-do list before my game's next big update. Minus the soul-crushing playtesting session, of course! So close...
Retired from RPG Maker.
Anyone else who initially created a character to be a villain only to end up liking them so much that you made them a hero? :)

Forum statistics

Threads
111,428
Messages
1,061,047
Members
144,788
Latest member
fmoviesfco9
Top