collapse

Author Topic: Specific Winpose on Another Character  (Read 448 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

Ancient Gears Stage 1.1 & 1.0 by MatreroG
[September 20, 2024, 11:59:18 AM]


Classic VS : Balrog by ELECTRO
[September 17, 2024, 04:48:07 PM]


Justice League Metropolis Stage by Vegaz by LightFlare
[September 16, 2024, 11:57:49 AM]


Ultimate Mai Shiranui (FF2 & FF3) by nickfurry
[September 15, 2024, 02:27:53 AM]


thunderstrike eric masterson by Blagoy
[September 12, 2024, 02:41:33 PM]


Justice League Gotham Stage by Vegaz by LightFlare
[September 11, 2024, 09:41:42 AM]


Lasombra's IKEMEN Go Interactive Stages' WIP Topic and Releases by Lasombra Demon
[September 07, 2024, 03:06:46 AM]


MatreroG's Stages W.I.P. Concepts by MatreroG
[September 06, 2024, 01:27:09 PM]


Justice League Flash Stage by Vegaz by LightFlare
[September 03, 2024, 10:30:40 AM]


Raid's here! Raid kills fighters dead in MUGEN! by GTFoxN6Y
[August 31, 2024, 02:44:15 PM]

* IMT Calendar

September 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