Submit Your Article


 
RPG Maker

Welcome Guest ( Log In | Register )


  Games Resources RPG Maker VX RPG Maker XP Scripts Tutorials Downloads

> 


———
Before you ask! Read! ;)

You must have 30+ Posts to create a topic here!

Thanks for reading!
———

 
Reply to this topicStart new topic
> Always Evade Status
jedrulzu
post Feb 24 2012, 01:31 AM
Post #1


Level 1
Group Icon

Group: Member
Posts: 5
Type: None
RM Skill: Undisclosed




Is there a way to make a status ailment where the character cannot be hit by any attack for 2 turns? (this is for my "Thrown" status where the target has been flung from the feild of battle, and it takes them 2 turns to return). Thanks for any help!!
Go to the top of the page
 
+Quote Post
   
The Law G14
post Feb 24 2012, 02:49 AM
Post #2


Scripter FTW
Group Icon

Group: Local Mod
Posts: 1,348
Type: Scripter
RM Skill: Skilled
Rev Points: 5




This should work how you'd like, customization at the top smile.gif


CODE
#==============================================================================
# Title: Evade State
# Version: 1.0
# Author: The Law G14
#==============================================================================

module Customization
  
  # The State ID that causes 100% Evasion
  STATE_ID = 1
  
end


#==============================================================================
# ** Game_Battler
#------------------------------------------------------------------------------
#  This class deals with battlers. It's used as a superclass for the Game_Actor
#  and Game_Enemy classes.
#==============================================================================

class Game_Battler
  #--------------------------------------------------------------------------
  # * Alias Listing
  #--------------------------------------------------------------------------
  alias law_state_evade_game_battler_hit hit
  #--------------------------------------------------------------------------
  # * Get Hit Rate
  #--------------------------------------------------------------------------
  def hit
    # If customized state is on
    if @states.include?(Customization::STATE_ID)
      # Return 0
      return 0
    else
      # Call original method
      law_state_evade_game_battler_hit
    end
  end
end


__________________________

To put in sig, copy this link:
CODE
[url="http://www.rpgrevolution.com/forums/index.php?showtopic=51540"][img]http://img40.imageshack.us/img40/6504/conceptthelawbanner.png[/img][/url]


Sig Stuff


"When you first come, no one knows you. When help them out, they all know you. When you leave, they all love you. When you come back, they've already forgotten you." -- copy into your sig if you think this quote speaks true!

If you are one of the very few teenagers that know what real rap is and don't blindly listen to the hate statements (rap is crap), then put this in your sig. I say this in the name of Common, Mos Def, Lupe Fiasco, 2Pac, Nas, Talib Kweli, Eminem, and many others. -Exiled One

My Project Thread: Gai's Hunters


Go to the top of the page
 
+Quote Post
   

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

Lo-Fi Version Time is now: 18th June 2013 - 02:27 PM
RPG RPG Revolution is an Privacy Policy and Legal
eXTReMe Tracker