Sign in to follow this  
Followers 0
KillerG

Debug Ring

2 posts in this topic

Lo que hace el script es que al equiparnos un cierto accesorio nos deje traspasar las paredes como si estuvieramos apretando el CTRL en Test Play

Script:
Arriba de Main creen una nueva clase
[SPOILER]
CODE

#===============================================================================
# ** Debug Ring
#-------------------------------------------------------------------------------
# Author    Icedmetal57
# Version   1.0
# Date      October 16th, 2006
#===============================================================================
#
# Description
#-------------------
# If a certain item is equipped, the player will be able to walk through walls,
# as if they were in DEBUG mode, in the RMXP editor.
#
# Instructions
#-------------------
# Scroll down a bit to the ACCESS_ID_NUMBER, and change it to the id number of
# the accessory you wish to have this debug type property.
#
# Compatability
#-------------------
# Compatible with SDK.
# To make it compatible with non-SDK, just delete the SDK lines.
#
#-------------------------------------------------------------------------------
class Game_Player < Game_Character
 
 ACCESS_ID_NUMBER = 107
 
 def passable?(x, y, d)
   # Get new coordinates
   new_x = x + (d == 6 ? 1 : d == 4 ? -1 : 0)
   new_y = y + (d == 2 ? 1 : d == 8 ? -1 : 0)
   # If coordinates are outside of map
   unless $game_map.valid?(new_x, new_y)
     # Impassable
     return false
   end
   # If debug mode is ON and ctrl key was pressed
   if $DEBUG and Input.press?(Input::CTRL)
     # Passable
     return true
   end
   if $game_actors[1].armor3_id = ACCESS_ID_NUMBER and Input.press?(Input::CTRL)
     # Passable
     return true
   end
   super
 end
end
[/SPOILER]

Instrucciones:
+ Cambien donde dice:
QUOTE
ACCESS_ID_NUMBER = 107

Cambien el 107 por la ID del accesorio que quieran

By:
Icedmetal57
0

Share this post


Link to post
Share on other sites

Bueno, para algo servirá. Se agradece el aporte.

0

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0