I want the attacker to gain health whenever he hits his enemy, so that it gives off a sense of absorbing life from the other player.If an attack does 30 points damage, I want him to gain 30 points of damage if it hits. I'm going to say even on chip. I want him cheap.. I'm trying stuff, but, he keeps gaining life just by doing the attack. I do want it to come in contact with the enemy first..While we're at it, his life is set at 600, but, I don't want him to start the match off with that much.. Perhaps 100
-2lifeaddtrig1 = movecontact = 1 && numtargettrig1 = target,movetype = H && !target,hitover && target,time <= 1val = target,gethitvar(damage)ignorepause = 1
I'm afraid I can't make much sense of what you wrote. I put that on the same state as the attack, and did this..[state 207]type =lifeaddtrigger1 = movecontact = 1 && numtargettrigger2 = target,movetype = H && !target,hitover && target,time <= 1val = target,gethitvar(damage)ignorehitpause = 1Got no clue on what to do with the "val" thing on the 5th line.EDIT: WOW!!I FIGURED IT OUT. IT WORKS.. dunno why you didn't type the whole thing out, but, thanks a lot anyway.. But, I'm thinking that this is too much life gain now... lol.. how about if i want it to be 25% of the attack and not 100%
Why did you change that bottom one to a trigger2? http://mugenguild.com/forum/topics/necessary-triggeralls-redirects-and-some-sctrls-debug-141934.0.htmlLifeadd has one required parameter. http://elecbyte.com/mugendocs/sctrls.html#lifeaddUse basic math to get 25% of damage given. Use ceil or floor to prevent debug spam, since lifeadd doesn't take float values.
I've just never seen anyone put two consecutive lines of trigger=1. But, great, it works regardless. The last thing is that I don't want the character to start with 100% health.
Did you read the docs? Read the docs. Start with state controllers. For this case, search for Lifeset. http://elecbyte.com/mugendocs/sctrls.html