This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# アクターとエネミーでスキル名を切り替え by CACAO | |
# | |
# スキルのメモ欄に行頭を空けず行をわけて記述し、 | |
# 使用時メッセージに \name と入れるとメモ欄の名前に置き換えられる | |
# A:アクター時の名称 | |
# E:エネミー時の名称 | |
# A1:のように番号を入れるとそのキャラの時の名称となる | |
# ※ ただし、番号付きは上に記述しなければ全体の名称が使用される | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 戦闘背景となるマップ画像を加工せずに表示します。 | |
# 戦闘背景の床の設定が なし 場合、直前のマップ画像を背景とします。 | |
class << SceneManager | |
#-------------------------------------------------------------------------- | |
# ● 背景として使うためのスナップショット作成 | |
#-------------------------------------------------------------------------- | |
def snapshot_for_background | |
@background_bitmap.dispose if @background_bitmap | |
@background_bitmap = Graphics.snap_to_bitmap |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# エンカウントリストに追加 | |
# | |
# イベントコマンド「スクリプト」 | |
# $game_map.add_encounter(グループID, 重み, リージョンIDの配列) | |
# $game_map.add_encounter(グループIDの配列, 重み, リージョンIDの配列) | |
# 重みを省略すると 10 、リージョンを省略すると 全体 | |
# | |
class Game_Map | |
#-------------------------------------------------------------------------- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Bitmap | |
#-------------------------------------------------------------------------- | |
# ○ クリッピング描画 | |
# reg_bitmap : リージョン画像(黒部分を非表示) | |
#-------------------------------------------------------------------------- | |
def clip_blt2(x, y, src_bitmap, src_rect, reg_bitmap) | |
return -1 if TRGSSX::NO_TRGSSX | |
apt, ai, flag = [], [], false | |
(reg_bitmap.height-1).downto(0) do |y| |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# イベントコマンド「スクロール文章の表示」のスクリプト欄化 | |
# 行頭で #! RGSS と入力 | |
# その後、#! RGSS TOP で、スクリプトをトップレベルで実行 | |
class Game_Interpreter | |
#-------------------------------------------------------------------------- | |
# ● スクロール文章の表示 | |
#-------------------------------------------------------------------------- | |
alias _cao_script_command_105 command_105 | |
def command_105 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# RGSS3 現在のマップタイルを保存 | |
# 保存したいマップで save_map を実行 | |
def save_map | |
fn = sprintf("Map%03d.rvdata2", $game_map.map_id) | |
map = load_data("Data/#{fn}") | |
map.data = $game_map.data | |
save_data(map, fn) | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# フォント変更時に改行箇所に・が表示されるのを修正する | |
# 他のスクリプトより下に導入 | |
class Window_Base | |
alias _0r1g1na1_convert_escape_characters convert_escape_characters | |
def convert_escape_characters(text) | |
text = text.delete("\r") if text.is_a?(String) | |
_0r1g1na1_convert_escape_characters(text) | |
end | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 変数[n]の値が 1 なら中央、2 なら左、それ以外なら左 | |
Window_ScrollText::VID_SCROLL_ALIGN = 1 | |
class Window_ScrollText < Window_Base | |
#-------------------------------------------------------------------------- | |
# ● 制御文字つきテキストの描画 | |
#-------------------------------------------------------------------------- | |
def draw_text_ex(x, y, text) | |
reset_font_settings | |
text = convert_escape_characters(text) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Aボタンで選択中のセーブデータを削除します。 | |
class Scene_File < Scene_MenuBase | |
#-------------------------------------------------------------------------- | |
# ● セーブファイル選択の更新 | |
#-------------------------------------------------------------------------- | |
alias _cao_delsav_update_savefile_selection update_savefile_selection | |
def update_savefile_selection | |
return on_savefile_delete if Input.trigger?(:A) | |
_cao_delsav_update_savefile_selection |
NewerOlder