RMRK is retiring.
Server is paid up for the rest of 2026, but the forum may go after that. See here for more information. Please archive or save anything you would like to keep before 2027.
Main Menu
  • Welcome to The RPG Maker Resource Kit.

[VXA] Damage Formula - Check if skill is learned

Started by rofl1337, October 01, 2012, 02:34:50 PM

0 Members and 1 Guest are viewing this topic.

rofl1337

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

D&P3

$game_actors[1].skill_learn?(8) # <= Does Ralph Know Fire Breath?
$game_actors[1].skill_learn?(8) ? 1000 : 200
All of my scripts are totally free to use for commercial use. You don't need to ask me for permission. I'm too lazy to update every single script post I ever made with this addendum. So ignore whatever "rule" I posted there. :)

All scripts can be found at: https://pastebin.com/u/diamondandplatinum3

rofl1337

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.