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
» Captain Falcon Release
Need Help from a Coder to modify basic attacks during an Hyper state Emptyby Shining Today at 12:53 am

» Soul Calibur Edits
Need Help from a Coder to modify basic attacks during an Hyper state Emptyby Shining Today at 12:52 am

» Little Mac Release Ippo Update
Need Help from a Coder to modify basic attacks during an Hyper state Emptyby Nexus Gaming Yesterday at 6:09 pm

» Link Release
Need Help from a Coder to modify basic attacks during an Hyper state Emptyby Nexus Gaming Yesterday at 5:59 pm

Special Features at MMV




Chat on MMV w/ Discord

Video Content Creation Reference
Search
 
 

Display results as :
 
Rechercher Advanced Search

 

 Need Help from a Coder to modify basic attacks during an Hyper state

Go down 
5 posters
AuthorMessage
Raijjin

Raijjin


Posts : 280
Join date : 2022-06-08
Location : France

Need Help from a Coder to modify basic attacks during an Hyper state Empty
PostSubject: Need Help from a Coder to modify basic attacks during an Hyper state   Need Help from a Coder to modify basic attacks during an Hyper state EmptySeptember 24th 2023, 11:45 am

Hello there !

I was reworking (graphically) one of the old characters I worked on some years ago, and decided to change some gameplay elements in the meantime.

My problem is: this character has an Hyper state, with a bar and all, during which he hits harder. I noticed that there was stronger anim into the character that were based on the same sprite as basic attacks, but stronger.
So I want to add these anims as the new basic attacks only during the Hyper state. Like replace the weak, medium and strong punch by something else, but only temporarily.

I've tried to do it myself, but nothing happens. I:

- Putted this into the commands input:
[State -1, X]
type = ChangeState
value = 205 (<- this is the state of the new attack)
triggerall = Command = "x"
triggerall = Command != "holddown"
triggerall= var(20) = 3
trigger1 = (StateType = S) && (Ctrl)

- And I putted this into the states:
[Statedef 205]
type    = S
movetype= A
physics = S
juggle  = 4
ctrl = 0
anim = 205
poweradd = 15
sprpriority = 2

[State 205, VelMul, corrida]
type = VelMul
trigger1 = Time = 0
trigger1 = PrevStateNo = 100
x = .8

[State 205, PlaySnd]
type = PlaySnd
trigger1 =  AnimElem = 1
value = 8400,0

[State 205, HitDef]
type = HitDef
trigger1 = time=0
attr = S,NA
damage = 20,2
animtype = Med
guardflag = MA
hitflag = HAF
priority = 4, Hit
pausetime = 10,10
sparkno = s7770
sparkxy = -10, -60
guard.sparkno = s6767
hitsound = 5,0
guardsound = 6,0
ground.type = High
ground.slidetime = 15
ground.hittime  = 15
ground.velocity = -6
air.type = Low
air.hittime = 15
air.velocity = -6,-5
envshake.time = 1
envshake.ampl = 1

[State 205, ChangeState]
type = ChangeState
trigger1 = AnimTime = 0
value = 0
ctrl = 1

