A place to have fun with Mugen
 
PortalHomeFAQMemberlistSearchRegisterComic WIP TrackerDownloadsLog inChat
Website Navigation Help
Translate the Website
Log in
Username:
Password:
Log in automatically: 
:: I forgot my password
Latest topics
» Marvel's Black Panther
by kimczi Today at 11:37 am

» SURTUR RELEASED
by DimaLarin Today at 10:43 am

» RR3
by Dj luke Today at 9:37 am

» Mack the Knife Edited by Gartanham ...
by JARRO77 Today at 3:30 am

» New Yolomate palettes part 2, Just when you thought it was safe to go back in the forum.
by EDWARDUSK Yesterday at 6:59 pm

» The MMV News
by yolomate Yesterday at 6:15 pm

Special Features at MMV







Chat on MMV w/ Discord


Share | 
 

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

Go down 
AuthorMessage
Mega_Man

avatar

Posts : 146
Join date : 2016-01-23

PostSubject: Jump AI code: Character flies instead of jumping..?   December 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
View user profile
Mistah Jorge

avatar

Posts : 2109
Join date : 2013-07-04
Age : 20
Location : Portugal

PostSubject: Re: Jump AI code: Character flies instead of jumping..?   December 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
View user profile
Mega_Man

avatar

Posts : 146
Join date : 2016-01-23

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


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

avatar

Posts : 2109
Join date : 2013-07-04
Age : 20
Location : Portugal

PostSubject: Re: Jump AI code: Character flies instead of jumping..?   December 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
View user profile
Werewood

avatar

Posts : 5715
Join date : 2014-08-11

PostSubject: Re: Jump AI code: Character flies instead of jumping..?   December 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
View user profile https://onedrive.live.com/?cid=7DB65F02B0BBD12E
Mega_Man

avatar

Posts : 146
Join date : 2016-01-23

PostSubject: Re: Jump AI code: Character flies instead of jumping..?   December 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
View user profile
Sponsored content




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

Back to top Go down
 
Jump AI code: Character flies instead of jumping..?
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: