Creating a state that guarantees getting hit by critical hits

Joined
Feb 18, 2019
Messages
39
Reaction score
3
First Language
English
Primarily Uses
RMMV
I have a State called "Staggered" where if you get attacked while you still have the effect, you will always receive a critical hit. The problem is, I can't seem to figure out how to make it work. Any suggestions?
 

ScorchedGround

Blizzards most disappointed fan
Veteran
Joined
Apr 12, 2020
Messages
331
Reaction score
486
First Language
German
Primarily Uses
RMMV
Can't you just put something like "Critical Evasion -999%" in the state traits?
 

bgillisp

Global Moderators
Global Mod
Joined
Jul 2, 2014
Messages
13,528
Reaction score
14,261
First Language
English
Primarily Uses
RMVXA
Critical Evasion just makes it so that you dodge a critical when it is rolled. It will not make it so that you always get a critical hit though. If you want it to be so that you always get a critical hit when hit under that state, you'll need a plug-in.

Moving to Plug-in Requests

 

Capitán

kind of a big deal
Veteran
Joined
Jul 9, 2013
Messages
572
Reaction score
145
First Language
Engilsh
Primarily Uses
RMMV
Simple Enough,

JavaScript:
Game_Action.prototype.apply = function(target) {
  var result = target.result();
  this.subject().clearResult();
  result.clear();
  result.used = this.testApply(target);
  result.missed = (result.used && Math.random() >= this.itemHit(target));
  result.evaded = (!result.missed && Math.random() < this.itemEva(target));
  result.physical = this.isPhysical();
  result.drain = this.isDrain();
  if (result.i****()) {
      if (this.item().damage.type > 0) {
          result.critical = (Math.random() < this.itemCri(target));
          result.critical = (target.isStateAffected(ADD_ID_OF_STATE_HERE) ? true : result.critical);
          var value = this.makeDamageValue(target, result.critical);
          this.executeDamage(target, value);
      }
      this.item().effects.forEach(function(effect) {
          this.applyItemEffect(target, effect);
      }, this);
      this.applyItemUserEffect(target);
  }
};
Either add this in a plugin or modify the Game_Action.prototype.apply function directly, i recommend the former... make sure to replace ADD_ID_OF_STATE_HERE with the id of the actual state obviously.
 

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

Latest Threads

Latest Posts

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,035
Messages
1,018,455
Members
137,821
Latest member
Capterson
Top