The RPG Maker Resource Kit

RMRK RPG Maker Creation => RPG Maker General => General Scripting => Topic started by: rofl1337 on October 01, 2012, 02:34:50 PM

Title: [VXA] Damage Formula - Check if skill is learned
Post by: rofl1337 on October 01, 2012, 02:34:50 PM
Hey Community,
I want to make a skill, whose damage is augmented, when another skill is learned by the user.
Something like this,

a.weapons.include?($data_weapons[1]) ? 1000 : 200

but I don't want to check if a weapon is equipped, but if a particular skill is learned.

Sincerely
Title: Re: [VXA] Damage Formula - Check if skill is learned
Post by: D&P3 on October 01, 2012, 03:59:56 PM
$game_actors[1].skill_learn?(8) # <= Does Ralph Know Fire Breath?
$game_actors[1].skill_learn?(8) ? 1000 : 200
Title: Re: [VXA] Damage Formula - Check if skill is learned
Post by: rofl1337 on October 01, 2012, 05:46:23 PM
Hmm, can't get it to work.
I tried putting it directly into the formula box and and I tried making a new function like this one.
class Game_Battler < Game_BattlerBase
 
  def augmented_spell()
   
    if $game_actors[1].skill_learn?(8);777;else;101;end;
   
  end

end


Didn't work either way.