YesNoOk
avatar

custom intro (Read 681 times)

Started by BC, November 22, 2008, 01:06:19 am
Share this topic:

BC

custom intro
#1  November 22, 2008, 01:06:19 am
  • ****
    • UK
    • www.mugenevolution.co.uk/Forum
[mcode][Statedef 190]
anim = 190
ctrl = 0

[State 180, variable set for author and character name]
type = VarSet
triggerall = enemy,name = "Akuma" && enemy,authorname = "blackchaos07"
trigger1= time = 0
v = 15
value = 0

[State 190,st ]
type = ChangeState
triggerall =  var(15)!=0
trigger1 = time = 0
value = 191+random%3
ctrl = 0[/mcode]


im new to coding custom intro's with other characters so i knew there'd be some minor obsticals.

the idea of the code above was to set the variable 15 to the value of 0 if then enemys name = "Akuma" and the Authorname = me basically... if it does var(15)=0 when time = 0.

in the changestate ive got the triggerall as when var(15) does not = 0... which i was hoping meant that the enemys name isnt akuma nor the authorname is correct. so there for it can continue with the intro choice.

but instead no matter who i face it tries doing the custom intro which is state 666.

can someone tell me where im going wrong here.
click the image to join my forum ;)
Last Edit: November 22, 2008, 07:01:45 pm by [B]lack[C]haos

BC

Re: custom intro.. varset problem.
#2  November 22, 2008, 01:09:54 am
  • ****
    • UK
    • www.mugenevolution.co.uk/Forum
i was thinking do i even need a variable?

cant i just make a changestate above the random one.. with the triggerall as the enemy name and authorname
and trigger as whatever.
click the image to join my forum ;)

BC

Re: custom intro.. varset problem.
#3  November 22, 2008, 01:15:18 am
  • ****
    • UK
    • www.mugenevolution.co.uk/Forum
ok problem solved...... lol sorry for spamming.

[mcode][Statedef 190]
anim = 190
ctrl = 0


[State 190,st ]
type = ChangeState
triggerall = enemy,authorname = "blackchaos07" && enemy,name = "Akuma"
trigger1 = teammode=single
value = 666
ctrl = 0

[State 190,st ]
type = ChangeState
trigger1 = time = 0
value = 191+random%3
ctrl = 0[/mcode]

thats all i needed.
click the image to join my forum ;)

BC

Re: custom intro.. varset problem.
#4  November 22, 2008, 02:52:19 pm
  • ****
    • UK
    • www.mugenevolution.co.uk/Forum
having a position problem this time lol this is the actuall intro now, not when to change to the state.

if i go into watch mode and select blanka as p1... and akuma as p2.. their positions are fine...the only persons position i changed was akuma anyway to make him appear further back.

when i select akuma as p1 and blanka as p2 i get this problem....






im guessing for akumas posset do i need an ifelse(facing=1,blah,blahblah)?

(as usuall whilst asking ill be trying so i may fix it lol)
click the image to join my forum ;)

BC

Re: custom intro.. varset problem.
#5  November 22, 2008, 02:55:46 pm
  • ****
    • UK
    • www.mugenevolution.co.uk/Forum
well first of all they both need a facep2 in the statedef lol.

but akumas position needs fixing still..

when akuma is p2 x = 130 works, but when he is player1 he needs -130

checking the docs :P



EDIT: ifelse(teamside=2,130,-130)    Wohoo lol
click the image to join my forum ;)
Last Edit: November 22, 2008, 02:59:28 pm by [B]lack[C]haos
Re: custom intro.. varset problem.
#6  November 22, 2008, 03:02:01 pm
  • ******
  • I hang out tough. I'm a real boss.
    • USA
    • litotichues.com/

  • Online
:speechless:

BC

Re: custom intro.. varset problem.
#7  November 22, 2008, 03:03:55 pm
  • ****
    • UK
    • www.mugenevolution.co.uk/Forum
LOL... something tells me... did i need to post  --;
click the image to join my forum ;)

BC

Re: custom intro
#8  November 22, 2008, 07:03:29 pm
  • ****
    • UK
    • www.mugenevolution.co.uk/Forum
during a custom intro.. when i set p2's postion further back a little its fine... but when then announcer says round 1 fight it kinda resets his position to the default.. is there a way of overriding this?
click the image to join my forum ;)
Re: custom intro
#9  December 03, 2008, 03:18:39 pm
  • **
  • Oozaru with a hang over
Wow you bumbed this , like 5 times......No one gave you crap about it????hhhmmmmmmm
Re: custom intro
#10  December 03, 2008, 04:58:59 pm
  • ******
  • [E]
    • Mexico
NĂ³, those were good bumps because the problem changed.

BC

Re: custom intro
#11  December 04, 2008, 01:25:10 pm
  • ****
    • UK
    • www.mugenevolution.co.uk/Forum
Quote
during a custom intro.. when i set p2's postion further back a little its fine... but when then announcer says round 1 fight it kinda resets his position to the default.. is there a way of overriding this?

even though this topic is old now because i fixed the problem if anyone has the same problem heres what i did....using assertspecial (or blank anim) for both characters while the portriat pics and text were active, and reset their positions before removing the invisibility at the required time.

click the image to join my forum ;)