is something wrong? Temporary buff problem

Started by Redkid221, March 09, 2025, 02:58:21 AM

Previous topic - Next topic

Redkid221

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

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.

Redkid221

Quote from: PotS on March 09, 2025, 09:54:54 AM
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.
So I need to change the state to a negative number, also what are some change's and things I need to add?


Odb718

Your character already has statedef -1 which is the CMD file
You want to use Statedef -2 or -3, which will be in one of the CNS files.

This should help clear up a ton of future/easy questions
http://mugenguild.com/forum/topics/mugen-101-things-you-need-know-169758.0.html
vVv Gouken718 vVv SabreTooth718 vVv