The Mugen Multiverse
Would you like to react to this message? Create an account in a few clicks or log in to continue.


Welcome!!! - Bienvenidos!!! - ( We hope you will get involved in the MMV Community which is dedicated to having fun with Mugen ) - Bienvenidos!!! - Welcome!!!
 
PortalHomeFAQMemberlistLatest imagesUsergroupsSearchRegisterComic WIP TrackerDownloadsLog inChat
Website Navigation Help
Translate the Website
Log in
Username:
Password:
Log in automatically: 
:: I forgot my password
Latest topics
» Lizard WIP
Resetting attackmulset affected attacks back to normal damage? Emptyby jspiderman171717 Today at 10:12 pm

» Chibi Fighter
Resetting attackmulset affected attacks back to normal damage? Emptyby falchion22 Today at 6:37 pm

» MMV HALLOWEEN 2024 EVENT - GUARDIAN RELEASED
Resetting attackmulset affected attacks back to normal damage? Emptyby wacky me Today at 5:54 pm

» My Youtube Mugen (Pseudoingles)
Resetting attackmulset affected attacks back to normal damage? Emptyby pseudoingles Today at 3:53 pm

Special Features at MMV




Chat on MMV w/ Discord

Video Content Creation Reference
Search
 
 

Display results as :
 
Rechercher Advanced Search

 

 Resetting attackmulset affected attacks back to normal damage?

Go down 
3 posters
AuthorMessage
Minun

Minun


Posts : 142
Join date : 2015-03-08

Resetting attackmulset affected attacks back to normal damage? Empty
PostSubject: Resetting attackmulset affected attacks back to normal damage?   Resetting attackmulset affected attacks back to normal damage? EmptyApril 12th 2015, 9:27 am

I have a character that relies on  how far away from her sword is to take more damage. I did it perfectly at first but when I added more attacks, I've seen that it's been pretty broken such as the non-sword attacks for some reason giving out healing damage to the opponent and after using those attacks, she will heal the opponent for a couple more attacks and then goes back to  her normal damage. I want the attack stats to go back to it's normal state once a move is done.


Here's the code:


[State 0, AttackMulSet]
type = AttackMulSet
trigger1 = movehit
trigger2 = stateno = [200,230]
trigger2 = stateno =  400
value = p2bodydist X / 50
;ignorehitpause =
;persistent =

[State 0, AttackMulSet]
type = AttackMulSet
trigger1 = movehit
trigger2 = stateno = [250,690]
value = p2bodydist X / 50
;ignorehitpause =
;persistent =
Back to top Go down
Midnight-Son




Posts : 1153
Join date : 2012-10-18
Age : 32

Resetting attackmulset affected attacks back to normal damage? Empty
PostSubject: Re: Resetting attackmulset affected attacks back to normal damage?   Resetting attackmulset affected attacks back to normal damage? EmptyApril 15th 2015, 8:22 am

I cant be sure though I think
your problem lies here:
trigger2 = stateno = [200,230]

make an individual state 0,
for every trigger2 = stateno =

besides you'll have more control over each and every move that way
Back to top Go down
Werewood

Werewood


Posts : 5691
Join date : 2014-08-11

Resetting attackmulset affected attacks back to normal damage? Empty
PostSubject: Re: Resetting attackmulset affected attacks back to normal damage?   Resetting attackmulset affected attacks back to normal damage? EmptyApril 17th 2015, 5:48 am

In my opinion, AttackMulSet is best used for a global Damage Dampening feature in MUGEN.
Seravy has made a nice global Damage Dampening topic at Elecbyte wiki here:  http://elecbyte.com/wiki/index.php/Damage_Dampening

If only some sword attack states' damages depend on distance between P1 and P2, then I think you might consider working on the Damage = value,value in your sword attack states' HitDef(s), some example like this:

[State 210, Medium Sword Normal Attack]
type = HitDef
trigger1 = AnimElem = 3
attr = S, NA
animtype  = Medium
damage   = IfElse(Ceil(P2Dist X) >= 150, 50, Abs(-150+Ceil(P2Dist X)-50))
guardflag = MA
pausetime = 12,12
sparkno = 1
sparkxy = -10,-70
hitsound   = s5,3
guardsound = 6,0
ground.type = High
ground.slidetime = 12
ground.hittime  = 16
ground.velocity = -5.5
air.velocity = -2.5,-4

Assume the longest distance the sword of this Medium Sword Normal Attack can reach P2 is about 150.

The "damage   = IfElse(Ceil(P2Dist X) >= 150, 50, Abs(-150+Ceil(P2Dist X)-50))" line of MUGEN code is read like this:

- "if the Medium Sword Normal Attack is barely reaching P2 at the distance of 150 then its base-damage value is 50.  When it is getting closer to P2 then the damage increases based on the P2Dist X Trigger.  The Abs Trigger is important because it can prevent from healing P2.
So, the values "150" and "50" are the ones you are changing for your case.

Sorry my math is bad and this is what I can come up with........... Embarassed   Perhaps someone better can provide a more improved version to you..........
Back to top Go down
https://onedrive.live.com/?cid=7DB65F02B0BBD12E
Sponsored content





Resetting attackmulset affected attacks back to normal damage? Empty
PostSubject: Re: Resetting attackmulset affected attacks back to normal damage?   Resetting attackmulset affected attacks back to normal damage? Empty

Back to top Go down
 
Resetting attackmulset affected attacks back to normal damage?
Back to top 
Page 1 of 1
 Similar topics
-
» BACK TO THE ACTION - Volviendo al normal
» Damage code.
» I need help with my char's attacks
» Damage dampener.
» trigger get hit or get damage

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