UPLOAD, SHARE, PRESERVE MUGEN FOR ETERNITY!

Results 1 to 5 of 5

Thread: health regeneration help

  1. #1
    Join Date
    Nov 2021
    Location
    Posts
    7
    Uploads
    0
    Comments
    0

    Sad health regeneration help

    I'm trying to make a char that regen a 10% health but also does do that regen again after.



  2. #2
    Join Date
    Feb 2019
    Location
    Posts
    32
    Uploads
    0
    Comments
    479

    Default Re: health regeneration help

    Can you be a bit more specific lol? I know like 8 different ways to regen health. But I don't understand the nature of the second part of your question.

    "but also does do that regen again after"

    What does this mean? If you want the move to regen specifically 10% health. Then you would do something like:

    [State -2, LifeAdd]
    type = LifeAdd
    trigger1 = stateno = ? ;The stateno of the move that regens 10% HP
    value = lifemax/10

    But what is supposed to regen after that? Is it passive regeneration on top of the 10 percent? We need details lol

  3. #3
    Join Date
    Nov 2021
    Location
    Posts
    7
    Uploads
    0
    Comments
    0

    Default Re: health regeneration help

    i meant doesn't regen again after

    - - - Updated - - -

    i just started editing a character so idk much

    - - - Updated - - -

    also i need a passive trigger to make the character charge power passively

  4. #4
    Join Date
    Sep 2017
    Location
    Posts
    632
    Uploads
    8
    Comments
    10

    Default Re: health regeneration help

    Here's some really irresponsible code for basically cheating. Maybe you can do something with it. If you put this in a negative statedef, like at the bottom of the CMD file, you will get the value given per tick.

    Code:
    [State 0, InfHealth]
    type = LifeAdd
    triggerall = 1
    trigger1 = Life < Const(Data.Life)
    value = 10
    
    [State 0, InfPower]
    type = PowerAdd
    triggerall = 1
    trigger1 = Power < Const(Data.Power)
    value = 30

  5. #5
    Join Date
    Feb 2019
    Location
    Posts
    32
    Uploads
    0
    Comments
    479

    Default Re: health regeneration help

    In that case you want to use the lifemax code I posted. It will only regen 10% of the max HP. Meaning that it scales even when you edit the MUGEN characters base stats in the CNS. The other code provided here while very useful does not scale. So you'd have to update it every time you change the CNS stats.

    The passive power charge is actually pretty simple however:

    [State -2, PowerAdd]
    type = PowerAdd
    trigger1 = gametime%2=0
    value = 3


    Change the number value however you see fit!

Similar Threads

  1. How to make char regen to full health and transform when dies in low health????
    By zex(vasto lorde) in forum MUGEN Configuration Help
    Replies: 6
    Last Post: Sep 03, 2021, 12:22
  2. Turn Mode Life Regeneration
    By swooosh83 in forum MUGEN Configuration Help
    Replies: 4
    Last Post: Jun 26, 2020, 14:31
  3. Replies: 1
    Last Post: May 29, 2020, 17:52
  4. Regeneration ;-)
    By Darkitude in forum General MUGEN discussions
    Replies: 4
    Last Post: Apr 02, 2020, 16:46
  5. Regeneration of life and stamina of a character
    By XefironTN in forum MUGEN Development Help
    Replies: 3
    Last Post: Apr 19, 2019, 19:30

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •