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
» Meet Women Ready for Fun Tonight in Your Town
Jump AI code: Character flies instead of jumping..? Emptyby GTFoxN6Y Yesterday at 3:26 pm

» Lizard WIP
Jump AI code: Character flies instead of jumping..? Emptyby RenatoNat.J Yesterday at 2:51 pm

» Zatara The Master Magician WIP by RenatoNato
Jump AI code: Character flies instead of jumping..? Emptyby RenatoNat.J Yesterday at 1:12 pm

» MMV Halloween Event 2024 - Mandarin by McCready, Buyog, wil.li.an & Candido159 Release
Jump AI code: Character flies instead of jumping..? Emptyby spidergoku Yesterday at 12:08 pm

Special Features at MMV




Chat on MMV w/ Discord

Video Content Creation Reference
Search
 
 

Display results as :
 
Rechercher Advanced Search

 

 Jump AI code: Character flies instead of jumping..?

Go down 
3 posters
AuthorMessage
Mega_Man

Mega_Man


Posts : 148
Join date : 2016-01-23

Jump AI code: Character flies instead of jumping..? Empty
PostSubject: Jump AI code: Character flies instead of jumping..?   Jump AI code: Character flies instead of jumping..? EmptyDecember 11th 2016, 4:53 pm

[State -1, AI Command X]
type = ChangeState
value = 40
Triggerall=var(59)>0
Triggerall=P2StateType!= L
trigger1 = pos Y < -10
Trigger1 =abs(P2Bodydist X) < 50
trigger2 = p2statetype = A
trigger3 = p2stateno = 5030 || p2stateno = 40
triggerall = ctrl

How do I make them go into state 40 ONCE instead of a thousand times in the air? Seriously, when the characters fight, it's like a glitchy DBZ match with this.
Back to top Go down
Mistah Jorge

Mistah Jorge


Posts : 2356
Join date : 2013-07-04
Age : 26
Location : Portugal

Jump AI code: Character flies instead of jumping..? Empty
PostSubject: Re: Jump AI code: Character flies instead of jumping..?   Jump AI code: Character flies instead of jumping..? EmptyDecember 11th 2016, 6:35 pm

This must be a winmugen character, anyways, try this:
(do you really want whoever you are coding to jump everytime the opponent is in the air or landing? you might want to rethink about it)
triggerall = var(59)>0
triggerall = statetype != A
triggerall = P2StateType!= L
triggerall = ctrl
trigger1 = pos Y < -10
trigger1 =abs(P2Bodydist X) < 50
trigger2 = p2statetype = A
trigger3 = p2stateno = 5030 || p2stateno = 40
Back to top Go down
Mega_Man

Mega_Man


Posts : 148
Join date : 2016-01-23

Jump AI code: Character flies instead of jumping..? Empty
PostSubject: Re: Jump AI code: Character flies instead of jumping..?   Jump AI code: Character flies instead of jumping..? EmptyDecember 11th 2016, 7:26 pm


(What's wrong with that?)
Back to top Go down
Mistah Jorge

Mistah Jorge


Posts : 2356
Join date : 2013-07-04
Age : 26
Location : Portugal

Jump AI code: Character flies instead of jumping..? Empty
PostSubject: Re: Jump AI code: Character flies instead of jumping..?   Jump AI code: Character flies instead of jumping..? EmptyDecember 11th 2016, 8:12 pm

Well the code should still works, the thing is the character would most likely jump every time the oponent is on the air or landing, players could exploit this behavior, knowing the ai would jump everytime, it's like a weakness in my opinion

Anyway, does the code work?
Back to top Go down
Werewood

Werewood


Posts : 5691
Join date : 2014-08-11

Jump AI code: Character flies instead of jumping..? Empty
PostSubject: Re: Jump AI code: Character flies instead of jumping..?   Jump AI code: Character flies instead of jumping..? EmptyDecember 12th 2016, 7:55 am

>> How do I make them go into state 40 ONCE instead of a thousand times in the air
In addition, you might want to add some more TriggerAll:
.....
triggerall = StateNo != [40,50]
triggerall = PrevStateNo != [40,50]
.....
Back to top Go down
https://onedrive.live.com/?cid=7DB65F02B0BBD12E
Mega_Man

Mega_Man


Posts : 148
Join date : 2016-01-23

Jump AI code: Character flies instead of jumping..? Empty
PostSubject: Re: Jump AI code: Character flies instead of jumping..?   Jump AI code: Character flies instead of jumping..? EmptyDecember 12th 2016, 8:03 pm

Mistah Jorge wrote:
Well the code should still works, the thing is the character would most likely jump every time the oponent is on the air or landing, players could exploit this behavior, knowing the ai would jump everytime, it's like a weakness in my opinion

Anyway, does the code work?

Yeah, it worked.
Back to top Go down
Sponsored content





Jump AI code: Character flies instead of jumping..? Empty
PostSubject: Re: Jump AI code: Character flies instead of jumping..?   Jump AI code: Character flies instead of jumping..? Empty

Back to top Go down
 
Jump AI code: Character flies instead of jumping..?
Back to top 
Page 1 of 1
 Similar topics
-
» Code to add Super Jump to any character released
» Code Character.
» On Mugen How can i code the gem for the character?
» How can I add the sound on Mugen Character when being hit by the opponent and taking a fall?
» On Mugen When the person is on wolverine's stage from MSH.How do i code for the character when he falls off the bridge.

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