Random issues with Random

Started by hjk, November 25, 2007, 03:43:44 AM

Previous topic - Next topic

PotS

But I wanted to see that one specifically. :(
I know that if I do something like that it'll always trigger the same attack. :mool:
You can help with Ikemen GO's development by trying out the latest development build and reporting any bugs on GitHub.
My Mugen and Ikemen content can also be found here.

Cyanide

Indeed, i would like to see as well, Did this

;Fake AI combo shit

[state -1]
type = changestate
triggerall = teamside = 2 && p2bodydist X< 10
trigger1 = statetype = S && ctrl
value = 200

[state -1]
type = changestate
trigger1 = stateno = 200 && movecontact
value = 230

[state -1]
type = changestate
trigger1 = stateno = 230 && movecontact
value = 210

[state -1]
type = changestate
trigger1 = stateno = 210 && movecontact
value = 240

[state -1]
type = changestate
trigger1 = stateno = 240 && movecontact
value = ifelse(random < 500, 250,220)
In my .cmd, it runs through the string, then randomises the last move, never any change at all. Aside from the last move, the 4 in the run up are ALWAYS the same. So i'd REALLY like to see what makes yours different. (hope there's no changestates in the .cns for combos too)


In M.U.G.E.N there is no magic button

They say a little knowledge is a dangerous thing, but it's not one half so bad as a lot of ignorance.

PotS

That's not what he meant though. IINM needs to have the exact same triggers for all those changestates.
You can help with Ikemen GO's development by trying out the latest development build and reporting any bugs on GitHub.
My Mugen and Ikemen content can also be found here.

Cyanide

Doing that, i get 1 move spammed after the start off. Which makes total sense to me.

Spoiler (click to show)
[state -1]
type = changestate
triggerall = teamside = 2 && p2bodydist X< 10
trigger1 = statetype = S && ctrl
value = 200

[state -1]
type = changestate
trigger1 = movecontact && stateno = 200
trigger2 = movecontact && stateno = 210
trigger3 = movecontact && stateno = 230
trigger4 = movecontact && stateno = 240
value = 230

[state -1]
type = changestate
trigger1 = movecontact && stateno = 200
trigger2 = movecontact && stateno = 210
trigger3 = movecontact && stateno = 230
trigger4 = movecontact && stateno = 240
value = 210

[state -1]
type = changestate
trigger1 = movecontact && stateno = 200
trigger2 = movecontact && stateno = 210
trigger3 = movecontact && stateno = 230
trigger4 = movecontact && stateno = 240
value = 240

[state -1]
type = changestate
trigger1 = movecontact && stateno = 200
trigger2 = movecontact && stateno = 210
trigger3 = movecontact && stateno = 230
trigger4 = movecontact && stateno = 240
value = ifelse(random < 500, 250,220)

Never gets further than state 230.


In M.U.G.E.N there is no magic button

They say a little knowledge is a dangerous thing, but it's not one half so bad as a lot of ignorance.

hjk

#24
Quote from: Cyanide on November 30, 2007, 09:48:03 AM
Doing that, i get 1 move spammed after the start off. Which makes total sense to me.

Spoiler (click to show)
[state -1]
type = changestate
triggerall = teamside = 2 && p2bodydist X< 10
trigger1 = statetype = S && ctrl
value = 200

[state -1]
type = changestate
trigger1 = movecontact && stateno = 200
trigger2 = movecontact && stateno = 210
trigger3 = movecontact && stateno = 230
trigger4 = movecontact && stateno = 240
value = 230

[state -1]
type = changestate
trigger1 = movecontact && stateno = 200
trigger2 = movecontact && stateno = 210
trigger3 = movecontact && stateno = 230
trigger4 = movecontact && stateno = 240
value = 210

[state -1]
type = changestate
trigger1 = movecontact && stateno = 200
trigger2 = movecontact && stateno = 210
trigger3 = movecontact && stateno = 230
trigger4 = movecontact && stateno = 240
value = 240

[state -1]
type = changestate
trigger1 = movecontact && stateno = 200
trigger2 = movecontact && stateno = 210
trigger3 = movecontact && stateno = 230
trigger4 = movecontact && stateno = 240
value = ifelse(random < 500, 250,220)

Never gets further than state 230.

That's what I find interesting.

Try this...  :-\ quicken the pace of the charcter's moves in teh AIR file and change the ground hit velocity so that your character is scoring about 30 blow combos in each sitting and make like, 10 or more different values for the contact to change into and see what happens.

Hope this does it...

Hope I get my laptop back soon :gonk:... haven't tampered with 'Real' Mugen in days/weeks (converting to DOS is a pain in the ass).
LOL, Caddie's the man!! ;)

I'm as real as the runnin, I just happen to rap, Nigaas London, Japan, and i'm scared of dat tap.

I suggest extending my banning, cuz when I come back, it's gonna be hell. You think I was annoying before, oh man, it's on now :)
hjk vs. 99% of MFG. I will win.

RIP Poo Bear Tell my Dead Homie isson, for the year my partner.

Bastard Mami

btw, you can't disable mugen's default ai ( i remember reading a comment about that in one of the quoted codes).