(For this, I'll refer Actor A the actor that uses the skill, and Actor B another actor).
So, as I was working on my script I wanted to add these two features:
-Add this to the formula:
ActorB.ATK * multiplier
or ActorB.MAT * multiplier
-Share EXP when Actor B is not on Actor A's party.
The notetags that will be used for these are < ATK/MAT tag assault: [ActorID]> and <Share x% with [ActorID]> respectively.
A ) I tried to use Yanfly's Lunatic Damage to add the formula, but to no success. Is there any way to add these?
B )Is the second feature possible?
Here's the script:
#------------------------------------------------------------------------------# Setup#------------------------------------------------------------------------------# 1. Place this script underneath the ▼ Materials area.# 2. Set the notetags.# 3. Done.#------------------------------------------------------------------------------# EULA#------------------------------------------------------------------------------# NONE RIGHT NOW#------------------------------------------------------------------------------def ADK_CONFIG_TAGTEAM#------------------------------------------------------------------------------# Config#------------------------------------------------------------------------------# Activates the Tag Team Damage Formula. You must add Yanfly's Lunatic Damage# script to work.#------------------------------------------------------------------------------ADK_TAGATTACK = falseend#-------------------------------------------------------------------------------# END OF CONFIG. EDIT ANYTHING BELOW THIS AT YOUR OWN RISK. I AM NOT RESPONSIBLE# FOR ANY DAMAGES CAUSED BY EDITS.#-------------------------------------------------------------------------------def ADK_TAGASSAULTif ADK_TAGATTACK = true #Not functioning as I removed the formula and the variables alias lunatic_damage_extension_ldp4 lunatic_damage_extension def lunatic_damage_etention(formula, a, b, item, total_damage) case formula.upcase when /tag assault: (\d+)/i value += item.damage.eval(user, self, $game_variables) rate = value += else return lunatic_damage_extension_ldp2(formula, a, b, item, total_damage) end return valueendendRPG::Skill.class_eval do def tag_team? return true if @note =~ /<Swap OK>/i return false endendRPG::Actor.class_eval do def tag_team if @note =~ /<SwapWith: (\d+)>/i return $1.to_i end endendGame_Battler.class_eval do alias_method :dualpersona_use_item_7aw4, :use_item def use_item(item) dualpersona_use_item_7aw4(item) if item.tag_team? swap_target = $data_actors[@actor_id].tag_team if swap_target $game_party.add_actor(swap_target) $game_party.remove_actor(@actor_id) end end endend Thanks for the help.
So, as I was working on my script I wanted to add these two features:
-Add this to the formula:
ActorB.ATK * multiplier
or ActorB.MAT * multiplier
-Share EXP when Actor B is not on Actor A's party.
The notetags that will be used for these are < ATK/MAT tag assault: [ActorID]> and <Share x% with [ActorID]> respectively.
A ) I tried to use Yanfly's Lunatic Damage to add the formula, but to no success. Is there any way to add these?
B )Is the second feature possible?
Here's the script:
#------------------------------------------------------------------------------# Setup#------------------------------------------------------------------------------# 1. Place this script underneath the ▼ Materials area.# 2. Set the notetags.# 3. Done.#------------------------------------------------------------------------------# EULA#------------------------------------------------------------------------------# NONE RIGHT NOW#------------------------------------------------------------------------------def ADK_CONFIG_TAGTEAM#------------------------------------------------------------------------------# Config#------------------------------------------------------------------------------# Activates the Tag Team Damage Formula. You must add Yanfly's Lunatic Damage# script to work.#------------------------------------------------------------------------------ADK_TAGATTACK = falseend#-------------------------------------------------------------------------------# END OF CONFIG. EDIT ANYTHING BELOW THIS AT YOUR OWN RISK. I AM NOT RESPONSIBLE# FOR ANY DAMAGES CAUSED BY EDITS.#-------------------------------------------------------------------------------def ADK_TAGASSAULTif ADK_TAGATTACK = true #Not functioning as I removed the formula and the variables alias lunatic_damage_extension_ldp4 lunatic_damage_extension def lunatic_damage_etention(formula, a, b, item, total_damage) case formula.upcase when /tag assault: (\d+)/i value += item.damage.eval(user, self, $game_variables) rate = value += else return lunatic_damage_extension_ldp2(formula, a, b, item, total_damage) end return valueendendRPG::Skill.class_eval do def tag_team? return true if @note =~ /<Swap OK>/i return false endendRPG::Actor.class_eval do def tag_team if @note =~ /<SwapWith: (\d+)>/i return $1.to_i end endendGame_Battler.class_eval do alias_method :dualpersona_use_item_7aw4, :use_item def use_item(item) dualpersona_use_item_7aw4(item) if item.tag_team? swap_target = $data_actors[@actor_id].tag_team if swap_target $game_party.add_actor(swap_target) $game_party.remove_actor(@actor_id) end end endend Thanks for the help.