RPG Maker Forums

Change Action Rating Variance 1.0
by TheTitan99


IntroductionChange the default Action Rating variance for enemies to anywhere from 1 (meaning no randomness) to 9 (any move on any turn.)Explanation
By default, when an enemy is selecting a move, they check what the Action Rating for their move list is, selecting the highest rated move that is currently usable... mostly. There is a 3 rate wiggle room, meaning if moves with ratings 6, 7, 8, and 9 are usable, 9 is most likely, but 7 and 8 can also happen. 6 you know for sure will NOT be selected, but 7 and 8 may happen.


This plugin lets you change that wiggle room. Set the plugin to "3", and it'll be how the default engine works as just explained. Set it to "2", and in the above scenario, moves 9 and 8 can be used, 6 and 7 will not be selected. Set it to "1", and only action 9 will ever be used.


The inverse is the same. Set it to "9", and the enemy move list will be completely random!


So, this plugin lets you make enemy AI's that are more (or less) predictable!


This plugin Overwrites the function Game_Enemy.prototype.selectAllActions. It should be compatible with any other plugin that doesn't also overwrite this function.


Script


https://www.dropbox.com/s/pz139ehlnx4gw3c/TITAN_ChangeActionRating.js?dl=0


Notes- Made by me, TheTitan99, by modifying code made by RPG Maker staff.


- Free for commercial and non-commercial release. Thanks are welcome, but not needed.


- Feel free to edit and improve on this in any way you see fit. Not the best JS user myself, know this code could be made better.

Latest Threads

Latest Profile Posts

Our latest feature is an interview with... me?!

People4_2 (Capelet off and on) added!

Just beat the last of us 2 last night and starting jedi: fallen order right now, both use unreal engine & when I say i knew 80% of jedi's buttons right away because they were the same buttons as TLOU2 its ridiculous, even the same narrow hallway crawl and barely-made-it jump they do. Unreal Engine is just big budget RPG Maker the way they make games nearly identical at its core lol.
Can someone recommend some fun story-heavy RPGs to me? Coming up with good gameplay is a nightmare! I was thinking of making some gameplay platforming-based, but that doesn't work well in RPG form*. I also was thinking of removing battles, but that would be too much like OneShot. I don't even know how to make good puzzles!
one bad plugin combo later and one of my followers is moonwalking off the screen on his own... I didn't even more yet on the new map lol.

Forum statistics

Threads
106,033
Messages
1,018,441
Members
137,820
Latest member
georg09byron
Top