A place to have fun with Mugen
 
PortalHomeFAQMemberlistSearchRegisterComic WIP TrackerDownloadsLog inChat
Translate the Website
Log in
Username:
Password:
Log in automatically: 
:: I forgot my password
Latest topics
» Request stage from video
by yolomate Today at 10:27 am

» Dc Cheetah Wip
by yolomate Today at 9:56 am

» doctrine dark from street fighter ex released!
by volzzilla Today at 7:48 am

» CAPCOM VS SNK - STAGE PACK 2016
by volzzilla Today at 7:47 am

» Eric Draven [The Crow]
by volzzilla Today at 7:45 am

» my new full game wip
by Fabry Taz Today at 7:41 am

Special Features at MMV








Share | 
 

 Damage code.

View previous topic View next topic Go down 
AuthorMessage
erickablond



Posts : 394
Join date : 2014-05-09

PostSubject: Damage code.   July 29th 2015, 2:38 pm

In that part of the code is defined the damage that a coup will cause? Does anyone know?
Back to top Go down
View user profile
Midnight-Son



Posts : 978
Join date : 2012-10-18
Age : 24

PostSubject: Re: Damage code.   August 1st 2015, 2:35 pm

im not too sure of what the question is Smile
but if youre talking about damage dampering it would require some understanding of var(#)'s
which usually confuse me unless their done by me, there should be some template charecter's with those already pre-coded though, I wish you good luck
Back to top Go down
View user profile
borewood2013



Posts : 3162
Join date : 2014-08-11

PostSubject: Re: Damage code.   August 2nd 2015, 12:49 pm

MUGEN Var(#)'s in a coup's damage most of the time is for the damage dampening purpose.  Of course it can mean anything else besides just damage dampening. Wink

>> In that part of the code is defined the damage that a coup will cause?

1) MUGEN state controller HitDef damage = hit value, guard value
- example:
Code:
[State 200, HitDef] ; normal standing light punch
type = HitDef
triggerall = !MoveContact && !MoveReversed
trigger1 = AnimElemTime(3) = 0
attr = S,NA ; SCA, NA, NP, NT, SA, SP, ST, HA, HP, HT
hitflag = MAF ; HL/MAFD
guardflag = MA ; HL/MA
affectteam = E ; E/F/B
animtype = light ; light/medium/hard/back/up/diagup
air.animtype = back ; light/medium/hard/back/up/diagup
fall.animtype = back ; light/medium/hard/back/up/diagup
priority = 4,Hit ; 1-7,Dodge/Hit/Miss
damage = 30,0           ; hit_damage, guard_damage (int, int)
................

2) MUGEN state controller TargetLifeAdd (provided that P1 must see at least one (1) Target)
- example:
Code:
[State 810, TargetLifeAdd] ; when P2 throwing P2
type = TargetLifeAdd
triggerall = NumTarget ; this checking is "good to have"
trigger1 = AnimElem = 11
value = -100
ID = -1 ; target_id (int)  Specifies the desired target ID to affect. Only targets with this target ID will be affected. Defaults to -1 (affects all targets.)
kill = 1 ; kill_flag (boolean)  If kill_flag is 0, then the addition will not take any player below 1 life point. Defaults to 1.
absolute = 0 ; abs_flag (boolean)  If abs_flag is 1, then add_amt will not be scaled (i.e. attack and defense multipliers will be ignored). Defaults to 0.
ignorehitpause = 1
persistent = 0

3) MUGEN state controllers LifeAdd and LifeSet (provided that P2 must be put in a custom state by P1 and the code should be in the custom state for P2)
- example:
Code:
[State 820, LifeAdd] ; when P2 is put in a custom state by P1
type = LifeAdd
trigger1 = Time = 25
value = -80
kill = 1 ; kill_flag (boolean)  If kill_flag is 0, then the addition will not take any player below 1 life point. Defaults to 1.
absolute = 0 ; abs_flag (boolean)  If abs_flag is 1, then add_amt will not be scaled (i.e. attack and defense multipliers will be ignored). Defaults to 0.
ignorehitpause = 1
persistent = 0

[State 820, LifeSet] ; when P2 is put in a custom state by P1
type = LifeSet
trigger1 = Time >= 1
value = IfElse(TeamMode = single, Floor(Life/4), Floor(LifeMax/4))
ignorehitpause = 1
persistent = 1


I guess the above three (3) ways are the most common ones to define the damage that a coup will cause in MUGEN......... Neutral
Back to top Go down
View user profile https://onedrive.live.com/?cid=7DB65F02B0BBD12E
Midnight-Son



Posts : 978
Join date : 2012-10-18
Age : 24

PostSubject: Re: Damage code.   August 2nd 2015, 2:46 pm

thanks again borewood
Back to top Go down
View user profile
erickablond



Posts : 394
Join date : 2014-05-09

PostSubject: Re: Damage code.   August 3rd 2015, 12:46 pm

Thank you for your replies guys, the more I do not intendi very well, in fact I just want to reduce the damage that the hyper one character makes.
the character is the saint walker recently released, its hyper takes the entire life of the opponent for damage.
Back to top Go down
View user profile
Midnight-Son



Posts : 978
Join date : 2012-10-18
Age : 24

PostSubject: Re: Damage code.   August 3rd 2015, 1:21 pm

I see, well in that case all you would have to do is go to damage in that moves hitdef and lower it
make sure there are no lines that look like this
kill = 1
if you do see one change it to this
kill = 0
Back to top Go down
View user profile
erickablond



Posts : 394
Join date : 2014-05-09

PostSubject: Re: Damage code.   August 4th 2015, 8:57 pm

Thank you for your reply, I finally managed to change the value of the damage. Very Happy
Back to top Go down
View user profile
borewood2013



Posts : 3162
Join date : 2014-08-11

PostSubject: Re: Damage code.   August 5th 2015, 9:05 am

Midnight-Son you got it righter than I did! Good job very much!  clap
Back to top Go down
View user profile https://onedrive.live.com/?cid=7DB65F02B0BBD12E
 
Damage code.
View previous topic View next topic Back to top 
Page 1 of 1

Permissions in this forum:You cannot reply to topics in this forum
The Mugen Multiverse :: Mugen :: Mugen Help-
Jump to: