Jump to content
New account registrations are disabed. This website is now an archive. Read more here.
  • 0
Sign in to follow this  
LaDestitute

Storing damage taken in a variable?

Question

I need to know if there's a way to store damage taken by an actor during a turn into a variable? I'm working on a move where the actor can't do anything one turn but they counter the next turn and deal damage equal to x2 of the damage they received. I tried using variables and subtracting the before from the after but it didn't work as I expected.

Share this post


Link to post
Share on other sites

5 answers to this question

Recommended Posts

  • 0

Hmm, well, is there a mathimatichal equation or formula that can be used to find the damage taken or in a math case, a specific number? I know the equation might start with something like x-y=z

Share this post


Link to post
Share on other sites
  • 0

There might be. I mean, it'd be complicated. You just have to set a variable that has the HP your character had before they start to take damage, but I haven't used XP in a while so I wouldn't know how to begin. But I do know how to paralyze your character with their own skill.

Share this post


Link to post
Share on other sites
  • 0

Let's see.

 

I don't have time to put it into actin right now, but here's how it goes:

 

Game_Actor has an attribute called damage, this attribute is pretty much the damage currently being dealt to this actor. Go into the game_actor script and find a nice spot, here, you should put:

$game_variables[1] = self.damage

 

where you put it is really important, I'll help you out tomorrow.

Share this post


Link to post
Share on other sites
  • 0

Let's see.

 

I don't have time to put it into actin right now, but here's how it goes:

 

Game_Actor has an attribute called damage, this attribute is pretty much the damage currently being dealt to this actor. Go into the game_actor script and find a nice spot, here, you should put:

$game_variables[1] = self.damage

 

where you put it is really important, I'll help you out tomorrow.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...