# Can't Find Faust's Power Trigger (Read 1961 times)

Started by Creamy_Goodness, May 29, 2022, 02:41:02 PM

#### Creamy_Goodness

##### Can't Find Faust's Power Trigger
#1  May 29, 2022, 02:41:02 PM

> This is somewhat of a follow up to a fairly recent thread I posted when I asked where I could the AI for Faust by muteki. I'm trying to change Faust's Gamble Attack super (3600) from a Level 1 super to a Level 2. However, despite my best efforts, I can't stop the AI from using the attack when Faust has less than two stocks of energy. Here's what I've changed so far...

----------

> In faust.cmd, within this state controller...

[State -1, 3000]
type = ChangeState
value = 3600
triggerall = !ishelper
triggerall = var(40) = 0
triggerall = var(59) <= 0
triggerall = var(58) = 1
triggerall = var(25) = 0
triggerall = power >= 1000
triggerall = command = "Žh??“I?â–???"
trigger1 = statetype != A
trigger1 = (ctrl||fvar(28)) || (StateNo = 5120 && animtime = 0)
trigger2 = (stateno = [200,450]) && (movecontact||movereversed) && var(3) = 0
trigger2 = stateno != [240,242]
trigger3 = stateno = 100
trigger4 = stateno = 101
trigger5 = stateno = 40
trigger6 = stateno = [195, 197]
trigger6 = time > ifelse(anim = 197,20,61)
trigger7 = numhelper(780+id)
trigger7 = helper(780+id),sysvar(0)
trigger7 = stateno = 151 || stateno = 153 || (stateno = 155 && statetype != A)

> I changed this...

triggerall = power >= 1000

> To this...

triggerall = power >= 2000

----------

> Also in faust.cmd, within this state controller...

[State -1, 3000]
type = ChangeState
value = 3000
triggerall = !ishelper
triggerall = var(40) = 0
triggerall = var(59) <= 0
triggerall = var(58) != 1
triggerall = var(25) = 0
triggerall = enemy,numpartner = 0
triggerall = power >= 1000
triggerall = command = "Žh??“I?â–???"
trigger1 = statetype != A
trigger1 = (ctrl||fvar(28)) || (StateNo = 5120 && animtime = 0)
trigger2 = (stateno = [200,450]) && (movecontact||movereversed) && var(3) = 0
trigger2 = stateno != [240,242]
trigger3 = stateno = 100
trigger4 = stateno = 101
trigger5 = stateno = 40
trigger6 = stateno = [195, 197]
trigger6 = time > ifelse(anim = 197,20,61)
trigger7 = numhelper(780+id)
trigger7 = helper(780+id),sysvar(0)
trigger7 = stateno = 151 || stateno = 153 || (stateno = 155 && statetype != A)

> I changed this...

triggerall = enemy,numpartner = 0
triggerall = power >= 1000

> To this...

triggerall = power >= 2000

----------

> In faust.cns, I commented out all this...

[State -1]
type = varset
sysvar(1) = 3600
triggerall = sysvar(1) = 0
triggerall = root,var(40) = 0
triggerall = root,var(59) <= 0
triggerall = root,var(58) = 1
triggerall = root,var(25) = 0
triggerall = root,power >= 1000
triggerall = root,command = "Žh??“I?â–???"
trigger1 = root,stateno = 150 || root,stateno = 152

[State -1]
type = varset
sysvar(1) = 3000
triggerall = sysvar(1) = 0
triggerall = root,var(40) = 0
triggerall = root,var(59) <= 0
triggerall = root,var(58) != 1
triggerall = root,var(25) = 0
triggerall = root,power >= 1000
triggerall = root,command = "Žh??“I?â–???"
trigger1 = root,stateno = 150 || root,stateno = 152

----------

> Also in faust.cns, under [Statedef -3], within these two state controllers...

[State -3]
type = ChangeState
triggerall = var(40) = 0
triggerall = roundstate = 2
triggerall = var(59) >= 1
triggerall = var(58) != 1
triggerall = alive
triggerall = power >= 1000
triggerall = statetype != A && statetype != L
triggerall = p2bodydist X = [-10,120]
trigger1 = ctrl || (stateno = [100,101])
trigger1 = p2statetype != A
trigger1 = p2movetype = A
trigger1 = enemynear,hitdefattr = SCA, AT
value = 3000

[State -3]
type = ChangeState
triggerall = var(40) = 0
triggerall = roundstate = 2
triggerall = var(59) >= 1
triggerall = var(58) = 1
triggerall = alive
triggerall = power >= 1000
triggerall = statetype != A && statetype != L
triggerall = p2bodydist X = [-10,120]
triggerall = p2bodydist Y = [-80,0]
triggerall = random < 50
trigger1 = ctrl || (stateno = [100,101])
trigger1 = p2movetype = A
trigger2 = stateno = 450 && movehit
trigger3 = stateno = 430 && movehit
trigger3 = var(21) = 0
trigger4 = (stateno = [224,225]) && movehit
trigger4 = var(21) = 1
value = 3600

