collapse

Author Topic: Specific Winpose on Round 2 only  (Read 729 times)

0 Members and 1 Guest are viewing this topic.

Offline Krishjan

  • Initiate
  • **
  • Posts: 73
  • Last Login:July 23, 2019, 03:52:53 AM
  • Hi! I'm new!!
Specific Winpose on Round 2 only
« on: April 09, 2013, 10:49:11 PM »
Hi, I have a question regarding a specific winpose, supposing I had a specific winpose for a character. for example: Ryu vs Ken. How will I activate this Winpose on round 2 only?

This is my code on a specific winpose I used the Statedef 183

[Statedef 183, vs Hauzer]
type = S
ctrl = 0
anim = 4071980
velset = 0,0

[State 183,1]
type = AssertSpecial
trigger1 = Time = [0,250]
trigger2 = roundstate = 2
flag = RoundNotOver

"and I have also added this code on statedef 180"

[State 180,11]
type = ChangeState
trigger1 = Time=0
value = ifelse(enemy,name="Hauzer" && enemy,authorname="Doggiedoo",183,181+(random%1))
value = 181+random%3

The specific winpose worked on a specific character but it always trigger on both in Round 1 and Round 2. How will I trigger this specific winpose on Round 2 only?



Offline O Ilusionista

  • Since 1999 and kicking :)
  • IMT Content Architect
  • *
  • Posts: 12470
  • Country: Brazil br
  • Last Login:June 18, 2024, 10:10:26 AM
  • OpenBOR & Mugen addicted
    • BMT - Brazil Mugen Team
    • Email
Re: Specific Winpose on Round 2 only
« Reply #1 on: April 09, 2013, 11:11:01 PM »
You need to store mow much rounds are gone using a var

Quote
[State 0, VarAdd]
type = VarAdd
trigger1 = !time
v = 20
value = 1

(yeah, on Mugen bugged logic, you can add a variable that you never declared, lol)

Then you check for that var

Quote
[State 180,11]
type = ChangeState
triggerall = Var(20)>1
trigger1 = Time=0
value = ifelse(enemy,name="Hauzer" && enemy,authorname="Doggiedoo",183,181+(random%1))

You can omit the second VALUE line, its not right

Offline Cyanide

  • MUGEN Content Architect
  • *****
  • Posts: 813
  • Last Login:March 29, 2019, 06:52:34 AM
    • Mugen Obscurity
Re: Specific Winpose on Round 2 only
« Reply #2 on: April 10, 2013, 06:28:47 AM »
don't need to store it in a variable. Do you mean only round 2, or say, you win round one, lose 2, win 3?

If it's only round 2 you would use

trigger1 = roundno = 2 in your winstate decider. If you're working out if it's final round

trigger1 = matchover

Simple really.

Offline O Ilusionista

  • Since 1999 and kicking :)
  • IMT Content Architect
  • *
  • Posts: 12470
  • Country: Brazil br
  • Last Login:June 18, 2024, 10:10:26 AM
  • OpenBOR & Mugen addicted
    • BMT - Brazil Mugen Team
    • Email
Re: Specific Winpose on Round 2 only
« Reply #3 on: April 10, 2013, 08:45:52 AM »
oh man, I forgot about that trigger!

I think I am a bit rusty, lol
« Last Edit: April 10, 2013, 08:53:57 AM by .:O:. »

Offline Krishjan

  • Initiate
  • **
  • Posts: 73
  • Last Login:July 23, 2019, 03:52:53 AM
  • Hi! I'm new!!
Re: Specific Winpose on Round 2 only
« Reply #4 on: April 11, 2013, 05:34:55 PM »
It worked thanks guys both of your advice is really helpful

Tags:
 


* IMT Facebook

Help us by Donating!

IMT Discord

Join us at our Discord! Click the image below!

* IMT Shoutbox

Sorry, this shoutbox does not exist.

* Recent Posts

Golden Axe Returns by striderhiryu201
[June 23, 2024, 04:15:50 PM]


Virtual Bart Science Fair by Rage
[June 21, 2024, 01:25:51 PM]


Turn Battle - Mega Man Robot Master Mayhem by O Ilusionista
[June 18, 2024, 10:11:08 AM]


Classic VS : Cheng / Athena by O Ilusionista
[June 18, 2024, 10:10:26 AM]


Downtown Nekketsu Monogatari Stage Pack by Vegaz by LightFlare
[June 17, 2024, 02:30:12 PM]


Marvel vs. Capcom: Eternity of Heroes REMAKE Game Update 1.3.0 - N.A.O.H. by Uche_of_IMT
[June 10, 2024, 11:25:24 PM]


Street Fighter Spec Ops 2021 by O Ilusionista
[June 08, 2024, 01:36:06 PM]


Lasombra's IKEMEN Go Interactive Stages' WIP Topic and Releases by Lasombra Demon
[June 06, 2024, 07:34:10 PM]


Kirby the Dream Battle by O Ilusionista
[June 06, 2024, 01:04:12 PM]


Neo Geo Pocket by malevka2
[June 05, 2024, 10:53:57 AM]

* IMT Calendar

June 2024
Sun Mon Tue Wed Thu Fri Sat
1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 [24] 25 26 27 28 29
30

SimplePortal 2.3.5 © 2008-2012, SimplePortal