Submit Your Article


 
RPG Maker

Welcome Guest ( Log In | Register )


  Games Resources RPG Maker VX RPG Maker XP Scripts Tutorials Downloads

 
Reply to this topicStart new topic
> Reraise / Autolife, I'm sure it's possible, but ...
Pillanious
post Oct 10 2010, 09:20 PM
Post #1


Level 8
Group Icon

Group: Revolutionary
Posts: 125
Type: Musician
RM Skill: Beginner




I've been mulling around ideas in my head as to the simplest way to implement an auto-resurrect spell for an incapacitated character, and the only way I'm seeing that may work would be a conditional branch common event script that is called in battles

(I.e. Character X has Death & Autolife inflicted, Remove death status & restore HP +250)

Is there a more simplistic way to enable something like this, or would that be the best way to go about doing it?
Go to the top of the page
 
+Quote Post
   
literarygoth
post Oct 12 2010, 10:08 AM
Post #2


Level 30
Group Icon

Group: Revolutionary
Posts: 701
Type: Writer
RM Skill: Skilled




You're correct with the idea of using conditional branches and common events within battle. It can be confusing and a bit tedious to implement, but common events are very powerful.

The only other way to have this work, and be relatively easy would be to use a script. YERD or YEZ custom state effects would be perfect for what you're looking for. YEZ is more recent than YERD, I'm not at my computer at home so I don't have a link for you, but I'm certain that YEZ custom Status effects is floating around somewhere in the VS scripts section of this forum.
Or you could google it happy.gif


__________________________


Please follow the links below to view my project and creative works:



Lit's Art Closet
Go to the top of the page
 
+Quote Post
   
Pillanious
post Oct 13 2010, 11:45 PM
Post #3


Level 8
Group Icon

Group: Revolutionary
Posts: 125
Type: Musician
RM Skill: Beginner




QUOTE (literarygoth @ Oct 12 2010, 02:08 PM) *
You're correct with the idea of using conditional branches and common events within battle. It can be confusing and a bit tedious to implement, but common events are very powerful.

The only other way to have this work, and be relatively easy would be to use a script. YERD or YEZ custom state effects would be perfect for what you're looking for. YEZ is more recent than YERD, I'm not at my computer at home so I don't have a link for you, but I'm certain that YEZ custom Status effects is floating around somewhere in the VS scripts section of this forum.
Or you could google it happy.gif


I'm assuming it's the same as the one from YEM? smile.gif I'm using YEM in my game, I just wasn't aware I could do that.

I don't have scripting knowledge, though, so I'm not so sure I could create a react effect on my own

edit: I found this script while googling
edit2: figured out why it wasn't working and fixed it!
#----------------------------------------------------------------------
# <react effect: autolife x>
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# This causes the battler to automatically recover to x% MaxHP when
# they would otherwise be killed.
# Change the sub animation in order to use a custom revive animation.
#----------------------------------------------------------------------
when /(?:AUTOLIFE|AUTO_LIFE|)[ ](\d+)/i
if @added_states.include?(1) or @hp_damage > self.hp
remove_state(effect_state.id)
self.hp = 1
healing = self.maxhp * $1.to_i / 100
value = YEM::BATTLE_ENGINE::POPUP_SETTINGS[:rem_state]
value = sprintf(value, $data_states[1].name)
create_popup(value, "REMSTATE")
@hp_damage = -1 * healing
# Change the 42 to the id of any revive animation you wish to play,
# or to "nil" if you do not wish for any animation to play
@sub_animation_id = 42
end
----------------

This post has been edited by Pillanious: Oct 14 2010, 02:46 AM
Go to the top of the page
 
+Quote Post
   
literarygoth
post Oct 14 2010, 10:22 AM
Post #4


Level 30
Group Icon

Group: Revolutionary
Posts: 701
Type: Writer
RM Skill: Skilled




YEM is an awesome script - personally one of my favorites. This is due mostly because Yanfly has included practically every script he has created prior inside YEM.

There is the custom states script inside YEM.
I know it's really long, but the very first portion of YEM (can't recall what that section is called, not at my home computer atm) contains the instructions for every single script that was encorporated, including the custom states. Custom states has an auto life / auto recover type effect in it.

Anyways, glad you found what you needed happy.gif


__________________________


Please follow the links below to view my project and creative works:



Lit's Art Closet
Go to the top of the page
 
+Quote Post
   
Pillanious
post Oct 14 2010, 10:54 PM
Post #5


Level 8
Group Icon

Group: Revolutionary
Posts: 125
Type: Musician
RM Skill: Beginner




QUOTE (literarygoth @ Oct 14 2010, 02:22 PM) *
YEM is an awesome script - personally one of my favorites. This is due mostly because Yanfly has included practically every script he has created prior inside YEM.

There is the custom states script inside YEM.
I know it's really long, but the very first portion of YEM (can't recall what that section is called, not at my home computer atm) contains the instructions for every single script that was encorporated, including the custom states. Custom states has an auto life / auto recover type effect in it.

Anyways, glad you found what you needed happy.gif


Thanks for being so forthright with the suggestion! smile.gif
Go to the top of the page
 
+Quote Post
   

Reply to this topicStart new topic
2 User(s) are reading this topic (2 Guests and 0 Anonymous Users)
0 Members:

 

Lo-Fi Version Time is now: 19th June 2013 - 09:38 AM
RPG RPG Revolution is an Privacy Policy and Legal
eXTReMe Tracker