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

[XP]Guts

Question

In games such as Star Ocean and Valkyrie Profile, whenever a character would take enough damage to die, there is a chance she instead ends up at 1 HP.

 

EDIT: This is the script I've managed to write.

 

It still can be better if someone could direct me on how to display this image saying "Guts!" (using the Remodeled Damage Display Script by cogwheel).

 

Any help with that will be appreciated. In the meantime, here's the script.

 

 

#------------------------------------------------------------------------------
#Guts by Bahamut
#------------------------------------------------------------------------------

class Game_Battler
 alias guts_dead? dead?
#--------------------------------------------------------------------------
# * Decide Incapacitation
#--------------------------------------------------------------------------
def dead?
guts_dead?
 if self.hp == 0  #guts
 unless self.states.include?(1)
guts = rand(100 - 1)
unless self.is_a?(Game_Enemy)
guts += self.level
end
$game_switches[123] = true
  if guts > 90 # default 90
	self.hp = 1
  end
end
 end # end guts
 return (@hp == 0 and not @immortal)
end
end

Share this post


Link to post
Share on other sites

6 answers to this question

Recommended Posts

  • 0

I managed to get the script to run only once per character. Yet I'm still stuck on adding the actor's level and displaying the picture.

 

EDIT: I added the actor's level now. The script in the first post is updated. If someone is familiar with the RTAB system I would appreciate some help on that final part.

Share this post


Link to post
Share on other sites
  • 0

I was looking for a script like this. I can't wait for it to be done. For showing the picture, maybe that could be an ailment. The ailment shows the picture "guts" for a few seconds and then disapears.

Share this post


Link to post
Share on other sites
  • 0

Well, the script is working fine like this. The "displaying the picture" part is what I can't do since I'm not very good at scripting. But you can use it "as is".

 

PS. What do you mean by "ailment"?

Share this post


Link to post
Share on other sites
  • 0

Wow, Nisage! You just love ailments don't you! This looks really cool! I hope it works out great when its finished!

Share this post


Link to post
Share on other sites
  • 0

Is there a way to make Guts work more on certain monsters? I noticed when I battled some they used Guts to stay alive a bit longer, makes things more fun if the monsters are stubborn.

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...