Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

Alteration to a script needed...

Continuing to work at my project... I found this which I could really use to flesh out one of the characters.

begin
SDK.log('Attack goes up with Level', 'sandgolem', 1, '6.07.06')
rescue
end

class Game_Actor < Game_Battler
alias sandgolem_atklvl_actor_baseatk base_atk
def base_atk
return sandgolem_atklvl_actor_baseatk + @level
end
end



and

begin
SDK.log('Defense goes up with Level', 'sandgolem', 1, '6.07.06')
rescue
end

class Game_Actor < Game_Battler
alias sandgolem_deflvl_actor_basepdef base_pdef
def base_pdef
return sandgolem_deflvl_actor_basepdef + @level
end
end

What I was wondering is if anyone could point out how to make it only affect certain actors, instead of just all of them. I've tried it myself, but despite the fact it looks like it'd be easy to do, I'm no scripter and it looks like the proper way to do it has escaped me.
If anyone sees a way to do this, I'd love the assistance.

Thanks in advance. :]
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top