YesNoOk
avatar

DIO's transformation problem  (Read 996 times)

Started by Jotaro_Joestar, November 03, 2021, 01:33:40 am
Share this topic:
DIO's transformation problem
New #1  November 03, 2021, 01:33:40 am
  • **
    • USA
Hello. I'm having some trouble on fixing the transformation bug. The bug is when DIO transforms into his final or high mode and defeats his opponent, he goes back to his normal form in round 2. So is there a mistake I did from the codes? Here's the video example and codes.


Code:

Quote
;============================================================================
; Initialize (at the start of the round)
[Statedef 5900]
type = S

[State 0, 1]
type = ChangeAnim
triggerall = !fvar(32)
triggerall = var(0) != -1
triggerall = var(0) != 2
trigger1 = Anim != 0+var(49) && Anim != 5+var(49)
trigger2 = Anim = 5+var(49) && AnimTime = 0 ;Turn anim over
value = 0+var(49)

[State 5900, 3] ;Change palette
type = RemapPal
trigger1 = 1
source = 1,1  ;; <--- Change this to the palette that the sprites are using.  It might be 0,0?
dest = 1,palno

[State 0, 1]
type = ChangeAnim
triggerall = fvar(32)
triggerall = var(0) != -1
triggerall = var(0) != 2
trigger1 = Anim != 20000-var(49) && Anim != 20005-var(49)
trigger2 = Anim = 20005-var(49) && AnimTime = 0 ;Turn anim over
value = 20000-var(49)

[State 5900, 1] ;Clear all int variables
type = VarRangeSet
trigger1 = roundsexisted = 0
value = 0

[State 5900, 2] ;Clear all float variables
type = VarRangeSet
trigger1 = roundsexisted = 0
fvalue = 0

[State 10820, 1]     
type = varset   
triggerall = roundstate = 0   
trigger1 = winko && fvar(32)
fvar(32) = 20000


Quote
[Statedef -3]

;製作用関数表示
;[State -2, DEBUG]
;trigger1 = 1
;type = DisplayToClipboard
;ignorehitpause = 1
;text = "MAX = %d Hit= %d Counter =%d Hit1 = %d Bit2 = %d \n "
;params = var(15), var(14), var(0), var(2), prevstateno
;ignorehitpause = 1

[State -2, DEBUG]
trigger1 = 1
type = DisplayToClipboard
ignorehitpause = 1
text = "Fvar(32) = %d | Var(49) = %d |roundstate = %d |  fvar(35) = %d "
params = fvar(32), var(49), roundstate, fvar(35)
ignorehitpause = 1

[State 10820, 1]     
type = varset   
triggerall = roundstate = 0   
trigger1 = winko && fvar(32)
fvar(32) = 20000
Last Edit: January 01, 2022, 05:54:41 am by Kishibe Light
Re: DIO's transformation problem
#2  November 05, 2021, 11:02:29 am
  • **
    • Ukraine
Look, I am not an expert, but I think you can try putting these two values to zero.
 You probably do have them in the main .cns file. It should keep you transformed in the next round. As I understand, you use a variable to keep yourself in transformation, so in every round mugen resets your vars. If u put these to zero it will not reset them, therefore you will remain in your transformation.
[Data]
life = 1000
power = 3000
attack = 100
defence = 100
fall.defence_up = 70
liedown.time = 60
airjuggle = 15
sparkno = -1
guard.sparkno = -1
KO.echo = 0
volume = 0
IntPersistIndex = 0  --- this one
FloatPersistIndex = 0 --- and this one
Re: DIO's transformation problem
#3  November 06, 2021, 12:02:10 am
  • **
    • USA
Look, I am not an expert, but I think you can try putting these two values to zero.
 You probably do have them in the main .cns file. It should keep you transformed in the next round. As I understand, you use a variable to keep yourself in transformation, so in every round mugen resets your vars. If u put these to zero it will not reset them, therefore you will remain in your transformation.
[Data]
life = 1000
power = 3000
attack = 100
defence = 100
fall.defence_up = 70
liedown.time = 60
airjuggle = 15
sparkno = -1
guard.sparkno = -1
KO.echo = 0
volume = 0
IntPersistIndex = 0  --- this one
FloatPersistIndex = 0 --- and this one

It still doesn't work when "IntPersistIndex" and "FloatPersistIndex" are set to 0, and he reverts back to his normal form in the second round. But, thanks for the help.
Re: DIO's transformation problem
#4  November 06, 2021, 01:44:50 am
  • ******
  • Hedgehog Whisperer
  • Red Bull addict
    • Spain
    • xgargoyle.mgbr.net
You are using roundstate=0 and winko together. These 2 are not happening at the same time, so they will never trigger.
XGargoyle: Battle posing since 1979
http://xgargoyle.mgbr.net
http://www.pandorabots.com/pandora/talk?botid=e71c0d43fe35093a  <-- Please click that link
http://paypal.me/XGargoyle  <-- Donations welcome!