Anonymous
Guest
So i have this script here that is awesome!! But i was wondering if anyone can edit it to make it a bit more un errory i guess is the right word lol. So basically what it is is a script of several compiled scripts Run, Pause etc and i just want to add a few more things to it to make it work great!
Request 1: I am having problems with is the change lead character script! Now with that part you basically press q,a,s or d to change it to the number of character you have in your party q is 1 a is 2 so on and so forth. Well the problem is if you don't have someone in your party for the 2nd person, 3rd person etc and you press A to change to the second person an error comes up because that actor is not in your party. Could someone make it so that when you press the button to a character that is not in your party it will recognize you don't have that person in your party and just do nothing? The part of the script that is for the character change is at the very bottom of the script.
Request 2: Basically i want it so after a certain amount of steps(what you think is reasonable) of running you will slow down and not be able to run for another several steps to rest, like a stamina system!
Request 3: I would like it to show a pause screen for the pause script like that of the basic pause script here: http://rmxp.org/forums/index.php?topic=5159.0
Request 1: I am having problems with is the change lead character script! Now with that part you basically press q,a,s or d to change it to the number of character you have in your party q is 1 a is 2 so on and so forth. Well the problem is if you don't have someone in your party for the 2nd person, 3rd person etc and you press A to change to the second person an error comes up because that actor is not in your party. Could someone make it so that when you press the button to a character that is not in your party it will recognize you don't have that person in your party and just do nothing? The part of the script that is for the character change is at the very bottom of the script.
Request 2: Basically i want it so after a certain amount of steps(what you think is reasonable) of running you will slow down and not be able to run for another several steps to rest, like a stamina system!
Request 3: I would like it to show a pause screen for the pause script like that of the basic pause script here: http://rmxp.org/forums/index.php?topic=5159.0
Code:
=begin
CREDITS: THE KRYPTONATOR
"MSP1"
CONTENTS:
RUN
PAUSE
MAP DEATH
DEFAULT FONT
CHANGE LEAD CHARACTER
================THE MINI SCRIPT PACKAGES ARE JUST PLUGINS/ADDONS================
*PAUSE*
================================================================================
Creates the ability to pause the game using the W key on the keyboard.
===============================================================================
If you press Input.trigger?(Input::B) which is ESC or X on the keyboard it
will bring up an option to quit the game selecting "yes" will send you to the
title screen whereas selecting "no" will return you to the pause screen.
================================================================================
*MAP DEATH*
================================================================================
Contains map terrain damage death and pause Input.trigger?(Input::R) update.
It is easy to use if you set a certain terrain to cause damage then if/when
your parties hp reaches zero you will die and get the gameover screen.
================================================================================
*RUN*
================================================================================
Game_Player edit for dashing, I wouldn't mess with the numbers much.
Press Space or Enter to run.
Animated run script part of Suikoden 1 + 2 Script System
================================================================================
*DEFAULT FONT*
================================================================================
Allows you to easily change the games overall font, also includes bold effect
if you don't want your game's overall text to have a bold effect leave false.
It was made for people who want to determine their games font properties
from start to finish without changing during gameplay.
However if you do change it during play then you would setup a script call
from the script editor and inserting any of the three lines into it but that
would make this addon pointless it's made for people who will not change it
once the game has started.
================================================================================
#CHANGE LEAD CHARACTER#
================================================================================
Allows you to swap actor graphic during gameplay, added just for fun really?
It is set to different keys for easier access to the desired lead actor.
Keyboard keys:
Q = actor 0 (first actor)
D = actor 1 (second actor)
S = actor 2 (third actor)
A = actor 3 (fourth actor)
This feature will be added to my caterpillar script once I get time to make it
so you can swap lead characters like Secret of Mana (includes 2 player)
================================================================================
ALIASES
================================================================================
Game_Map :krypt_gamemap update
Game_Player :krypt_gameplayer update
Game_Player < Game_Character :krypt_gameplayer_gamecharacter update
================================================================================
CURRENT PROJECTS
================================================================================
SYSTEMS
Advanced caterpillar script (ACS)
First person shooter script (FPSS)
Mini script package 2 (MSP2)
Advanced menu system (AMS) (maybe)
Random event generator (REG) enables random events (requires ready made events)
Legend of legia battle system (LOLBS) ?? LOL? ha, BS? ha (Rethinks shortname)
MINI GAMES
Fishing (ala Breath Of Fire 4)
Football (Soccer) complete pitch, game length determined by user
Arcade system (various mini games similar to arcade classics)
And more when inspiration kicks in.....
================================================================================
=end
class Game_Map
alias krypt_gamemap update
def update
krypt_gamemap
if Input.trigger?(Input::R) # keyboard key |W|
$scene = Scene_Pause.new
else
$game_system.bgm_play(@map.bgm)# for returning maps bgm after unpause
end
if $game_party.all_dead?
$scene = Scene_Gameover.new
end
end
end
class Scene_Pause
def main
@spriteset_map = Spriteset_Map.new
@pause = Pause_Window.new
@pause.x = 155
@pause.y = 160
@pause.height = 500
@pause.width = 500
@pause.opacity = 0
Graphics.transition
loop do
Graphics.update
Input.update
update
if $scene != self
break
end
end
Graphics.freeze
@pause.dispose
end
def update
if Input.trigger?(Input::R) # keyboard key |W|
$scene = Scene_Map.new
Audio.bgm_stop
elsif
Input.trigger?(Input::B) #keyboard key |ESC| or |X|
$scene = Pause_Quit_Option.new
end
end
end
class Pause_Quit_Option
def main
@mw = MW.new
@mw.x = 140
@mw.y = 160
@mw.height = 500
@mw.width = 500
@mw.opacity = 0
s1 = "Yes"
s2 = "No"
@command_window = Window_Command.new(192, [s1, s2])
@command_window.back_opacity = 160
@command_window.x = 320 - @command_window.width / 2
@command_window.y = 288
Graphics.transition
loop do
Graphics.update
Input.update
update
if $scene != self
break
end
end
Graphics.freeze
@command_window.dispose
@mw.dispose
end
def update
@command_window.update
if Input.trigger?(Input::C)
case @command_window.index
when 0
command_yes
when 1
command_no
when 2
end
end
end
#------------------------------------------------------------------------------#
#-Quits the game to start over or shutdown-#
#------------------------------------------------------------------------------#
def command_yes
$scene = Scene_Title.new
end
#------------------------------------------------------------------------------#
#-Returns you back to the pause screen-#
#------------------------------------------------------------------------------#
def command_no
$scene = Scene_Pause.new
end
end
#------------------------------------------------------------------------------#
# Used for displaying the quit message after pressing B (ESC,X) while paused.
#------------------------------------------------------------------------------#
class MW < Window_Base
def initialize
super(480, 480, 480, 480)
sprite1 = Sprite.new
sprite1.bitmap = Bitmap.new(width, 32)
# æ–‡å—æ