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
» Injustice 2 Discussion
by Renz Tosaka Today at 9:18 am

» [FORUM GAME] Alphabet Soup!
by Doom Today at 8:30 am

» Spam Game: Word Association Game
by Doom Today at 8:27 am

» Ult Opera Theater (Fighters History Dynamite - Feilin)
by Doom Today at 8:23 am

» kimczi sprites
by kimczi Today at 6:10 am

» Rare Batman Gaslight by Ghost Rider(Beta???)
by pockydeluxe1 Today at 2:08 am

Special Features at MMV





Chat on MMV w/ Discord


Share | 
 

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

View previous topic View next topic Go down 
AuthorMessage
Mega_Man

avatar

Posts : 140
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 : 1970
Join date : 2013-07-04
Age : 19
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 : 140
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 : 1970
Join date : 2013-07-04
Age : 19
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
borewood2013

avatar

Posts : 4655
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 : 140
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
 
Jump AI code: Character flies instead of jumping..?
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: