YesNoOk
avatar

A char initial life different from his complete life (Read 533 times)

Started by perdevomariano, June 17, 2009, 05:54:40 pm
Share this topic:
A char initial life different from his complete life
#1  June 17, 2009, 05:54:40 pm
  • avatar
  • **
Hello guys. I wanna make a char that has an initial life of 800, but can add life during the fight up to 2000. How can I do such a thing?
Thank ya guys.
Orochi Gill is a liar. He lied once, he is a liar.
Re: A char initial life different from his complete life
#2  June 17, 2009, 06:34:34 pm
  • ******
[mcode][state life up]
type = lifeadd
trigger1 = whatever
value = something[/mcode]
And in your intro state, set life to 800. Also, in your constants, change the max life from 1000 to 2000.
If I struggled to the end of my determination, to the end of my way of life with my followers, if the result is ruin, then this ruin is inevitable. Grieve. Shed tears. But you cannot regret.
Re: A char initial life different from his complete life
#3  July 04, 2009, 12:55:36 am
  • avatar
  • **
[mcode][state life up]
type = lifeadd
trigger1 = whatever
value = something[/mcode]
And in your intro state, set life to 800. Also, in your constants, change the max life from 1000 to 2000.

I couldn't do it Byakko. Could you explain me in a different way, please? Thank u for yar help.
Orochi Gill is a liar. He lied once, he is a liar.
Re: A char initial life different from his complete life
#4  July 04, 2009, 01:00:46 am
  • ******
  • Legendary XIII
  • I am the eye of the storm to come!
    • New Zealand
    • network.mugenguild.com/cyanide/
Mugen has life as a constant. This is the maximum life your character can ever reach. In your case you need to set it to 2000. Then, in your intro state set life to 800. It'll show as decreased on the lifebar but will be 800 life.

After this, you just use [mcode]lifeadd or lifeset[/mcode] to change it's value.


In M.U.G.E.N there is no magic button

They say a little knowledge is a dangerous thing, but it's not one half so bad as a lot of ignorance.
Re: A char initial life different from his complete life
#5  July 04, 2009, 01:03:04 am
  • ******
Quote
I couldn't do it
WHAT could you not do ? Change the constant ? Change the life at startup ? Change the value during the round ? Be a little more fucking clear if you want help.
If I struggled to the end of my determination, to the end of my way of life with my followers, if the result is ruin, then this ruin is inevitable. Grieve. Shed tears. But you cannot regret.
Re: A char initial life different from his complete life
#6  July 07, 2009, 06:32:33 pm
  • avatar
  • **
Hi Byakko an Cyanide. Thank ya very much for your help :)
I wanna tell U that I achieved my char to have 2000 as maximum life, and a decreased on the lifebar of 800. But only for round 1. The problem is that when round 2 starts, my char starts with 2000 in his life bar (it's full, and it is not 800 as in round 1).

this is what I did:

[data]
life = 2000

and in the introducction:

[State 190, LifeSet]
type = LifeSet
trigger1 = animelem=1
value= 800



The question/s is/are:
How can I make my char start round 2 with 800 life as in round 1?  Or if my char ended round 1 with more than 800 life, how can he start with the amount of life he finshed round 1? (in the latter question, only if his life ends being more than 800)

I hope I'm clear enough and I also hope you know how to do this. Thank you very much in advance ;)
Orochi Gill is a liar. He lied once, he is a liar.
Re: A char initial life different from his complete life
#7  July 07, 2009, 07:57:55 pm
  • ******
  • [E]
    • Mexico

  • Online
change the code in the intro to a code in state 5900 or is it 5600? whichever one exists.
Re: A char initial life different from his complete life
#8  July 07, 2009, 07:59:25 pm
  • ******
5900.
If I struggled to the end of my determination, to the end of my way of life with my followers, if the result is ruin, then this ruin is inevitable. Grieve. Shed tears. But you cannot regret.
Re: A char initial life different from his complete life
#9  July 07, 2009, 08:15:56 pm
  • avatar
  • **
change the code in the intro to a code in state 5900 or is it 5600? whichever one exists.

You mean to say that I've got to do this:


In the introducction:

[State 5900, LifeSet]
type = LifeSet
trigger1 = animelem=1
value= 800

By doing that, I couldn't achieve my goal. Or you mean that state 5900 is outside the intro?
Thank you Cyanide, Frederika Trollkastel and Byakko.
Orochi Gill is a liar. He lied once, he is a liar.
Last Edit: July 08, 2009, 01:45:06 am by perdevomariano
Re: A char initial life different from his complete life
#10  July 08, 2009, 12:57:42 pm
  • ******
  • I hang out tough. I'm a real boss.
    • USA
    • litotichues.com/
He means to actually put the code into the statedef 5900.
Re: A char initial life different from his complete life
#11  July 08, 2009, 01:40:20 pm
  • ****

No Borders, No Nations
Re: A char initial life different from his complete life
#12  July 08, 2009, 06:34:03 pm
  • avatar
  • **
Orochi Gill is a liar. He lied once, he is a liar.