YesNoOk
avatar

is something wrong? Temporary buff problem (Read 830 times)

Started by Redkid221, March 09, 2025, 02:58:21 am
Share this topic:
is something wrong? Temporary buff problem
#1  March 09, 2025, 02:58:21 am
    • USA
The Idea was simple, make a temporary buff that goes away by any second. I don't know if I'm doing something wrong right now, anyone care to review the state?

;Preperation
[Statedef 1050]
type    = S                     
movetype= A                     
physics = S                                         
velset = 0,0                     
ctrl = 0                         
anim = 1050                       
poweradd = -1000                   
sprpriority = 2

[State 1050, AttackMulSet]
type = AttackMulSet
trigger1 = (Var(0) > 0)
value = 80

[State 1050, AfterImage]
type = AfterImage
trigger1= animelem= 13
triggerall= (Var(0) > 0)
time= -1
paladd = 255,0,0

[State 1050, VarSet]
type = VarSet
trigger1 = (!Time)
v = 0
value = 100

[State 1050, VarAdd]
type = VarAdd
trigger1 = (Var(0) > 0)
v = 0
value = -1

[State 1050, 3]
type = ChangeState
trigger1 = AnimTime = 0
value = 0
ctrl = 1
Re: is something wrong? Temporary buff problem
#2  March 09, 2025, 09:54:54 am
  • ******
    • Portugal
    • network.mugenguild.com/pots/
You're handling the entire buff from the state, so it will only work while the char is in it. What you need is for the state to activate the buff, then the buff itself and the timer are handled in a negative state, which execute regardless of what state the char is in.
You can help with Ikemen GO's development by trying out the latest development build and reporting any bugs on GitHub.
My Mugen and Ikemen content can also be found here.