YesNoOk
avatar

Type = AttackMulSet (Read 753 times)

Started by Ace-Million, January 28, 2010, 08:35:34 pm
Share this topic:
Type = AttackMulSet
#1  January 28, 2010, 08:35:34 pm
  • ***
  • www.soundcloud.com/acemillion
Hey I need help with my code I need the AttackMulSet to turn off after an certain time. Instead of constantly going throughout the match.
Its at the bottom..

; Dimension Rip: Helper
[Statedef 20000]
type = U
physics = A
movetype = U
ctrl = 1
poweradd = -4000

[State 20000, Pause]
type = Pause
trigger1 = 1
time = 350
movetime = 350

[State 20000, EnvShake]
type = EnvShake
trigger1 = 1
time = 10
freq = 100
ampl = 5
phase = 100
;ignorehitpause =
;persistent =

[State 20000, PalFX]
type = PalFX
trigger1 = 1
time = 350
add = 200,10,100
mul = 256,256,256
sinadd = 200,15,10,50
invertall = 0
color = 256
;ignorehitpause =
persistent = 1

[State 20000, State]
type = AfterImage
trigger1 = Time = 0
length = 10
PalBright   =  100, 5, 25
PalContrast = 225, 10, 50
TimeGap  = 3
FrameGap = 3
Trans = Add1
time = 350
persistent = 1

[State 20000, State]
type = AfterImageTime
trigger1 = 1
time = 350
persistent = 1

[State 20000, AttackMulSet]
type = AttackMulSet
trigger1 = 1
value = .90
time = 35
Re: Type = AttackMulSet
#2  January 28, 2010, 08:44:30 pm
  • ******
And you don't want to make use of the "time" trigger ? Make it so the first mulset doesn't trigger after the time you want, and create another attackmulset setting it back to 1 after that time hasa passed.
If I struggled to the end of my determination, to the end of my way of life with my followers, if the result is ruin, then this ruin is inevitable. Grieve. Shed tears. But you cannot regret.
Re: Type = AttackMulSet
#3  January 28, 2010, 09:14:49 pm
  • ***
  • www.soundcloud.com/acemillion
What I want is to make the attackmulset turn off after the move is over. ex: in 4 secs.
Okay Do you mean Like this.

P.s Thanks I TRY THIS..
[State 20000, AttackMulSet]
type = AttackMulSet
trigger1 = 1
value = .90

[State 20000, AttackMulSet]
type = AttackMulSet
trigger1 = 1
value = 1
time = 20
Re: Type = AttackMulSet
#4  January 28, 2010, 09:18:37 pm
  • ******
...
And you don't want to make use of the "time" trigger ? Make it so the first mulset doesn't trigger after the time you want, and create another attackmulset setting it back to 1 after that time hasa passed.
type = attackmulset
trigger1 = time < 240
value = .90

type = attackmulset
trigger1 = time > 240
value = 1

But judging from what you just said, you might need to use a variable to count the time that passes after your move ends, and check that value instead of time.
If I struggled to the end of my determination, to the end of my way of life with my followers, if the result is ruin, then this ruin is inevitable. Grieve. Shed tears. But you cannot regret.
Re: Type = AttackMulSet
#5  January 28, 2010, 09:27:48 pm
  • ***
  • www.soundcloud.com/acemillion
Your right on the variable thing. Because the Attackmulset still stays activated. I need to look into creating variables. Hopefully variables can be placed in the common1 because that's where I was writing the code. Trying to make characters be able to freeze time, and attack the opponent but wanted the damage to become weaker during the state.
Re: Type = AttackMulSet
#6  January 28, 2010, 09:29:07 pm
  • ******
  • Legendary XIII
  • I am the eye of the storm to come!
    • New Zealand
    • network.mugenguild.com/cyanide/
That's a helper isn't it? Helpers shouldn't change the attack setting of the player, and i see no changestate. Does it changestate in some other manner?


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.
Re: Type = AttackMulSet
#7  January 28, 2010, 09:51:30 pm
  • ***
  • www.soundcloud.com/acemillion
I'm a rookie at this. But I set the code to work when I press "s" as in taunt. (Its a state that slows down time/palfx changes/afterimage activates/.. Everything works fine other than the attackmulset doesn't leave after-wards its stays constant throughout the match..

byakko suggested that I use a variable can anyone point me to creating those with a time function. I would really appreciate it.
Re: Type = AttackMulSet
#8  January 28, 2010, 10:00:45 pm
  • ******
type = varset
trigger1 = [whenever the move ends]
var([variable number]) = 240

the in statedef -2 :
type = varadd
trigger1 = var([var number])
v = [var number]
value = -1; this will constantly remove 1 from the value - every tick. So basically this is a countdown starting from 240.

Then the attackmulset
type = attackmulset
trigger1 = var([var number]) = 0
value = 1
If I struggled to the end of my determination, to the end of my way of life with my followers, if the result is ruin, then this ruin is inevitable. Grieve. Shed tears. But you cannot regret.
Re: Type = AttackMulSet
#9  January 28, 2010, 10:37:09 pm
  • ***
  • www.soundcloud.com/acemillion
Thanks for the help,