YesNoOk
avatar

Character Special Intro Not Working (Read 2130 times)

Started by gonespaces, September 13, 2023, 12:42:29 am
Share this topic:
Character Special Intro Not Working
#1  September 13, 2023, 12:42:29 am
  • foldable samsung fridge
    • USA
I'm editing this character, and I want to test this special intro but it wont work at all. I was sure of myself I had everything:

[State 190,]
type = ChangeState
triggerall = enemy,name = "Orochi Ash_MA" | p4name = "Orochi Ash_MA"
trigger1 = Time = 0
value = 2013

[Statedef 2013]
type = S
ctrl = 0
anim = 2013
velset = 0,0

[State 2013 ]
type = AssertSpecial
trigger1 = 1
flag = intro

[State 0, PosSet]
type = PosSet
trigger1 = animelem = 1
x = 180
y = 0

[State 0, VelSet]
type = VelSet
trigger1 = 2
x = 170
y = 0

[State 0, PosAdd]
type = PosAdd
trigger1 = Animelem = 3 || Animelem = 4 || Animelem = 5
x = -5

[State 0, PlaySnd]
type = PlaySnd
trigger1 = animelem = 1
value = S1000,5

[State 0, PlaySnd]
type = PlaySnd
trigger1 = animelem = 2
value = S2,2

[State 0, PlaySnd]
type = PlaySnd
trigger1 = animelem = 3
value = S1000,2

[State 0, PlaySnd]
type = PlaySnd
trigger1 = animelem = 3
value = S9000,0

[State 0, Explod]
type = Explod
trigger1 = Animelem = 3
anim = 1101
ID = 1101
pos = 0,15
postype = p1
bindtime = -1
sprpriority = 5
ownpal = 1
removeongethit = 1
ignorehitpause = 1
scale = .5,.5
facing = 1

[State 0, PlaySnd]
type = PlaySnd
trigger1 = animelem = 9
value = S2013,0

[State 0, PlaySnd]
type = PlaySnd
trigger1 = animelem = 10
value = S1,1

[State 0, PlaySnd]
type = PlaySnd
trigger1 = animelem = 19
value = S2013,3

[State 0, PlaySnd]
type = PlaySnd
trigger1 = animelem = 23
value = S2013,1

[State 0, PlaySnd]
type = PlaySnd
trigger1 = animelem = 28
value = S2013,2

[State 0, PlaySnd]
type = PlaySnd
trigger1 = animelem = 72
value = S1,1

[state 2013]
type = changeState
trigger1 = animtime = 0
value = 0


And I must mention I did make sure the name of the enemy was the one in their .def and I do have the animation number correct, along with the animation fully done. Is there something I'm missing here??
Last Edit: September 13, 2023, 12:38:46 pm by gonespaces
Re: Character Special Intro Not Working
#2  September 14, 2023, 07:11:24 pm
  • ******
[State 190,]
type = ChangeState
triggerall = enemy,name = "Orochi Ash_MA" | p4name = "Orochi Ash_MA"
trigger1 = Time = 0
value = 2013

Change | to ||. While it works in this instance, it's not good practice to use bitwise OR where logical OR belongs and vice versa.

Quote
[State 0, VelSet]
type = VelSet
trigger1 = 2
x = 170
y = 0

Quite the typo there, Vel X is always at 170. You'd probably never see the character :P
Re: Character Special Intro Not Working
#3  September 15, 2023, 10:52:52 pm
  • ******
  • Take better care of the plants around u or become
  • the fertilizer that feeds them.The choice is yours
    • Chile
    • network.mugenguild.com/basara/
Also, the triggers should be reversed. Triggerall should be the time or an absolute with 1 (triggerall = 1) and trigger1 should be the enemy recognizer and with it adding more chars with trigger2, trigger3, etc in case you want more chars use that same intro

Rest in peace, Toriyama-san...
Normal WIPS - ClayFighter - Ideas - Anti-Gouki Project - Lifebars - Facebook - X