back on the old forum WcW had started working on a blood mage script for me. He had finished it but there were a bug in it and when I went to use magic not only would it take my Hp like I wanted it to but it still took my Mp. I was just wongering if anybody could help me finish it.
#============================================================================
# Blood Mage Magic Script v 1.0.0
# by WcW
#
# Introduction:
# I made this script for Akkein(Akkrin) at http://chaosproject.co.nr/ at his request.
# If he has allowed you to use this, enjoy. If he has not, ask him.
#
# Features:
# - Allows for certain classes to use up their HP instead of MP when using
# spells.
# - Lightweight.
#
# Instructions:
# Place this script below the default scripts that come with RMXP, but above
# all of Blizzard's scripts and the "Main" script that is included with RMXP.
# Then add the IDs of all your "Blood Mage" classes to the [] thingy in the
# CONFIG section.
#
# Compatibility:
# This has no known compatibility issues, but it might because it edits tiny
# parts of Scene_Battle. If you find any problems, please post them at
# http://chaosproject.co.nr/.
#
# WcW, Signing Off
#============================================================================
#----------------------------------------------------------------------------
# * CONFIG
# Configuration section
#----------------------------------------------------------------------------
class Game_System
attr_reader :bloodmages
alias init_bloodmage_later initialize
def initialize
@bloodmages = [] # Between the "[" and "]", add the ID of each class the you
# want to be a blood mage and seperate each with a comma.
init_bloodmage_later
end
end
# Below lies the code
#----------------------------------------------------------------------------
# * Battle Scene
#----------------------------------------------------------------------------
class Scene_Battle
#--------------------------------------------------------------------------
# * Make Skill Action Result
#--------------------------------------------------------------------------
def make_skill_action_result
@skill = $data_skills[@active_battler.current_action.skill_id]
unless @active_battler.current_action.forcing
unless @active_battler.skill_can_use?(@skill.id)
$game_temp.forcing_battler = nil
@phase4_step = 1
return
end
end
if @active_battler.is_a?(Game_actor) &&
$game_system.bloodmages.include?(@active_battler.class_id)
@active_battler.hp -= @skill.sp_cost
else
@active_battler.sp -= @skill.sp_cost
end
@status_window.refresh
@help_window.set_text(@skill.name, 1)
@animation1_id = @skill.animation1_id
@animation2_id = @skill.animation2_id
@common_event_id = @skill.common_event_id
set_target_battlers(@skill.scope)
for target in @target_battlers
target.skill_effect(@active_battler, @skill)
end
end
end