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.

[RESOLVED] Manipulating enemy stats in battle?

There's an easier-than-I-thought way of using RGSS to alter plarty members' attributes at will during battles. I wanted to know...is there a similar way to do it for monsters, too?

At this moment, I'm working on a game where certain enemies increase in strength as the game passes on (a la Final Fantasy VIII). I know it's possible to do this with status conditions, but there are two drawbacks to this approach:

1) I'd have to make a bunch of them for varying degrees of HP, SP, etc., and
2) I'd only be able to assign percentages.

Is it possible to assign numerical values to enemies on a case-by-case basis, and can you do it in the same way as you can with party members (actors)?
 

Anonymous

Guest

Code:
for i in 1...$game_troop.enemies.size
  if $game_troop.enemies[i].enemy_id == (sumthin goes here)
    $game_troop.enemies[i].atk += 1
  end
end
 
SephirothSpawn made some scripts that addresses this issue. I believe its the Dynamic Enemies Script, not 100% sure though. I do know however that he made a script for this
 

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