YesNoOk
avatar

Adding an intro to a Char (Read 7562 times)

Started by Tiger-Boy, April 06, 2022, 11:39:23 pm
Share this topic:
Adding an intro to a Char
#1  April 06, 2022, 11:39:23 pm
  • ***
  • "I'm Bal... I'm Veg...*Sigh* Just call me 'Claw'."
Hello;

I am trying to add an intro to one of my chars. I already have the animations, and the coding. However, the system is not recognizing the instruction.

I believe the issue is in this coding:
Spoiler, click to toggle visibilty

I believe this to be so, because the 3 intros that the char has have the following numbers ( Statedef ):
190
191
6905 (This one has several instructions in it: 6905, 6906, 6907 and 6908.

I have tried to edit the value in the command, but all I managed is to mess up the intros. And the new one still is not showing.

Any help will be greatly appreciated.  :neutral:
"Remember kids; Curiosity created MUGEN!"

Check Out Cammy-Delta-Red-Development HERE
Re: Adding an intro to a Char
#2  April 07, 2022, 07:58:45 am
  • ****
    • crepa.neocities.org

  • Online
So, I believe 6905 is the new intro you're trying to implement, and that state is like a redirect to 6906, 6907, and 6908. Is that correct?
Another question: are the other intros (190 and 191) working as intended?

In this case what I would do:
- Check if state 5900 is changing to 5901 correctly (it should, if the other intros are working).
- Try using just the state number instead of ifelses and randoms, even use another state like a punch or kick to see if it's working, if they do, then the problem is not here.
- Check states 6905 ~ 6908, see if they are not being used, and check their code to see if nothing weird is happening there, like changing to the stand too early.

If none of this works, I'd ask you to post the code for states 6905 ~ 6908 here.
The code you just posted is fine, my guess is that as soon as it changes to state 6905, something weird is going on.

Also, state 190, in a lot of cases, are just redirects to other intros too. Usually it goes:
5900 (always the first thing to load) -> 190 (intro decider) -> one of the intro states, usually 191, 192, 193...
So I would check it too, just in case.
Re: Adding an intro to a Char
#3  April 07, 2022, 09:06:59 pm
  • ***
  • "I'm Bal... I'm Veg...*Sigh* Just call me 'Claw'."
Hello @DeathScythe, and thank you for responding;

The 6905 is an intro code that was already in the char (this is the Cammy I am working on. This intro is the one where she comes from the top, lands on the corner of the 'window' and then lands on the floor).

The 190 and 191 intros work fine (one is Cammy's 'cutthroat' gesture, and the other is the one with her coat).

Here are the coding for the intros:
Spoiler, click to toggle visibilty

Should all intros follow the consecutive numbers of 191, 192, 193, etc...?
"Remember kids; Curiosity created MUGEN!"

Check Out Cammy-Delta-Red-Development HERE
Last Edit: April 07, 2022, 09:42:45 pm by Tiger-Boy
Re: Adding an intro to a Char
#4  April 08, 2022, 01:08:13 am
  • ****
    • crepa.neocities.org

  • Online
No, they don't need to follow any order or use specific numbers. Reading through the code, they should be fine, can't think of anything wrong here.

So, what exactly is happening? Intros 190 and 191 are working, but 6905 is not?
If you replace all the ifelses and randoms in that changestate (in 5901) by just 6905, what happens?
Re: Adding an intro to a Char
#5  April 08, 2022, 02:29:52 am
  • ***
  • "I'm Bal... I'm Veg...*Sigh* Just call me 'Claw'."
Al intros (190, 191 and 6905) are working fine. I just need to add a new one. This new one is not here ( I can add it later, if needed).

I already have it ready (sound and all). I just need to let the system know to add it to the random intros.

I edited the following code:

value= ifelse(random<333, 6905, ifelse(random<500, 191, 190))

I added the new number in some parts of this code:
value= ifelse(random<333, 6905, ifelse(random<500, 191, 190, ###)) => Will crash the game in the VS screen before the fight.

I don't remember what was the other thing I did on this code, but it messed up the intros. It added Guile's intro (salute) to the regular intros. And the new one did not appear.
"Remember kids; Curiosity created MUGEN!"

Check Out Cammy-Delta-Red-Development HERE
Last Edit: April 08, 2022, 02:52:33 am by Tiger-Boy
Re: Adding an intro to a Char
#6  April 08, 2022, 03:03:50 am
  • ****
    • crepa.neocities.org

  • Online
Ahhhhhhh, well, why didn't you say that early!? lol

Yeah, ifelses only accept two options, so you need to insert another ifelse:

value= ifelse(random<250, 6905, ifelse(random<333, 191, ifelse(random<500, 190, ###)))
Re: Adding an intro to a Char
#7  April 08, 2022, 04:07:05 am
  • ***
  • "I'm Bal... I'm Veg...*Sigh* Just call me 'Claw'."
OOoooh!  :o

Ok, the "ifelses only accept two options" is new to me. LEARNING!  ;D

Thank you! I will try it out, and see what happens.

 :bjugoi:
"Remember kids; Curiosity created MUGEN!"

Check Out Cammy-Delta-Red-Development HERE
Re: Adding an intro to a Char
#8  April 11, 2022, 03:50:45 am
  • ****
    • crepa.neocities.org

  • Online
Please tell me if it works, I can't live in peace without knowing if it worked or not! :fuuu:
Re: Adding an intro to a Char
New #9  October 13, 2022, 05:28:45 pm
  • ***
  • "I'm Bal... I'm Veg...*Sigh* Just call me 'Claw'."
Apologies for the (Very) late reply.

It worked.

Much appreciated.  :bjugoi:
"Remember kids; Curiosity created MUGEN!"

Check Out Cammy-Delta-Red-Development HERE
Last Edit: October 13, 2022, 09:37:43 pm by Tiger-Boy