collapse

Author Topic: Specific Winpose on Round 2 only  (Read 715 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: 12466
  • Country: Brazil br
  • Last Login:June 03, 2024, 03:17:47 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: 12466
  • Country: Brazil br
  • Last Login:June 03, 2024, 03:17:47 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

[WIP] Pocket Dimensional Clash 2 by O Ilusionista
[June 03, 2024, 03:18:12 PM]


[BOR] _Avengers United Battle Force_ by O Ilusionista
[June 03, 2024, 03:13:51 PM]


Mega Man & Bass - Dynamo Man by Sir Rousseau by O Ilusionista
[June 03, 2024, 03:09:50 PM]


D2TD VS Showcase Thread by D2TD
[May 31, 2024, 11:44:23 AM]


Lasombra's IKEMEN Go Interactive Stages' WIP Topic and Releases by Lasombra Demon
[May 26, 2024, 07:39:11 PM]


TMNT Hong Kong Stage for 1.0 & 1.1 Re-Release by LightFlare
[May 24, 2024, 01:44:07 PM]


Captain Commando Stage Pack by Vegaz by LightFlare
[May 24, 2024, 09:20:05 AM]


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]

* 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