> I changed this...

triggerall = power >= 1000

> To this...

triggerall = power >= 2000

----------

> And finally in faust_ex.cns, under [Statedef 3600], I changed this...

[State 3000, 1]
trigger1 = animelem = 6
value = -1000

> To this...

[State 3000, 1]
trigger1 = animelem = 6
value = -2000

----------

> There's obviously something else going on that's causing Faust to not require two stocks of energy use the attack, but due to the extreme complexity of the character, I can't for the life of me figure it out. Once again, here is the link to the original character...

https://onedrive.live.com/?cid=495747b6f9328805&id=495747B6F9328805%21125&authkey=%21AHiQCBHj6az5zwg (filename is "fau.7z")
= = = = = = = = = =
Jason "Creamy Goodness" Tenn
http://creamyg.jdluke.com/
Last Edit: May 30, 2022, 02:12:22 PM by Creamy_Goodness

#### K-Fox

##### Re: Can't Find Faust's Power Trigger
#2  May 30, 2022, 05:38:02 AM
• Blue is cool.
The "gamble" attack is the one with the treasure chests appearing right? (Sorry, I don't know this character.)

There are 2 state controllers for that attack, but State 3000 is for that attack, not State 3600 (which seems to be a generic pummel move).

You changed the state controllers in State -3 right, but there is another state controller right at the beginning of State -3 for changing to State 3000:
Code:
`[State -3]type = ChangeStatetriggerall = var(40) = 0triggerall = roundstate = 2triggerall = var(59) >= 1triggerall = var(58) != 1triggerall = alivetriggerall = power >= 1000triggerall = statetype != A && statetype != Ltriggerall = p2bodydist X = [-10,120]triggerall = enemynear,AnimTime <= -10trigger1 = ctrl || (stateno = [100,101])trigger1 = p2statetype != Atrigger1 = p2movetype = Atrigger1 = (random < 120&&life >= 500)||(random < 220&&(life = [250,499]))||(random < 420&&life < 250)trigger2 = (prevstateno = [120,159])||(prevstateno = [5000,5120])trigger2 = ctrl && time <= 2trigger2 = p2statetype != Atrigger2 = p2movetype = Avalue = 3000`

Change the power requirement in this state controller to 2000 and see if that helps. You'll also need to change this in State 3000:
Code:
`[State 3000, 1]type = poweraddtrigger1 = time = 0value = -1000`

If I misunderstood and there are still problems, do tell me.
Sometimes I listen to video game music more than I actually play the game.
Check out my Bonus Game & Characters!: http://mugenguild.com/forum/topics/streets-rage-2-bonus-game-11-chars-162092.0.html
IKEMEN Version: https://mugenguild.com/forum/topics/streets-rage-2-bonus-game-ikemen-version-update-728-196297.0.html

#### Creamy_Goodness

##### Re: Can't Find Faust's Power Trigger
#3  May 30, 2022, 01:26:36 PM

@K-Fox

"You changed the state controllers in State -3 right, but there is another state controller right at the beginning of State -3 for changing to State 3000:

Code:

[State -3]
type = ChangeState
triggerall = var(40) = 0
triggerall = roundstate = 2
triggerall = var(59) >= 1
triggerall = var(58) != 1
triggerall = alive
triggerall = power >= 1000
triggerall = statetype != A && statetype != L
triggerall = p2bodydist X = [-10,120]
triggerall = enemynear,AnimTime <= -10
trigger1 = ctrl || (stateno = [100,101])
trigger1 = p2statetype != A
trigger1 = p2movetype = A
trigger1 = (random < 120&&life >= 500)||(random < 220&&(life = [250,499]))||(random < 420&&life < 250)
trigger2 = (prevstateno = [120,159])||(prevstateno = [5000,5120])
trigger2 = ctrl && time <= 2
trigger2 = p2statetype != A
trigger2 = p2movetype = A
value = 3000"

Change the power requirement in this state controller to 2000 and see if that helps."

> Oh shit, I don't know how I missed that. Thanks for pointing that out, I'll try changing the power trigger on it right away.

----------

"You'll also need to change this in State 3000:

Code:

[State 3000, 1]
trigger1 = time = 0
value = -1000

> I already got that one, as stated in my OP.

> OK, I'm going to try changing the power trigger on Staedef -3 and see if that helps. I'll get back to you as soon as I can.

= = = = = = = = = =
Jason "Creamy Goodness" Tenn
http://creamyg.jdluke.com/

#### Creamy_Goodness

##### Re: Can't Find Faust's Power Trigger
#4  May 30, 2022, 02:11:52 PM

@K-Fox

> OK, I adjusted the power trigger in Statedef -3, and then observed the AI in a few matches. When I did, I didn't see Faust use Gamble when he had less than 2 energy stocks, so the edit seems to have done the trick. Thanks for taking the time to help me out, and now I can mark this thread as Solved.
= = = = = = = = = =
Jason "Creamy Goodness" Tenn
http://creamyg.jdluke.com/