How to reduce the frequency of an attack
|
|
Mikelel | Date: Wednesday, 2012-06-06, 6:47 PM | Message # 1 |
Baby
Group: Users
Messages: 7
Awards: 0
Reputation: 0
Reproofs: 0%
Status: Offline
| This is the first time I come here for advice. I have to say that I'm reading ALL THE REST of threads of this section, since I wouldn't like to repeat the same dude as another guy, like happened with Sharingan effect hahah. And of course to learn from other guys' fails.
Special thanks to KIX, sgn_15, and others who are posting and solving a lot since January this year approx., this section is getting more life than ever.
My problem:
I have a char which uses a particular movement with extreme frequency. To the point it doesn't use almost any of the others. Kinda bothering. So, any code to decrease something like "priority of use", or such? Sprite priority is related -SprPriority-?
I tried changing in cmd
var (0) = 0 >>> var (0) = 1 with this, the char doesn't make the move, but the AI doesn't use it either!! Kinda bothering as I said.
Any tip, please? Thanks in advance.
|
|
| |
KIX | Date: Wednesday, 2012-06-06, 6:50 PM | Message # 2 |
Archangel
Group: contributor
Messages: 1687
Awards: 1
Reputation: 12
Reproofs: 0%
Status: Offline
| Quote (Mikelel) This is the first time I come here for advice. I have to say that I'm reading ALL THE REST of threads of this section, since I wouldn't like to repeat the same dude as another guy, like happened with Sharingan effect hahah. And of course to learn from other guys' fails.
Special thanks to KIX, sgn_15, and others who are posting and solving a lot since January this year approx., this section is getting more life than ever.
My problem:
I have a char which uses a particular movement with extreme frequency. To the point it doesn't use almost any of the others. Kinda bothering. So, any code to decrease something like "priority of use", or such? Sprite priority is related -SprPriority-?
I tried changing in cmd
var (0) = 0 >>> var (0) = 1 with this, the char doesn't make the move, but the AI doesn't use it either!! wacko Kinda bothering as I said.
Any tip, please? Thanks in advance.
For This I Advice You To Wait For Sgn's Reply Coz He Is Good At This
http://neuropod.net/imagehost/uploads/c51c674fa9ef4160d2c1ea14a9859c4f.gif <---- 5%
|
|
| |
sgn_15 | Date: Wednesday, 2012-06-06, 7:00 PM | Message # 3 |
God
Group: contributor
Messages: 2518
Awards: 4
Reputation: 31
Reproofs: 0%
Status: Offline
| sprpriority is for which anim is over or under, values are -5 up to 5
frequency? you mean how frequent AI uses the attack? because for player, you can use any attack everytime if you want lol
add as many triggers to your AI to make it less frequent. remember to accommodate it to your attack, if it is long-range then add p2bodydist > #, for short range, p2bodydist < #
and yeah add some more triggers like random < ###
read the trigger.html in your doc folder of mugen to learn the official elecbyte explanations. they are the absolute truth and correct explanations.Added (2012-06-06, 7:00 PM) ---------------------------------------------
Quote (Mikelel) var (0) = 0 >>> var (0) = 1 with this, the char doesn't make the move, but the AI doesn't use it either!! wacko Kinda bothering as I said variable is just a "container" of any value
you should use the same variable you used to activate AI. if you used var(0) = 1 for AI, then use it for all AI cmd, then var(0) != 1 for player cmd
|
|
| |
Mikelel | Date: Wednesday, 2012-06-06, 7:02 PM | Message # 4 |
Baby
Group: Users
Messages: 7
Awards: 0
Reputation: 0
Reproofs: 0%
Status: Offline
| Quote (KIX) For This I Advice You To Wait For Sgn's Reply Coz He Is Good At This
All right then. I had another problem and I didn't know if posting it in another thread... but I think multipost isn't very well so I'll post it here too: ---------
Is there any way to, according to the PJ selected in the selection menu from the beginning, certain rivals and not others appear to fight against your PJ?
Exempli gratia:
1) Kakashi vs Kabuto 2) Kakashi vs Orochimaru
or
1) Mario vs Luigi 2) Mario vs Bowser
But not
1) Kakashi vs Luigi or 1) Mario vs Orochimaru
Thanks again.
|
|
| |
sgn_15 | Date: Wednesday, 2012-06-06, 7:06 PM | Message # 5 |
God
Group: contributor
Messages: 2518
Awards: 4
Reputation: 31
Reproofs: 0%
Status: Offline
| you want the mugen engine to disable the possibility of you fighting against certain chars? i don't think it is possible. you can do some stuff according to enemy though, by using p2name as trigger for whatever state controller you will use Added (2012-06-06, 7:06 PM) --------------------------------------------- read post after kix's post
|
|
| |
Mikelel | Date: Wednesday, 2012-06-06, 7:11 PM | Message # 6 |
Baby
Group: Users
Messages: 7
Awards: 0
Reputation: 0
Reproofs: 0%
Status: Offline
| Quote (sgn_15) read post after kix's post
Done. (And thanks for the extremely quick and accurate answer =) =) )
Quote (sgn_15) you want the mugen engine to disable the possibility of you fighting against certain chars? i don't think it is possible. you can do some stuff according to enemy though, by using p2name as trigger for whatever state controller you will use
So, it's not possible to force mugen engine to select certain chars, but it's possible to modify, once chars have been select, what moves, velocity, strong, etc., they have. All right.
Quote (sgn_15) and yeah add some more triggers like random < ###
All right too. So, frequency of apparition depends of the number of triggers.
|
|
| |
sgn_15 | Date: Thursday, 2012-06-07, 8:03 AM | Message # 7 |
God
Group: contributor
Messages: 2518
Awards: 4
Reputation: 31
Reproofs: 0%
Status: Offline
| Mikelel, i was searching random stuff in the forums when i found this by accident http://mugencharacters.ucoz.com/forum/23-3599-1 i never tried it, but it sounds like a trick (that you have to do every single time) and not something you can do thru codingAdded (2012-06-07, 8:03 AM) ---------------------------------------------
Quote (Mikelel) All right too. So, frequency of apparition depends of the number of triggers. well don't add too much triggers. add around 3 per attack, then try your char in watch mode to see which attacks are being used frequently, then adjust the triggers and/or add more triggers, try watch mode again.
AI is trial and error until you are satisfied with how your char AI functions
|
|
| |
Mikelel | Date: Thursday, 2012-06-07, 7:14 PM | Message # 8 |
Baby
Group: Users
Messages: 7
Awards: 0
Reputation: 0
Reproofs: 0%
Status: Offline
| Quote (sgn_15) Mikelel, i was searching random stuff in the forums when i found this by accident http://mugencharacters.ucoz.com/forum/23-3599-1
This.
Continue searching even after already said it's not possible, just to make completely sure it's not. Getting anon's question as oneself's. ------
Quote (sgn_15) read (all) in your doc folder of mugen to learn the official elecbyte explanations. they are the absolute truth
|
|
| |
sgn_15 | Date: Thursday, 2012-06-07, 7:28 PM | Message # 9 |
God
Group: contributor
Messages: 2518
Awards: 4
Reputation: 31
Reproofs: 0%
Status: Offline
| Quote (Mikelel) This.
Continue searching even after already said it's not possible, just to make completely sure it's not. Getting anon's question as oneself's. ?Added (2012-06-07, 7:28 PM) --------------------------------------------- what do you mean by anon's question as oneself's ?
|
|
| |
Mikelel | Date: Friday, 2012-06-08, 4:13 AM | Message # 10 |
Baby
Group: Users
Messages: 7
Awards: 0
Reputation: 0
Reproofs: 0%
Status: Offline
| Quote (sgn_15) what do you mean by anon's question as oneself's ?
I mean taking the question of a perfect baby-leveled anon as yours, giving it the same importance, taking the problem of other as yourself to improve your own knowledge, and to prevent future similar questions.
In other words, the same as this:
Quote (Mikelel) I have to say that I'm reading ALL THE REST of threads of this section, since I wouldn't like to repeat the same dude as another guy, like happened with Sharingan effect hahah. And of course to learn from other guys' fails.
Message edited by Mikelel - Friday, 2012-06-08, 4:14 AM |
|
| |
sgn_15 | Date: Friday, 2012-06-08, 8:26 AM | Message # 11 |
God
Group: contributor
Messages: 2518
Awards: 4
Reputation: 31
Reproofs: 0%
Status: Offline
| still not sure what you mean by "anon", but i guess what you said was supposed to be positive ? Added (2012-06-08, 8:26 AM) --------------------------------------------- are you mikel8888 that i know ?
|
|
| |
Mikelel | Date: Friday, 2012-06-08, 5:04 PM | Message # 12 |
Baby
Group: Users
Messages: 7
Awards: 0
Reputation: 0
Reproofs: 0%
Status: Offline
| Quote (sgn_15) are you mikel8888 that i know ?
Never heard that nick before. : /
Quote (sgn_15) i guess what you said was supposed to be positive ?
No doubt it was.
|
|
| |