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
» chuchoryu & Friends vs all Realms!!!
by chuchoryu Today at 12:39 am

» SNK chuchoryu!! the King of Mugen...XD not true
by chuchoryu Today at 12:30 am

» Release Elektra 2.4 by Fede de 10
by pockydeluxe1 Today at 12:24 am

» Post cool art you find
by ColdDarkness Today at 12:19 am

» Sprite comic book covers
by NightDevil123 Yesterday at 11:01 pm

» CvS Ultron! soon CvS Gamora
by chuchoryu Yesterday at 9:56 pm

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 : 145
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 : 2009
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 : 145
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 : 2009
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 : 5004
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 : 145
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: