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
603
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...
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Profile Posts

I think I've created a monster.
...and I love it. <3
Today represents my one year anniversary of throwing out the tile map. :LZSexcite: One year ago my game looked like...


And now for those that don't know, it looks like..


What a year, what a year indeed. RIP Tile Map, nobody misses you. :LZSwink:
There is now a demo released for [Beyond the Mirror]! Check the team recruitment thread to learn more!
'Tis the season to see shipping prices and go 'Yikes'.

Forum statistics

Threads
105,696
Messages
1,015,680
Members
137,379
Latest member
ytviews123
Top