ぱいギル 2017/02/19 02:42

RPGツクール素材5

<利用規約>
ツクール利用規格に準拠。連絡不要。
添付テキストなどの著作権表示不要。
<使用方法>VXAce専用


1.文章を瞬間表示切り替え。
スイッチ変数9番でONOFF。

#【pai013】文字ウェイトゼロ
#--------------------------------------------------------------------------
# ● フラグのクリア
#--------------------------------------------------------------------------
class Window_Message < Window_Base
def clear_flags
@show_fast = $game_switches[9] # 早送りフラグ
@line_show_fast = false # 行単位早送りフラグ
@pause_skip = false # 入力待ち省略フラグ
end
end


2.床ダメージを変更。
変数14番にダメージ数値を入れる

#【pai021】床ダメージ変更
#--------------------------------------------------------------------------
# ● 床ダメージの基本値を取得
#--------------------------------------------------------------------------
class Game_Actor < Game_Battler
def basic_floor_damage
return $game_variables[14]
end
end


3.戦闘後死亡した味方をHP1で復活。

#【pai022】戦闘終了後に死亡している味方をHP1にする
#--------------------------------------------------------------------------
# ● 戦闘終了
# result : 結果(0:勝利 1:逃走 2:敗北)
#--------------------------------------------------------------------------
module BattleManager
def self.battle_end(result)
@phase = nil
@event_proc.call(result) if @event_proc
$game_party.on_battle_end
$game_troop.on_battle_end
revive_battle_members
SceneManager.exit if $BTEST
end
end


4.戦闘終了後に毒などのステータスを消す。

#【pai024】●戦闘終了後に毒などのステータスをクリアする
class Game_Battler < Game_BattlerBase
def on_battle_end
@result.clear
remove_battle_states
remove_all_buffs
clear_actions
clear_tp unless preserve_tp?
appear
clear_states
end
end


この記事が良かったらチップを贈って支援しましょう!

チップを贈るにはユーザー登録が必要です。チップについてはこちら

記事のタグから探す

月別アーカイブ

記事を検索