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.

Absorb and Null Armors

Status
Not open for further replies.
I wrote this script to make it so you could have armors that absorb, nullify and increase damage from certain elements. I thought I had everything right, but then got an error that I don't completely understand. Could I have some help, please? (Just enter the game, talk to the elemental and battle it to see the error. It pops up whenever one of the enemies uses a spell.)

Edit: Just fixed that error with a bit of help, but I'm getting another error. It's a no method error, and the method definitely exists. Again, it happens whenever an enemy uses an elemental spell.
 
I might know whats wrong,

in Game_Battler 3, line 350 , Change :

weakest = [weakest, self.element_rate(i)].max

To :

weakest = [weakest, bearcat_absorb_actor_element_rate(i)].max


Does this fix your problem ? ^^
 
This topic has been resolved. If Bearcat or any other users have any questions or further problems regarding this topic, please create a new thread about them.

Thank you!
 
Status
Not open for further replies.

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