collapse

Author Topic: I need help  (Read 430 times)

0 Members and 1 Guest are viewing this topic.

Offline ~Wolfpaul~

  • Infinity Regular
  • ****
  • Posts: 621
  • Last Login:June 06, 2012, 05:57:31 PM
    • Email
I need help
« on: November 09, 2007, 08:23:38 PM »
How to you make more than one character intro like before the round starts?




Userbar By The Dude Z

Offline Sludge

  • MUGEN Content Architect
  • *****
  • Posts: 110
  • Last Login:March 22, 2024, 06:44:27 PM
Re: I need help
« Reply #1 on: November 09, 2007, 08:34:48 PM »
the other character is a helper

Offline ~Wolfpaul~

  • Infinity Regular
  • ****
  • Posts: 621
  • Last Login:June 06, 2012, 05:57:31 PM
    • Email
Re: I need help
« Reply #2 on: November 09, 2007, 08:55:07 PM »
No i mean 2 intros for one character


Userbar By The Dude Z

Offline Sludge

  • MUGEN Content Architect
  • *****
  • Posts: 110
  • Last Login:March 22, 2024, 06:44:27 PM
Re: I need help
« Reply #3 on: November 10, 2007, 02:15:12 AM »
Oops, i interpreted it wrong... Go under statedef 5900 in your character, most likely the very last line of code should be a changestate that might look something like this:

[State 5900, 3] ;Intro for round 1
type = ChangeState
trigger1 = roundno = 1
value = 190

Depending on how many intro's you want you either want to use the VarRandom sctrl to generate a random number that will determine which intro to choose or if you just have 2 intro's you could do something like this:

[State 5900, 3] ;Intro for round 1 (option 1)
type = ChangeState
trigger1 = roundno = 1 && random >= 500
value = 190

[State 5900, 3] ;Intro for round 1 (option 2)
type = ChangeState
trigger1 = roundno = 1
value = 191

Offline Fallen_Angel

  • Global Moderator (out of the office)
  • *****
  • Posts: 1358
  • Last Login:July 04, 2012, 03:11:05 PM
    • Email
Re: I need help
« Reply #4 on: November 10, 2007, 09:04:04 AM »
To code it like sludge told you you need to add the common1 to the char. you can code the intro selects directly on the statedef 190

[Statedef 190]
type = S
ctrl = 0

[State 190, ]
type = ChangeState
trigger1 = random <=500
value =  191


[State 190, ]
type = ChangeState
trigger1 = random >=501
value =  192

the system randomize a number if the number is = or less than 500, it will change to the statedef 191, and if the number its between 501 and 999, it will change to the statedef 192 (999 its the maximum number of the random). If you want to add more you need to change the random you soud use something like these random = [0,250]; these means from 0 to 250


sig made by shullbocka

Offline ~Wolfpaul~

  • Infinity Regular
  • ****
  • Posts: 621
  • Last Login:June 06, 2012, 05:57:31 PM
    • Email
Re: I need help
« Reply #5 on: November 10, 2007, 11:21:02 AM »
Thanks i needed this  :thumbsup:


Userbar By The Dude Z

Offline Sludge

  • MUGEN Content Architect
  • *****
  • Posts: 110
  • Last Login:March 22, 2024, 06:44:27 PM
Re: I need help
« Reply #6 on: November 10, 2007, 11:38:56 AM »
Random is generated each time you call the trigger isn't it? So it would have to look like:

[Statedef 190]
type = S
ctrl = 0

[State 190, ]
type = ChangeState
trigger1 = random <=500
value =  191


[State 190, ]
type = ChangeState
trigger1 = 1
value =  192

Offline MirageAtoli

  • Infinity Faithful
  • ****
  • Posts: 584
  • Last Login:May 13, 2011, 03:25:23 AM
  • Oh, my Paws and Whiskers!
Re: I need help
« Reply #7 on: November 10, 2007, 04:34:54 PM »
This would also be a good place to use the modulo (%) function.

Offline Fallen_Angel

  • Global Moderator (out of the office)
  • *****
  • Posts: 1358
  • Last Login:July 04, 2012, 03:11:05 PM
    • Email
Re: I need help
« Reply #8 on: November 10, 2007, 11:30:17 PM »
Random is generated each time you call the trigger isn't it? So it would have to look like:

[Statedef 190]
type = S
ctrl = 0

[State 190, ]
type = ChangeState
trigger1 = random <=500
value =  191


[State 190, ]
type = ChangeState
trigger1 = 1
value =  192

I think that he way you code it its correct  , because the first changestate would only activate half of the times, but I prefer using more random becauase if I want to add 3 or 4, I only need to adjust the values of the random :thumbsup:


sig made by shullbocka

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

Ballroom Hallway (1.1 Only/AIGS) by Vegaz by LightFlare
[Today at 11:53:48 AM]


Neon Light Force Demo by kyoman
[May 08, 2024, 12:50:05 PM]


D2TD VS Showcase Thread by D2TD
[May 05, 2024, 10:08:50 AM]


Classic VS : Athena by ELECTRO
[May 02, 2024, 09:44:33 PM]


Lasombra's IKEMEN Go Interactive Stages' WIP Topic and Releases by Lasombra Demon
[April 21, 2024, 12:09:20 PM]


Ultimate E. Honda + stage by ELECTRO
[April 18, 2024, 09:47:24 PM]


Sunset Beach (1.1 Only/AIGS) by Vegaz by LightFlare
[April 16, 2024, 06:55:00 PM]


Wonder Twins 2.0 by brucewayne74, Shining and Skhsato123 by brucewayne74
[April 05, 2024, 06:07:48 PM]


X-Men Training Room (Bright & Dark) Stage 1.1 & 1.0 by MatreroG
[April 05, 2024, 10:55:29 AM]


[WIP] Pocket Dimensional Clash 2 by O Ilusionista
[April 01, 2024, 11:03:03 PM]

* 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