Drain for Party

● ARCHIVED · READ-ONLY
Started by dinhbat3 10 posts View original ↗
  1. I am attempting to make a skill that does the following:

    1. Does X amount of damage to an enemy.

    2. Restores X/Y amount of HP to all allies (Y is the number of party members.. I.E. I want it to be divided evenly between the party)

    3. Shows the HP restore value with Yanfly's Battle Engine.

    Any suggestions on how I can accomplish this?

    I have Yanfly's Lunatic Damage would that be an option?

    Additionally I have read this topic:http://forums.rpgmakerweb.com/index.php?/topic/14300-absorb-enemy-hp-and-give-to-all-allies/

    but would like to avoid another script as the list is already getting a bit overwhelming as it is.

    Thanks in advance to anyone who can help!

    ~ Dinhbat

    **EDIT**

    Also saw this post: http://forums.rpgmakerweb.com/index.php?/topic/12434-healing-party-via-damage/

    The healing doesn't pop up.
  2. I've moved this thread to RGSSx Script Support. Please be sure to post your threads in the correct forum next time. Thank you.


    Can you add links to the script(s)?


    You might be able to do something in the damage formula:


    - calculate the damage into a variable called dmg;


    - set all member's hp restore (not sure of the actual term) to (dmg / $game_party.battlers.size)


    - return dmg


    Check the damage formula thread for some other ideas - it might also provide the correct terminology.


    What I'm NOT sure of is whether that will produce the popups you're after.
  3. Sorry about that Shaz.

    Link added, and updated OP. I tried the damage bar, but it doesn't pop up unfortunately =\

    ~ Dinhbat
  4. This can be done using Tsukihine's Effects Manager and then an effect which does what you are looking for.

    Alternatively, you could try something like this as a damage formula (needs testing)

    c=4*a.atk-2*b.def;d=$game_party.alive_members;d.size.times{|i|d.hp+=(c*0.25).to_i};c

     

    This means that whatever damage is caused by the caster, that amount of HP is divided among the active party.  The 0.25 is the share that each one will receive.

     

    Choose either one enemy or all enemies in the Scope box of the skill.
  5. Hey KSJP.

    Thanks for the response... But both of those solutions are in my OP... I'm going to assume you didn't click the links xD

    Both also don't produce pop ups, which is why neither is a solution as explained in the post.

    ~ Dinhbat
  6. It's not the hp you have to change. It's a different variable name that determines whether there's a popup or not (or, in the default scripts, whether there's a message or not). What I'm not sure of is whether you then have to tell it to process those popups/messages, as usually it only looks at actions that affect the user or the target. That's why I asked you to add the script links, so someone with better knowledge of the battle system could see if the scripts do any special checks that the default system doesn't do, and could state how to trigger the popups.
  7. Hmm.. Already added the links when you first asked... Are they not working?

    Double checked and they seem fine =\ Let me know if I am mistaken.

    ~ Dinhbat
  8. I said "that's why I asked you to add the links". I didn't ask you to add them again ;)


    My response was kinda targetted more at ksjp17's solution which used hp in the damage formula.
  9. Found a solution. This topic can be closed. Thanks to TheoAllen for helping =D

    ~ Dinhbat
  10. This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.