YesNoOk
avatar

disable a special Turns Intro? (Read 417 times)

Started by Killerking75, March 17, 2017, 10:58:27 am
Share this topic:
disable a special Turns Intro?
#1  March 17, 2017, 10:58:27 am
  • *
  • I like Ai's
 I downloaded this Ken from here:     http://mugenguild.com/forum/topics/my-a-i-patches-edits-updated-158340.0.html
and it's by far the best iteration of the character for me. Problem is, when he's up against Ryu in Turns Mode AFTER the 1st Round his "special" intro interaction activates again and it looks messy:     http://imgur.com/uojPzjl
so I tried looking through the codes and...I don't know what to delete to fix this. I want Ken to do his special intro with Ryu ONLY the first round and his regular intros afterward. Much appreciated for your time  ;)
Re: disable a special Turns Intro?
#2  March 17, 2017, 08:17:33 pm
  • ***
  • Genan Shiranui forever!!!
    • USA
    • johncrystal00@embarqmail.com
U need to add a trigger to the changestate's state that calls on the statedef for the intro that will not allow it to be used if the enemy has a partner. Hope I'm not confusing u. I don't know the trigger off the top of my head. Not at my PC. But statedef 190 will contain the changestate that calls on the intro u need edited.
Re: disable a special Turns Intro?
#3  March 19, 2017, 12:54:30 am
  • *
  • I like Ai's
 Sorry for late response, been busy with work. Okay dude I get what you're saying but I don't fully understand what code I'm supposed to be adding my statedef 190 looks like this:

;====================<INTRO 3>====================
[StateDef 190]
type = S
physics = S
anim = 190

[State 190, Change to Intro vs Violent]
type = ChangeState
trigger1 = Enemy, var(40) = 1
trigger1 = var(40) != 1
trigger1 = NumEnemy
trigger1 = RoundNo = 1 && (!(TeamMode = Simul) && !(Enemy, TeamMode = Simul))
trigger1 = Enemy, AuthorName = "Phantom.of.the.Server&Jmorphman" && Enemy, Name = "Ken Masters"
value = 5971

[State 5900, Intro Decider]
type = ChangeState
trigger1 = !Time
value = 188 + (Random % 5)

[State 190, Assert: Intro]
type = AssertSpecial
trigger1 = 1
flag = Intro

[State 190, PosAdd]
type = PosAdd
trigger1 = !Time
trigger1 = PrevStateNo = 193
x = -ceil(var(10) - 110)

[State 190, PosSet]
type = PosSet
trigger1 = !Time
trigger1 = PrevStateNo = 194
x = var(10)
y = 0

[State 190, End]
type = ChangeState
trigger1 = !AnimTime
value = 0



I'm pretty sure this is meant for the Violent Ken variation and not for Ryu; Could you maybe give me an example on what I need to add or change? And thanks I really appreciate the feedback on this, mate.
Re: disable a special Turns Intro?
#4  March 19, 2017, 09:47:20 pm
  • ***
  • Genan Shiranui forever!!!
    • USA
    • johncrystal00@embarqmail.com
Ok I'm really not sure what your var(40) is all about so I would change that first section of code to this to see how it goes. Remove the added semicolons to see if they are needed in front of the var(40) stuff.

Code:
[State 190, Change to Intro vs Violent]
type = ChangeState
;trigger1 = Enemy, var(40) = 1            <------ NOT SURE ABOUT THIS
;trigger1 = var(40) != 1            <------ NOT SURE ABOUT THIS
;trigger1 = NumEnemy            <------ NOT SURE ABOUT THIS
;trigger1 = RoundNo = 1 && (!(TeamMode = Simul) && !(Enemy, TeamMode = Simul))            <------ PRETTY SURE THIS NEEDS A SEMICOLON
trigger1 = Enemy, AuthorName = "Phantom.of.the.Server&Jmorphman" && Enemy, Name = "Ken Masters"
value = 5971

Like I said you may need the first 3 lines of code so remove the semi colons if you do.
Re: disable a special Turns Intro?
#5  March 20, 2017, 05:19:28 am
  • *
  • I like Ai's
Hmm, looks like nothing changed at all. I think the problem might come from this:

;====================<INITIALIZE (PART 2)>====================
[StateDef 5901]
type = S

[State 5901, Simul Intro with Ryu]
type = ChangeState
trigger1 = var(40) != 1
trigger1 = NumEnemy && RoundNo = 1
trigger1 = TeamMode = Simul && NumPartner
trigger1 = Partner, AuthorName = "Phantom.of.the.Server" && Partner, Name = "Ryu" && (Partner, var(1) != 2)
value = 6910

[State 5901, vs Ryu (P2 side)]
type = ChangeState
trigger1 = var(40) != 1
trigger1 = NumEnemy
trigger1 = RoundNo = 1 || (!(Enemy, RoundsExisted) && !(TeamMode = Simul) && !(Enemy, TeamMode = Simul))
trigger1 = !(TeamMode = Simul) && !(Enemy, TeamMode = Simul)
trigger1 = Enemy, AuthorName = "Phantom.of.the.Server" && Enemy, Name = "Ryu" && (Enemy, var(1) != 2)
trigger1 = Enemy, StateNo = [192,193]
value = ifElse(Enemy, StateNo = 192, 193, 194)

[State 5901, vs Ryu (P1 side)]
type = ChangeState
trigger1 = var(40) != 1
trigger1 = NumEnemy
trigger1 = RoundNo = 1 || (!(Enemy, RoundsExisted) && !(TeamMode = Simul) && !(Enemy, TeamMode = Simul))
trigger1 = !(TeamMode = Simul) && !(Enemy, TeamMode = Simul)
trigger1 = Enemy, AuthorName = "Phantom.of.the.Server" && Enemy, Name = "Ryu" && (Enemy, var(1) != 2)
value = 193 + (Random % 2)


Though I could be wrong, I'm not particularly a genius on this stuff
Re: disable a special Turns Intro?
#6  March 20, 2017, 10:20:13 am
    • France
Hi, open ken.st (or violentken or normalken)
change last code

;[State 5900, End] ; old
;type = ChangeState
;trigger1 = 1
;value = 5901

[State 5900, turnsintro] ;new
type = changestate
trigger1 = !time && teammode = turns
value = ifelse(roundno = 1, 5901, 6900)
[State 5900, intro]
type = changestate
trigger1 = !time && teammode != turns
value = ifelse(roundno = 1, 5901, 0)
Re: disable a special Turns Intro?
#7  March 20, 2017, 04:07:22 pm
  • *
  • I like Ai's
YESS!! You did it! Thanks Dude!
Re: disable a special Turns Intro?
#8  March 20, 2017, 04:17:59 pm
    • France
np ^^ You are welcome