New account registration is temporarily disabled.

ONE MORE THING ABOUT RMVX

Posts

Pages: 1
Im trying to figure out how to make an auto life state where when the char's hp=0 his hp will fully recover.
I tried to store his hp in a variable in a Common Event with no trigger and it doesnt work.
Can u help?
While I'm sure there's an easier way to script this, you can always make a battle event that is triggered by a toon being inflicted with the Auto-Life state. Then, check to see if the toon's HP is 0. If it is, you revive 'em and remove the state.

In theory, I believe that would work. Haven't actually programmed it to see.

EDIT: You would have to create an event page for every party member using this method.
I tried that and it didnt work and i cant find a script anywhere.

EDIT: I found the right script and itll do for now.
Craze
why would i heal when i could equip a morningstar
15170
      #----------------------------------------------------------------------
# <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 /(?:AUTO_LIFE|autolife)[ ](\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

I made this because I'll probably need it, anyway. Requires Melody. Go to BEM III and paste that chunk in the Lunatic Status Effects section (near the end of BEM III). Paste it after the stat degen/regen stuff if you're lost.

I'll eventually make it and a bunch of other status effects plug-and-play, but for now, learn to use BEM.

If you're not using Battle Engine Melody, you're stupid anyway.
Ok. now ive got another problem.

I am trying to make a Limit Break system similar to FF7 Dirge of Cerberus. I made an item that gives you a Limit Active state and a common event that gives you the skill when the status is inflicted. then i placed a timer for 5:00min and when it is up, the Limit is removed from the skill list. all of that works fine except that it wont let me use the skill in battle and the item will sometimes say it missed. when it does work, it shows up in the list, but i cant use it. plz help.
Craze
why would i heal when i could equip a morningstar
15170
Look for Mithran's State Parameters script for states that grant skills.

Do you have the skill set so that it will work in battle, or just the menu?

Alternatively, do FF7/8/9/10-style limit breaks using Melody's built-in Rage.
post=205365
Im trying to figure out how to make an auto life state where when the char's hp=0 his hp will fully recover.
I tried to store his hp in a variable in a Common Event with no trigger and it doesnt work.
Can u help?


instead of activating it in every map...Do a common event, way easier.
Craze
why would i heal when i could equip a morningstar
15170
Or just my script.
post=205628
Or just my script.


That would be entirely too easy, Craze. People pick Rpgmaker to make things harder on themselves.
Pages: 1