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.

Dealing damage to the particular Actor

The title says it all, I know that the "Deal Damage" command in RMXP only deals damage to whoever that is standing on that spot in the party. Like when I set the command "Deal Damage-Actor No.1" (Which deal damage to the actor that is standing on the first spot in the party)

Is there a single RGSS statement that allows me to deal damage to that Actor directly rather than on that spot?

Well, I'm planning to mix this up with some event commands. So a lengthy script is not necessary.  ::)
 

poccil

Sponsor

Ah, I assumed you meant outside of battle.  Here:

Code:
 actor=$game_actors[X]
 actor.hp -= Y
 if $game_temp.in_battle
  actor.damage = Y
  actor.damage_pop = true
 end
 

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