YesNoOk
avatar

Implementing a var to pausetime to change pausetime when a var is on (Read 2188 times)

Started by BurningSoul, July 10, 2019, 12:52:21 pm
Share this topic:
Implementing a var to pausetime to change pausetime when a var is on
#1  July 10, 2019, 12:52:21 pm
  • ****
  • Pixels are atom's of resolution,Low-res or Hi-res
    • Turkey
    • metekervan26@gmail.com
pausetime =Ifelse(var(20), 4, 10), Ifelse(var(20), 4, 10)
guard.pausetime = Ifelse(var(20), 4, 10), Ifelse(var(20), 4, 10)

okey so this is the pausetime and guard.pausetime values character is using,
so what I wanna do is to implement a new var to this,var(55)
basically this var is for chain combos
so if chains are turned on in config file
character will use different pause time values.
Any idea how to implement this?
Re: Implementing a var to pausetime to change pausetime when a var is on
#2  July 10, 2019, 12:59:44 pm
  • *****
  • Shame on you!
    • USA

  • Online
Math?
Ifelse(var(20), 4+var(55), 10+var(55))

What are your values going to be?
If var 55 is going to vary that your math might not always add up.
Is var(20) always 0 or 1??
vVv Ryuko718 Updated 10/31/22 vVv
Re: Implementing a var to pausetime to change pausetime when a var is on
#3  July 10, 2019, 01:07:15 pm
  • ****
  • Pixels are atom's of resolution,Low-res or Hi-res
    • Turkey
    • metekervan26@gmail.com
var(20) is controlling custom combo,
its usually 180 inside custom combo state and below is -2
Code:
[State -2, Custom Combo End]
type = VarSet
trigger1 = var(20) < 0
trigger2 = MoveType = H
trigger3 = RoundState != 2
trigger4 = (StateNo = [3000,4999])
var(20) = 0
ignoreHitPause=1
[State -2, Custom Combo Time]
type = VarAdd
trigger1 = var(20) > 0
var(20) = -1
ignoreHitPause = 1
[State -2, Custom Combo Asserts]
type = AssertSpecial
trigger1 = var(20) > 0
flag = NoStandGuard
flag2 = NoCrouchGuard
flag3 = NoAirGuard
ignoreHitPause = 1
[State -2, Custom Combo PalFX]
type = PalFX
trigger1 = var(20) > 60
time = 2
add = 32 + ceil(sin(var(20) / 16.0 * pi) * 32), 32 + ceil(sin(var(20) / 16.0 * pi) * 32), 32 + ceil(sin(var(20) / 16.0 * pi) * 32)
ignoreHitPause = 1
[State -2, Custom Combo PalFX]
type = PalFX
trigger1 = var(20) = [1,60]
time = 2
add = 64 + ceil(sin(var(20) / 8.0 * pi) * 64), 64 + ceil(sin(var(20) / 8.0 * pi) * 64), 64 + ceil(sin(var(20) / 8.0 * pi) * 64)
ignoreHitPause = 1
Re: Implementing a var to pausetime to change pausetime when a var is on
#4  July 10, 2019, 02:16:55 pm
  • ****
  • Pixels are atom's of resolution,Low-res or Hi-res
    • Turkey
    • metekervan26@gmail.com
I figured it out