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.

Making the script to recognize who's turn is it in the battle

Status
Not open for further replies.
Okay, I'm stated to feel like I've been totally ignored here so if you don't mind may I ask another question about RGSS? :'(

Okay, I wanted to ask about the Game_Battler 3 section of the default script. Is there a possibility for me to make it recognize who's attacking at that turn
(The actor or the enemy)

For example, when the enemy with low attack is targetting the actor with high defense and they deal 1 or 2 damage and when actor with low attack is targetting high defense monster, they at least deal a decent damage (50 or 60)

Heres a little idea from me, I was wondering if it can be inserted into the Game_Battler 3 script and make the game recognize if that attack came from the actor

Code:
if [Variable for "If attack came from the actor]
     self.damage += attacker.str
else (if came from enemy instead)
     self.damage += 1
end

Please help 8-)
 
Yup, it helps me out thanks for the corrections. I asked this question its because I need to adjust the damage dealt in battles :)

At the same time, gotta say sorry (to anyone involved) for such a selfish looking question :(

Topic resolved, please closed the thread anyone. I don't have anything to ask about this anymore (You know how embarrassed I am asking such question :p)
 

khmp

Sponsor

Kinnison;326470 said:
At the same time, gotta say sorry (to anyone involved) for such a selfish looking question :(

All questions are selfish when you think about it so don't apologize for it. You shouldn't feel guilty for asking them. Just glad to see you got a solution.
 
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