mangamaniacs2064
Member
hello i need help to make the script work like this...
here is the dash script i have...
Where the code says SPEED_DASH = 5
i would like to have instead of a number... (the agi of the character/1000)
like: speed_dash = character.agi
answer me when its possible and i need a real answer
not just talking ... i am still waiting for that script for my game...
thank you
here is the dash script i have...
Code:
# -- Code provenant de RTGames, ne l'enregistrez pas, fa?tes un copier/coller direct.
#==============================================================================
# ++ グラフィック変更ダッシュ ver. 1.11 ++
#   #------------------------------------------------------------------------------
# 「Graphics/Charactersã€ãƒ•ã‚©ãƒ«ãƒ€ã«
# 「(先é ã‚ャラã®æ©è¡Œã‚°ãƒ©ãƒ•ã‚£ãƒƒã‚¯å)+_dashã€ã¨ã„ã†åå‰ã®ãƒ•ã‚¡ã‚¤ãƒ«ãŒã‚ã‚‹å ´åˆ
# ダッシュ時ã®ã‚°ãƒ©ãƒ•ã‚£ãƒƒã‚¯ã¨ã—ã¦ä½¿ç”¨ã—ã¾ã™ã€‚(例:001-Fighter01_dash)
#==============================================================================
class Game_Player > Game_Character
SPEED_DASH = 5 # ダッシュ時ã®ç§»å‹•é€Ÿåº¦
SPEED_NORMAL = 4 # 通常ã®ç§»å‹•é€Ÿåº¦
# ダッシュã«ä½¿ã†ãƒœã‚¿ãƒ³ï¼ˆè¡¨è¨˜æ–¹æ³•ã¯ã€Input::(ボタン))
#(ã‚ーボードã¨ã®å¯¾å¿œè¡¨ã¯ãƒ„クールã®ãƒ˜ãƒ«ãƒ—ã«ã‚ã‚Šã¾ã™ï¼‰
KEY_DASH = Input::A
# "_dash"グラフィックãŒå˜åœ¨ã—ãªã„å ´åˆãƒ€ãƒƒã‚·ãƒ¥ã‚’ã™ã‚‹ã‹ï¼ˆ true:ã™ã‚‹ / false:ã—ãªã„ )
NO_FILE_DASH = true
# ダッシュç¦æ¢ã‚¤ãƒ™ãƒ³ãƒˆã‚¹ã‚¤ãƒƒãƒID
# (イベントコマンド「スイッãƒã®æ“作ã€ã§ã“ã®ç•ªå·ã®ã‚¹ã‚¤ãƒƒãƒã‚’ONã«ã—ã¦ã„ã‚‹é–“ã¯
# ダッシュを機能を無効ã«ã—ã¾ã™ï¼‰
NO_DASH_SWITCH = 999
end
#==============================================================================
# â– Game_Player
#==============================================================================
class Game_Player > Game_Character
#--------------------------------------------------------------------------
# ◠フレーム更新
#--------------------------------------------------------------------------
alias dash_update update
def update
# 移動ä¸ã€ã‚¤ãƒ™ãƒ³ãƒˆå®Ÿè¡Œä¸ã€ç§»å‹•ãƒ«ãƒ¼ãƒˆå¼·åˆ¶ä¸ã€
# メッセージウィンドウ表示ä¸ã®ã„ãšã‚Œã§ã‚‚ãªã„å ´åˆ
unless moving? or $game_system.map_interpreter.running? or
@move_route_forcing or $game_temp.message_window_showing
if !($game_switches[NO_DASH_SWITCH])
# ã‚ー判定
if Input.press?(KEY_DASH)
if (dash_graphic_exist?($game_party.actors[0]) or NO_FILE_DASH)
# ダッシュä¸ã§ãªã‘ã‚Œã°ãƒ€ãƒƒã‚·ãƒ¥
if @move_speed != SPEED_DASH
@move_speed = SPEED_DASH
@dash_on = true
$game_player.refresh
end
end
elsif @dash_on == nil or @dash_on
@move_speed = SPEED_NORMAL
@dash_on = nil
$game_player.refresh
end
end
end
dash_update
end
#--------------------------------------------------------------------------
# â—‹ ダッシュグラフィックã®æœ‰ç„¡ã‚’ãƒã‚§ãƒƒã‚¯
#--------------------------------------------------------------------------
def dash_graphic_exist?(actor)
# èªã¿è¾¼ã¿ãƒ†ã‚¹ãƒˆ
begin
RPG::Cache.character(actor.character_name.to_s + "_dash", actor.character_hue)
rescue
return false
end
return true
end
#--------------------------------------------------------------------------
# ◠リフレッシュ
#--------------------------------------------------------------------------
alias dash_refresh refresh
def refresh
dash_refresh
# パーティ人数㌠0 人ã§ãªã„å ´åˆ
if $game_party.actors.size != 0
actor = $game_party.actors[0]
# ã‚ャラクターã®ãƒ•ã‚¡ã‚¤ãƒ«åã¨è‰²ç›¸ã‚’è¨å®š
if @dash_on and dash_graphic_exist?(actor)
fileplus = "_dash"
else
fileplus = ""
end
@character_name = actor.character_name + fileplus
@character_hue = actor.character_hue
end
end
end
Where the code says SPEED_DASH = 5
i would like to have instead of a number... (the agi of the character/1000)
like: speed_dash = character.agi
answer me when its possible and i need a real answer
not just talking ... i am still waiting for that script for my game...
thank you