UPLOAD, SHARE, PRESERVE MUGEN FOR ETERNITY!
a missing category? request it here.

Results 1 to 3 of 3
  1. #1
    Join Date
    Jan 2020
    Location
    Posts
    4
    Uploads
    0
    Comments
    4

    Default Higher attack when life is low

    I was wondering what code I would use if I wanted to rise a characters attack or defense when their health is low? I was adding this code to the Arlong jus for my Jump Force mugen to give him s little more of an edge because of his somewhat slow frame data for some moves.

  2. #2
    Join Date
    Jul 2018
    Location
    Posts
    235
    Uploads
    371
    Comments
    237

    Default Re: Higher attack when life is low

    Honestly making something like that is actually really simple
    This should work:

    [State -2] ;Statedef you should put this on
    type = Attackmulset
    trigger1 = life <= ceil(lifemax*.25) ;This should result in the character's overall damage being increased when his health is low enough
    value = 1.5

    I believe the code above may not work for projectiles so you can alternatively try to add this to any HitDefs or Projectiles:

    [State -2]
    type = Projectile
    damage = ceil(10*ifelse((life<=lifemax/4),1.5,1))
    ;damage = ceil(10*ifelse((root,life)<=(root,lifemax/4),1.5,1)) ;Use this if the Projectile or HitDef originates from an helper
    funny jotar o dolphin

  3. #3
    Join Date
    Jan 2020
    Location
    Posts
    4
    Uploads
    0
    Comments
    4

    Thumb up Re: Higher attack when life is low

    Quote Originally Posted by ghiacio View Post
    Honestly making something like that is actually really simple
    This should work:

    [State -2] ;Statedef you should put this on
    type = Attackmulset
    trigger1 = life <= ceil(lifemax*.25) ;This should result in the character's overall damage being increased when his health is low enough
    value = 1.5

    I believe the code above may not work for projectiles so you can alternatively try to add this to any HitDefs or Projectiles:

    [State -2]
    type = Projectile
    damage = ceil(10*ifelse((life<=lifemax/4),1.5,1))
    ;damage = ceil(10*ifelse((root,life)<=(root,lifemax/4),1.5,1)) ;Use this if the Projectile or HitDef originates from an helper
    Thanks! I recently got in to messing with character files, movesets, and frame data for Mugen a couple months ago so I'm just trying to balance out some characters for my Jump Force Mugen. Although my Jump force mugen has some chatacters that REALLY need to be either buffed or nerfed. Arlong needed somethin to help him gain a little more of an edge due to his big hurtboxes and slow frame data even though he has good defense lol.

Similar Threads

  1. higher resolution marvel characters?
    By robmma82 in forum General MUGEN discussions
    Replies: 0
    Last Post: 12th March 2020, 13:20
  2. How is your life?
    By Left4Joker in forum Misc Non-MUGEN discussions
    Replies: 81
    Last Post: 6th March 2020, 12:50
  3. Higher Level Customization?
    By chaoschao in forum General MUGEN discussions
    Replies: 1
    Last Post: 9th November 2019, 21:50
  4. Replies: 5
    Last Post: 13th December 2017, 16:40
  5. Life value?
    By jlr24lp in forum MUGEN Configuration Help
    Replies: 6
    Last Post: 23rd May 2017, 10:10

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
  •