YesNoOk
avatar

Beam and state change Help plz ^-^ (Read 389 times)

Started by blkFR0G, November 30, 2008, 10:18:09 pm
Share this topic:
Beam and state change Help plz ^-^
#1  November 30, 2008, 10:18:09 pm
  • *
  • (~*_*)~ ~(*_*~)
    • freewebs.com/blkfrog
Hiz ^_^
For my Rukia two of her attacks involves beams (One vertical, one horizontal)
I'm using helpers for them and I wanted her actual anim to change once the beam starts to die down
But when I think about it something in my head is telling me it wouldnt work

Code:
[State 3000, change]
type = ChangeState
Trigger1 = animtime = 8
value = 3001
ctrl = 0

3000 is the state of her anim and 3001 is the anim i want her to go to
but i would need the trigger1 to refer to the helper state 3100
is there a way to do that?  ???

Or would it be better to have it the other way around and have the beams split into 2 parts and rely on her?
(but would i run into the same problem o_O)

Thanks for your help  :sugoi:
[insert signature here]
Re: Beam and state change Help plz ^-^
#2  November 30, 2008, 10:24:42 pm
  • ******
  • I hang out tough. I'm a real boss.
    • USA
    • litotichues.com/
you would use the helper triggers

id your helper, then the trigger you would be using is

helper(ID),stateno=blah

make sure to use, in the same trigger number but above the trigger i gave you, a numhelper(ID) so you won't get debug spam.
Re: Beam and state change Help plz ^-^
#3  November 30, 2008, 11:10:06 pm
  • *
  • (~*_*)~ ~(*_*~)
    • freewebs.com/blkfrog
it didnt work but i think i understood wrong
I tried what i think i got out of that

Code:
[State 3100, Helper]
type = Helper
trigger1 = Time = 31
ID = 3102
postype = p1
pos = 23,-4
stateno = 3102
helpertype = normal
name = "WhiteMoon"
keyctrl = 0
ownpal = 1

the ID and stateno are 3102 and is a number
so all the way at the bottom i put...


[State 3100, change]
type = ChangeState
trigger1 = helper(3102),3102 = animelem = 8
value = 3101
ctrl = 1

[State 3100, end]
type = ChangeState
trigger1 = AnimTime = 0
value = 0
ctrl = 1

Am I way off or am i just missing something?
I'm sorry for my slowness I just started really getting indepth with triggers
[insert signature here]
Re: Beam and state change Help plz ^-^
#4  December 01, 2008, 05:29:18 am
  • ******
  • I hang out tough. I'm a real boss.
    • USA
    • litotichues.com/
no, you are not way off, thats excellent. :) But:

triggerall=numhelper(3102)

that tells MUGEN not to read that code any farther unless you have that specific helper; this prevents debug spam. sort of a safe trigger.

trigger1=helper(3102),stateno=3102

that tells it to activate when that helper is in that stateno

and sinc you want to specify even farther into anim elems

use another trigger1 like how you did already only without that extra 3102

Last Edit: December 01, 2008, 05:34:12 am by Raanii
Re: Beam and state change Help plz ^-^
#5  December 01, 2008, 06:43:39 am
  • ******
  • Legendary XIII
  • I am the eye of the storm to come!
    • New Zealand
    • network.mugenguild.com/cyanide/
Why are you making this awkward? Is the beam a set time before it dies out? Just have rukia's animation synch with the beam

Ie. Beam is 50 ticks, the last 20 of those are it dying out. Rukia's animation is 60 ticks, 10 are the startup and the last 20 are her new animation for when the beam is dying out. Hell add some more to rukia if you need a bit of extra anim after the beam has gone. Provided the start and end points match up you don't have to do any triggering at all.


In M.U.G.E.N there is no magic button

They say a little knowledge is a dangerous thing, but it's not one half so bad as a lot of ignorance.