-------------
The anim is here and all, but when I use this Hyper state, my character still use his basic punch.
Any ideas here ?
I would prefer if someone could do it for me (especially if I'm totally mistaken in my method), but knowing we're all really busy, just some tips or ideas might be enough.
Thanks in advance Need Help from a Coder to modify basic attacks during an Hyper state 670481599
Back to top Go down
Shining

Shining


Posts : 4811
Join date : 2013-03-26
Age : 44
Location : Italy

Need Help from a Coder to modify basic attacks during an Hyper state Empty
PostSubject: Re: Need Help from a Coder to modify basic attacks during an Hyper state   Need Help from a Coder to modify basic attacks during an Hyper state EmptySeptember 24th 2023, 12:09 pm

I think you should add new trigger with that hyper name ...but i m sure it s not so simple
Back to top Go down
crosspotts1.0

crosspotts1.0


Posts : 4856
Join date : 2013-04-15
Age : 31
Location : GLEN BURNIE maryland

Need Help from a Coder to modify basic attacks during an Hyper state Empty
PostSubject: Re: Need Help from a Coder to modify basic attacks during an Hyper state   Need Help from a Coder to modify basic attacks during an Hyper state EmptySeptember 24th 2023, 12:55 pm

Try this
Change your Hyper state trigger to activate when your character enters Hyper state:
[State -1, X]
type = ChangeState
value = 205 ; New Hyper state
triggerall = Command = "x"
triggerall = Command != "holddown"
trigger1 = var(20) = 3
trigger2 = var(21) = 1 ; You might need to set up a variable to track the Hyper state
trigger3 = var(22) = 0 ; This variable should be 1 when exiting the Hyper stateModify the Hyper state definition (State 205) to handle the animations during the Hyper state:[Statedef 205]
type = S
movetype= A
physics = S
juggle = 4
ctrl = 0
poweradd = 15
sprpriority = 2
anim = 205 ; Set your Hyper state animation here

[State 205, VelMul, corrida]
type = VelMul
trigger1 = Time = 0
x = .8

[State 205, PlaySnd]
type = PlaySnd
trigger1 = AnimElem = 1
value = 8400,0

[State 205, HitDef]
type = HitDef
trigger1 = time=0
attr = S,NA
damage = 20,2
animtype = Med
guardflag = MA
hitflag = HAF
priority = 4, Hit
pausetime = 10,10
sparkno = s7770
sparkxy = -10, -60
guard.sparkno = s6767
hitsound = 5,0
guardsound = 6,0
ground.type = High
ground.slidetime = 15
ground.hittime = 15
ground.velocity = -6
air.type = Low
air.hittime = 15
air.velocity = -6,-5
envshake.time = 1
envshake.ampl = 1

[State 205, ChangeState]
type = ChangeState
trigger1 = AnimTime = 0
value = 0
ctrl = 1
This code should ensure that when your character enters the Hyper state (triggered by your conditions), it plays the animations defined in State 205 instead of the basic punch animations (State 100). You might need to adjust the trigger conditions further based on your specific character and game logic. Make sure you have a variable (e.g., var(21)) to track the Hyper state and another (e.g., var(22)) to exit it when needed.

Raijjin likes this post

Back to top Go down
Raijjin

Raijjin


Posts : 280
Join date : 2022-06-08
Location : France

Need Help from a Coder to modify basic attacks during an Hyper state Empty
PostSubject: Re: Need Help from a Coder to modify basic attacks during an Hyper state   Need Help from a Coder to modify basic attacks during an Hyper state EmptySeptember 24th 2023, 2:10 pm

crosspotts1.0 wrote:
Try this
Change your Hyper state trigger to activate when your character enters Hyper state:
[State -1, X]
type = ChangeState
value = 205  ; New Hyper state
triggerall = Command = "x"
triggerall = Command != "holddown"
trigger1 = var(20) = 3
trigger2 = var(21) = 1  ; You might need to set up a variable to track the Hyper state
trigger3 = var(22) = 0  ; This variable should be 1 when exiting the Hyper stateModify the Hyper state definition (State 205) to handle the animations during the Hyper state:[Statedef 205]
type    = S
movetype= A
physics = S
juggle  = 4
ctrl = 0
poweradd = 15
sprpriority = 2
anim = 205  ; Set your Hyper state animation here

[State 205, VelMul, corrida]
type = VelMul
trigger1 = Time = 0
x = .8

[State 205, PlaySnd]
type = PlaySnd
trigger1 = AnimElem = 1
value = 8400,0

[State 205, HitDef]
type = HitDef
trigger1 = time=0
attr = S,NA
damage = 20,2
animtype = Med
guardflag = MA
hitflag = HAF
priority = 4, Hit
pausetime = 10,10
sparkno = s7770
sparkxy = -10, -60
guard.sparkno = s6767
hitsound = 5,0
guardsound = 6,0
ground.type = High
ground.slidetime = 15
ground.hittime  = 15
ground.velocity = -6
air.type = Low
air.hittime = 15
air.velocity = -6,-5
envshake.time = 1
envshake.ampl = 1

[State 205, ChangeState]
type = ChangeState
trigger1 = AnimTime = 0
value = 0
ctrl = 1
This code should ensure that when your character enters the Hyper state (triggered by your conditions), it plays the animations defined in State 205 instead of the basic punch animations (State 100). You might need to adjust the trigger conditions further based on your specific character and game logic. Make sure you have a variable (e.g., var(21)) to track the Hyper state and another (e.g., var(22)) to exit it when needed.

Not sure I get everything, but I'll try your idea as much as I can !
Thanks!
Back to top Go down
volzzilla

volzzilla


Posts : 10259
Join date : 2012-05-02

Need Help from a Coder to modify basic attacks during an Hyper state Empty
PostSubject: Re: Need Help from a Coder to modify basic attacks during an Hyper state   Need Help from a Coder to modify basic attacks during an Hyper state EmptySeptember 25th 2023, 8:09 am

@crosspotts1.0 i'm impressed with what you said here duck dance
Back to top Go down
https://mugenmultiverse.forumotion.com/
Shining

Shining


Posts : 4811
Join date : 2013-03-26
Age : 44
Location : Italy

Need Help from a Coder to modify basic attacks during an Hyper state Empty
PostSubject: Re: Need Help from a Coder to modify basic attacks during an Hyper state   Need Help from a Coder to modify basic attacks during an Hyper state EmptySeptember 25th 2023, 9:24 am

volzzilla wrote:
@crosspotts1.0 i'm impressed with what you said here duck dance

Me tooo Very Happy
Back to top Go down
ajrenalin

ajrenalin


Posts : 146
Join date : 2013-02-08

Need Help from a Coder to modify basic attacks during an Hyper state Empty
PostSubject: Re: Need Help from a Coder to modify basic attacks during an Hyper state   Need Help from a Coder to modify basic attacks during an Hyper state EmptyFebruary 2nd 2024, 1:07 am

I'm just assuming that this code (triggerall= var(20) = 3) is the hyper command when active. If I am correct here than what you need to do is go through the normal attacks and add the code

triggerall= var(20) != 3        

Doing this will make the normal attacks NOT work when var 20 is not equal to 3

When Var 3 is = to 3 than those NEW attacks will now work.

Like this

[State -1, X]
type = ChangeState
value = 200
triggerall= var(20) != 3

[State -1, X]
type = ChangeState
value = 205
triggerall= var(20) = 3

OR (IF) Var(20)=3 is not what i thought it was up top than use the code below.. Like i said i need to know what var(20)=3

[State -1, X]
type = ChangeState
value = 200
triggerall= stateno != [3000,3999]

[State -1, X]
type = ChangeState
value = 205
triggerall= stateno = [3000,3999]



If Var(20) = 3 is Not the hyper timer than can you tell me what it is, that will help out much.
Back to top Go down
Raijjin

Raijjin


Posts : 280
Join date : 2022-06-08
Location : France

Need Help from a Coder to modify basic attacks during an Hyper state Empty
PostSubject: Re: Need Help from a Coder to modify basic attacks during an Hyper state   Need Help from a Coder to modify basic attacks during an Hyper state EmptyFebruary 2nd 2024, 2:45 am

ajrenalin wrote:
I'm just assuming that this code (triggerall= var(20) = 3) is the hyper command when active. If I am correct here than what you need to do is go through the normal attacks and add the code

triggerall= var(20) != 3        

Doing this will make the normal attacks NOT work when var 20 is not equal to 3

When Var 3 is = to 3 than those NEW attacks will now work.

Like this

[State -1, X]
type = ChangeState
value = 200
triggerall= var(20) != 3

[State -1, X]
type = ChangeState
value = 205
triggerall= var(20) = 3

OR (IF) Var(20)=3 is not what i thought it was up top than use the code below.. Like i said i need to know what var(20)=3

[State -1, X]
type = ChangeState
value = 200
triggerall= stateno != [3000,3999]

[State -1, X]
type = ChangeState
value = 205
triggerall= stateno = [3000,3999]



If Var(20) = 3 is Not the hyper timer than can you tell me what it is, that will help out much.

Thanks for all of that !
It's been a while, so I'm not sure what state it is, but I think that's the state of the Hyper.
The character was the latest Azrael I released (you can find it around here), but I'm not sure when I will go back working on it (and doing Mugen in general). You're welcome to check it by yourself if it's no bother for you Need Help from a Coder to modify basic attacks during an Hyper state 1f60a
What you wrote was really instructive anyway, so I'll try to do what you recommended when I can !

Thanks again

ajrenalin likes this post

Back to top Go down
Sponsored content





Need Help from a Coder to modify basic attacks during an Hyper state Empty
PostSubject: Re: Need Help from a Coder to modify basic attacks during an Hyper state   Need Help from a Coder to modify basic attacks during an Hyper state Empty

Back to top Go down
 
Need Help from a Coder to modify basic attacks during an Hyper state
Back to top 
Page 1 of 1
 Similar topics
-
» Need Help from a Coder to add an Hyper Move
» Is there a videos on how to modify/edit already made chars or moves or supers?
» Code Snippet Archive
» I need help with my char's attacks
» Freezing state

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