Creating a state that guarantees getting hit by critical hits

Joined
Feb 18, 2019
Messages
32
Reaction score
2
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
118
Reaction score
145
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,134
Reaction score
13,635
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

 

Yuuta Kirishima

kind of a big deal
Veteran
Joined
Jul 9, 2013
Messages
551
Reaction score
131
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.isHit()) {
      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 Profile Posts

Stream will be live shortly with a session of the Interactive text Adventure! Feel free to drop by!
Quick! Someone give me a snake pun about moving.
Meet the crew...Arrrr!
Who knew modern medieval was an actual music genre? I don't know what the youtube algorithms are doing but for once they found something actually fascinating:
Yay! Got 3 new frying pans, its weird, but I'm so happy about it.

Forum statistics

Threads
99,526
Messages
966,401
Members
131,152
Latest member
rai1209
Top