> I'm trying to produce a weak spot on my Creamy Goodness character, where he will take triple damage if hit during certain frames. I set aside Variable 3 in order determine when the weak spot is activated; 1 meaning Creamy takes normal damage, 2 meaning he takes double damage, and 3 meaning he takes triple damage. During the intro, Variable 3 is set to 1 in order to ensure Creamy takes normal damage at the start of the round...
[State 190, Variable Set]
type = VarSet
trigger1 = Time = 0 ;kicks in immediately
v = 3 ;Variable 3 - Extra damage taken (for weak spots)
value = 1 ;Sets Extra damage taken variable to 1 (Normal damage taken)
----------
> During the attack that bears the weak spot, I set Variable 3 to 3 in order to activate the triple damage on the desired frames...
[State 3500, Variable Set]
type = VarSet
trigger1 = AnimElemNo(0) = [5, 7]
;^Animation must be between its fifth and seventh frames^
v = 3 ;Variable 3 - Extra damage taken (for weak spots)
value = 3 ;Sets Extra damage taken variable to 3 (Triple damage taken)
----------
> In State -2, I tried to use a LifeAdd state controller to get Creamy to take the multiplied damage. However, after several attempts, I just couldn't the syntax of the coding right. Here's what my LifeAdd currently looks like...
[State -2, Triple Damage]
type = LifeAdd
trigger1 = var(3) = 3 ;Result of Variable 3 getting set to 3
;trigger1 = MoveType = H ;Must be in Get Hit move type
value = gethitvar(damage) * 3
;^Creamy takes triple damage when hit.^
----------
> In order to determine that Variable 3 is triggering correctly, I added a bit of temporary code that turns Creamy grey so I can know when the weak spot is active...
[State -2, PalFX] ;temporary
type = PalFX
trigger1 = Var(3) = 3
Time = 1
color = 0
----------
> I've already been through a thorough Google search that included MFG threads on this very topic, and official Elecbyte documentation, but it wasn't enough to provide me with a sufficient answer. Any help would be appreciated.
Question
Creamy_Goodness
> I'm trying to produce a weak spot on my Creamy Goodness character, where he will take triple damage if hit during certain frames. I set aside Variable 3 in order determine when the weak spot is activated; 1 meaning Creamy takes normal damage, 2 meaning he takes double damage, and 3 meaning he takes triple damage. During the intro, Variable 3 is set to 1 in order to ensure Creamy takes normal damage at the start of the round...
[State 190, Variable Set]
type = VarSet
trigger1 = Time = 0 ;kicks in immediately
v = 3 ;Variable 3 - Extra damage taken (for weak spots)
value = 1 ;Sets Extra damage taken variable to 1 (Normal damage taken)
----------
> During the attack that bears the weak spot, I set Variable 3 to 3 in order to activate the triple damage on the desired frames...
[State 3500, Variable Set]
type = VarSet
trigger1 = AnimElemNo(0) = [5, 7]
;^Animation must be between its fifth and seventh frames^
v = 3 ;Variable 3 - Extra damage taken (for weak spots)
value = 3 ;Sets Extra damage taken variable to 3 (Triple damage taken)
----------
> In State -2, I tried to use a LifeAdd state controller to get Creamy to take the multiplied damage. However, after several attempts, I just couldn't the syntax of the coding right. Here's what my LifeAdd currently looks like...
[State -2, Triple Damage]
type = LifeAdd
trigger1 = var(3) = 3 ;Result of Variable 3 getting set to 3
;trigger1 = MoveType = H ;Must be in Get Hit move type
value = gethitvar(damage) * 3
;^Creamy takes triple damage when hit.^
----------
> In order to determine that Variable 3 is triggering correctly, I added a bit of temporary code that turns Creamy grey so I can know when the weak spot is active...
[State -2, PalFX] ;temporary
type = PalFX
trigger1 = Var(3) = 3
Time = 1
color = 0
----------
> I've already been through a thorough Google search that included MFG threads on this very topic, and official Elecbyte documentation, but it wasn't enough to provide me with a sufficient answer. Any help would be appreciated.
Jason "Creamy Goodness" Tenn
http://creamyg.jdluke.com/
6 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now