Hi, there was problem in Sander 71113's Terry Bogard in Mugen 1.0 and 1.1 which he can't do his Hard Kick version of Buster Wolf, SDM version of Buster Wolf and SDM version of High Angle Geyser. I semicolon this line of code in their CMD file: triggerall = ((var(47)&((2**32)-1)-(255)) = 0) triggerall = ((var(47)&((2**32)-1)-(255)) = 0) and triggerall = ((var(47)&((2**32)-1)-(255)) = 0) and it works. I looked at the Var(47) from the terrya.cns and check it out:
;____________________________
;[E] reading a button
;____________________________
;notes
;the buttons count up to 15 ticks, when they are being pressed,
;if released they get set to 0
;there are 7 buttons so that makes it 7 - 4 bits groups
;
;
;this is the base code
;
;increase the counter
;[State -2, read a button]
;type = VarSet
;trigger1 = ((var(47)&(((2**(N))*15)/2**(N))) < 15); && command = "holda"
;var(47) = (var(47)&(var(47)& ((2**32)-1)-(((2**(N))*15))))+( (var(47)&(((2**(N))*15))) + (1*(2**(N)))
)
;ignorehitpause = 0
; reset the counter
;[State -2, not read a button]
;type = VarSet
;trigger1 = command != "holda" && command != "a"
;var(47) = (var(47)&(var(47)& ((2**32)-1)-(((2**(N))*15))))
;ignorehitpause = 0
;
;
;
;
;increase the counter
[State -2, read a button]
type = VarSet
trigger1 = (var(47)&15) < 15
var(47) = (var(47)&(var(47)& ((2**32)-1)-15))+((var(47)&15)+1)
ignorehitpause = 0
; reset the counter
[State -2, not read a button]
type = VarSet
trigger1 = command != "holda" && command != "a"
var(47) = (var(47)&(var(47)& ((2**32)-1)-(15)))
ignorehitpause = 0
;increase the counter
[State -2, read a button]
type = VarSet
trigger1 = (Var(47)&240) < 240
var(47) = (var(47)&(var(47)& ((2**32)-1)-240))+((var(47)&240)+16)
ignorehitpause = 0
; reset the counter
[State -2, not read a button]
type = VarSet
trigger1 = command != "holdb" && command != "b"
var(47) = (var(47)&(var(47)& ((2**32)-1)-240))
ignorehitpause = 0
;increase the counter
[State -2, read a button]
type = VarSet
trigger1 = (Var(47)&3840) < 3840
var(47) = (var(47)&(var(47)& ((2**32)-1)-3840))+((var(47)&3840)+256)
ignorehitpause = 0
; reset the counter
[State -2, not read a button]
type = VarSet
trigger1 = command != "holdc" && command != "c"
var(47) = (var(47)&(var(47)& ((2**32)-1)-3840))
ignorehitpause = 0
;increase the counter
[State -2, read a button]
type = VarSet
trigger1 = (Var(47)&61440) < 61440
var(47) = (var(47)&(var(47)& ((2**32)-1)-61440))+((var(47)&61440)+4096)
ignorehitpause = 0
; reset the counter
[State -2, not read a button]
type = VarSet
trigger1 = command != "holdx" && command != "x"
var(47) = (var(47)&(var(47)& ((2**32)-1)-61440))
ignorehitpause = 0
;increase the counter
[State -2, read a button]
type = VarSet
trigger1 = (Var(47)&983040) < 983040
var(47) = (var(47)&(var(47)& ((2**32)-1)-983040))+((var(47)&983040)+65536)
ignorehitpause = 0
; reset the counter
[State -2, not read a button]
type = VarSet
trigger1 = command != "holdy" && command != "y"
var(47) = (var(47)&(var(47)& ((2**32)-1)-983040))
ignorehitpause = 0
;increase the counter
[State -2, read a button]
type = VarSet
trigger1 = (Var(47)&15728640) < 15728640
var(47) = (var(47)&(var(47)& ((2**32)-1)-15728640))+((var(47)&15728640)+1048576)
ignorehitpause = 0
; reset the counter
[State -2, not read a button]
type = VarSet
trigger1 = command != "holdz" && command != "z"
var(47) = (var(47)&(var(47)& ((2**32)-1)-15728640))
ignorehitpause = 0
;increase the counter
[State -2, read a button]
type = VarSet
trigger1 = (Var(47)&251658240) < 251658240
var(47) = (var(47)&(var(47)& ((2**32)-1)-251658240))+((var(47)&251658240)+16777216)
ignorehitpause = 0
; reset the counter
[State -2, not read a button]
type = VarSet
trigger1 = command != "holds" && command != "s"
var(47) = (var(47)&(var(47)& ((2**32)-1)-251658240))
ignorehitpause = 0
The code was written mostly in the cmd file like so:
[State -1, BWSDM]
type = ChangeState
value = 6030
triggerall = var(9) != 1 ;&& var(41) = 3
triggerall = command = "2QCFab"
triggerall = ((var(47)&((2**32)-1)-(255)) = 0)
;triggerall = command != "fwd"
triggerall = power >= 1000 && var(10) > 0
trigger1 = statetype != A && (ctrl || (stateno = [100,101]))
trigger2 = var(39) = 1
trigger3 = var(42) = 1 && power >= 2000
Can anyone explain what does this code do? Here is this Terry Bogard's download file: http://network.mugenguild.com/jango/MGBR/Sander71113/e-terryx.rar