collapse

Author Topic: Specific Winpose on Round 2 only  (Read 705 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: 12463
  • Country: Brazil br
  • Last Login:May 18, 2024, 11:29:37 PM
  • 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: 12463
  • Country: Brazil br
  • Last Login:May 18, 2024, 11:29:37 PM
  • 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

Street Fighter 1 Ultimate Ryu by ELECTRO
[May 22, 2024, 03:58:25 PM]


China Town (Revenge of Shinobi) by Lord_Enemil
[May 22, 2024, 03:02:10 PM]


Neon Light Force Demo by Uche_of_IMT
[May 22, 2024, 10:21:37 AM]


Marvel vs. Capcom: Eternity of Heroes REMAKE Game Update 1.3.0 - N.A.O.H. by Uche_of_IMT
[May 21, 2024, 11:50:20 PM]


The Spider release + Spider-Man game by kobun
[May 21, 2024, 02:05:24 AM]


Let's all try it together! Yazawanainn gose breakdancing in MUGEN! by GTFoxN6Y
[May 18, 2024, 05:00:14 PM]


[WIP] Pocket Dimensional Clash 2 by O Ilusionista
[May 18, 2024, 11:17:34 AM]


Classic VS : Athena by ELECTRO
[May 15, 2024, 01:25:51 PM]


D2TD VS Showcase Thread by D2TD
[May 12, 2024, 10:20:11 AM]


Ballroom Hallway (1.1 Only/AIGS) by Vegaz by LightFlare
[May 09, 2024, 11:53:48 AM]

* IMT Calendar

May 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 31

SimplePortal 2.3.5 © 2008-2012, SimplePortal