Project1
标题:
横板2.7的战斗提示信息求助
[打印本页]
作者:
samelidifinte
时间:
2011-2-26 15:39
提示:
作者被禁止或删除 内容自动屏蔽
作者:
cangyu2004
时间:
2011-2-26 17:22
- - :L 没有啥是不可能的,就是要脚本高手来处理下
作者:
Rion幻音
时间:
2011-2-26 17:48
脚本在这:
http://kaisouryouiki.web.fc2.com ... l_time_gain_exp.txt
作者:
samelidifinte
时间:
2011-2-27 01:30
提示:
作者被禁止或删除 内容自动屏蔽
作者:
Rion幻音
时间:
2011-2-27 15:14
我是可以打开,但会变成乱码……
算了,脚本在这:
=begin
仛儕傾儖僞僀儉EXP仛
宱尡抣偺庢摼傪丄愴摤廔椆帪偱偼側偔揋傪搢偟偨偦偺弖娫偵峴偄傑偡丅
儗儀儖傾僢僾傕偦偺僞僀儈儞僌偱峴偄傑偡丅
ver1.00
Last Update : 2009/11/28
11/28 : 怴婯
傠偐傫丂丂丂http://kaisouryouiki.web.fc2.com/
=end
#===========================================
# 愝掕売強
#===========================================
module Rokan
module RealTimeGainExp
# 摨偠僄僱儈乕偐傜偼俀夞埲忋宱尡抣傪庢摼偟側偄傛偆偵偡傞偐偳偆偐
# 乽搢偡仺宱尡抣庢摼仺暅妶仺搢偡仺宱尡抣庢摼仺暅妶乿偲偄偆棳傟傪杊偖堊丅
EDEG = false
# 宱尡抣庢摼帪偵昞帵偡傞儊僢僙乕僕
# (愴摤晄擻儊僢僙乕僕偺捈屻偵憓擖偝傟傑偡)
GRE_MESSAGE = "%s 偺宱尡抣庢摼両"
end
end
#===========================================
# 偙偙傑偱
#===========================================
$rsi = {} if $rsi == nil
$rsi["儕傾儖僞僀儉EXP"] = true
class Game_Enemy < Game_Battler
#--------------------------------------------------------------------------
# 仠 僀儞僋儖乕僪 Rokan::DeadActorGainExp
#--------------------------------------------------------------------------
include Rokan::RealTimeGainExp
#--------------------------------------------------------------------------
# 仠 岞奐僀儞僗僞儞僗曄悢
#--------------------------------------------------------------------------
attr_accessor :collapse_exp # 寕攋宱尡僼儔僌
#--------------------------------------------------------------------------
# 仠 僆僽僕僃僋僩弶婜壔
#--------------------------------------------------------------------------
alias set_collapse_exp initialize
def initialize(index, enemy_id)
set_collapse_exp(index, enemy_id)
@collapse_exp = false
end
#--------------------------------------------------------------------------
# 仠 僐儔僾僗偺幚峴
#--------------------------------------------------------------------------
alias send_exp_troop perform_collapse
def perform_collapse
send_exp_troop
if $game_temp.in_battle && dead?
$game_troop.realtime_exp += exp if ! @collapse_exp || ! EDEG
@collapse_exp = true
end
end
end
class Game_Troop < Game_Unit
#--------------------------------------------------------------------------
# 仠 岞奐僀儞僗僞儞僗曄悢
#--------------------------------------------------------------------------
attr_accessor :realtime_exp # 偦偺僞乕儞偺庢摼宱尡抣検
#--------------------------------------------------------------------------
# 仠 僋儕傾
#--------------------------------------------------------------------------
alias rtexp_initialize clear
def clear
rtexp_initialize
rtexp_clear
end
#--------------------------------------------------------------------------
# 仠 儕傾儖僞僀儉EXP偺僋儕傾
#--------------------------------------------------------------------------
def rtexp_clear
@realtime_exp = 0
end
#--------------------------------------------------------------------------
# 仠 宱尡抣偺崌寁寁嶼丂丂丂仸嵞掕媊
#--------------------------------------------------------------------------
def exp_total
return 0
end
end
class Scene_Battle < Scene_Base
#--------------------------------------------------------------------------
# 仠 僀儞僋儖乕僪 Rokan::DeadActorGainExp
#--------------------------------------------------------------------------
include Rokan::RealTimeGainExp
#--------------------------------------------------------------------------
# 仠 峴摦寢壥偺昞帵
#--------------------------------------------------------------------------
alias rtexp_result display_action_effects
def display_action_effects(target, obj = nil)
rtexp_result(target, obj = nil)
gain_rtexp
end
#--------------------------------------------------------------------------
# 仠 儕傾儖僞僀儉EXP傪儊儞僶乕偵暘攝
#--------------------------------------------------------------------------
def gain_rtexp
return if $game_troop.realtime_exp == 0
member = $rsi["愴摤晄擻幰宱尡抣庢摼"] ?
$game_party.members : $game_party.existing_members
exp = $game_troop.realtime_exp
for actor in member
point = exp
point *= (DEPP / 100.0) if $rsi["愴摤晄擻幰宱尡抣庢摼"] && actor.dead?
last_level = actor.level
last_skills = actor.skills
actor.gain_exp(point.to_i, true)
end
wait_for_message
$game_troop.rtexp_clear
end
#--------------------------------------------------------------------------
# 仠 儕傾儖僞僀儉EXP庢摼偺昞帵
#--------------------------------------------------------------------------
def display_rtexp(target)
return if target.actor?
text = sprintf(GRE_MESSAGE, $game_troop.realtime_exp)
@message_window.add_instant_text(text)
end
#--------------------------------------------------------------------------
# 仠 晅壛偝傟偨僗僥乕僩偺昞帵
#--------------------------------------------------------------------------
alias rtexp? display_added_states
def display_added_states(target, obj = nil)
rtexp?(target, obj = nil)
display_rtexp(target) unless $game_troop.realtime_exp == 0
end
end
复制代码
作者:
samelidifinte
时间:
2011-2-27 16:00
提示:
作者被禁止或删除 内容自动屏蔽
欢迎光临 Project1 (https://rpg.blue/)
Powered by Discuz! X3.1