collapse

Author Topic: Specific Winpose on Another Character  (Read 454 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 Another Character
« on: April 27, 2013, 10:07:09 AM »
Hi, have a problem on my coding on my Winpose, I had successfully created a specific Winpose on One Character Name Hauzer on the final round and its working Fine but when I created a 2nd Specific Winpose for Kongou, it does not work. What I mean is My Hauzer works but my Kongou is not working it reverts back to Random Winpose, I'd like to show my Code for State 180 (Winpose)

[Statedef 180]
type = S
movetype = I
velset = 0,0
ctrl = 0

[state 180]
type = varset
trigger1 = time=0
var(2)=0

[State 180, Random]
type = ChangeState
trigger1 = Time=0
trigger1 = !matchover
value = 181+random%2

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

[State 180, vs Kongou]
type = ChangeState
trigger1 = Time= 0
trigger1 = matchover
value = ifelse(enemy,name="Kongou" && enemy,authorname="Doggiedoo",184,181+(random%1))
value = 181+random%2

Whats wrong with This Code? Please can anyone help me?




Offline Cyanide

  • MUGEN Content Architect
  • *****
  • Posts: 813
  • Last Login:March 29, 2019, 06:52:34 AM
    • Mugen Obscurity
Re: Specific Winpose on Another Character
« Reply #1 on: April 28, 2013, 02:32:51 AM »
It's wrong.

Changestate will only take ONE value, it will not take 2. So only

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

That much is working. This says. Use stateno 183 OR stateno 181 and 182 It checks this, discovers it's not hauzer, so it enumerates the rest of the ifelse and changes to 181 or 182. It will never reach the kongou one.

You need 3 changestates

First changestate
trigger1 = p2name = "hauzer"
value = hauzer state

second changestate
trigger1 = p2name = "kongou"
value = kongou state

third changestate
trigger1 = time > 0
random stuff when it's not either of the 2 above.

Offline Krishjan

  • Initiate
  • **
  • Posts: 73
  • Last Login:July 23, 2019, 03:52:53 AM
  • Hi! I'm new!!
Re: Specific Winpose on Another Character
« Reply #2 on: April 28, 2013, 08:59:10 PM »
Wow, It works. Thank you :)

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

[BOR] _Avengers United Battle Force_ by O Ilusionista
[Today at 12:35:24 PM]


Eternal Lament Stage 1.1 & 1.0 by O Ilusionista
[Today at 12:34:54 PM]


MatreroG's Stages W.I.P. Concepts by MatreroG
[Today at 07:00:56 AM]


Marvel vs. Capcom: Eternity of Heroes REMAKE Game Update 1.3.0 - N.A.O.H. by ExShadow
[November 02, 2024, 04:54:41 AM]


Spooky House(1.1 Only/AIGS) by Vegaz by LightFlare
[October 31, 2024, 11:31:36 AM]


Rooftop Skyline(1.1 Only/AIGS) by Vegaz by LightFlare
[October 21, 2024, 12:13:37 PM]


Secluded Base(1.1 Only/AIGS) by Vegaz by LightFlare
[October 17, 2024, 01:21:06 PM]


Ultimate Balrog + stage by ELECTRO
[October 17, 2024, 05:40:31 AM]


Classic VS : Balrog by ELECTRO
[October 08, 2024, 04:35:53 PM]


IMT Tutorials and Documentation gone? by tehdevil
[October 06, 2024, 04:25:52 AM]

* IMT Calendar

November 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