Code Help

Started by Shion, April 26, 2008, 01:41:30 PM

Previous topic - Next topic

Shion

I think this is probably the right section for this as it has to do with modifying code.

I'm trying to get H's Brian Battler to stay in the 2k2 mode.  H has included the config.txt file which controls that.  I've got him to start in 2k2 mode, but at round 2 he will always revert to no system.  I'm not familiar enough with this type of code to figure out what needs to be changed to correct this problem.

here's the relevant code.


;===========================================================================
; config State
[Statedef 5910]
type = S

;===========================================================================
; ↑変更不可
;===========================================================================

;---------------------------------------------------------------------
; システム設定
[State 5910, 1]
type = VarSet
triggerall = !NumPartner
trigger1 = var(46) != 10 || MatchNo = 1 && RoundNo = 1 && var(44) = 2
var(46) = 1
;-1:セレクト有り
;0~2:システムセレクト固定(0:No System 1:KOF2002 2:SVC)
;数値部分を変更することでシステムの設定をすることが出来ます。

;---------------------------------------------------------------------
; 特殊ゲージ位置設定
;------------------------ X軸
[State 5910, 2]
type = VarSet
trigger1 = MatchNo = 1
var(42) = 93 ;125
;------------------------ Y軸
[State 5910, 3]
type = VarSet
trigger1 = MatchNo = 1
var(43)= 247 ;224
;Varの数値を弄ることによりゲージ位置の軸設定することが出来ます。

;===========================================================================
; ↓変更不可
;===========================================================================
[State 5910, 100]
type = VarSet
triggerall = !NumPartner
trigger1 = Time = 0 && var(46)!=10
var(30) = var(46)

[State 5910, 101]
type = VarRandom
trigger1 = roundsexisted <= 0
persistent = 0
v = 45
range = 0,2

[State 5910, 102]
type = helper
trigger1 = Time = 0 && var(30) = -1
ID = 8000
stateno = 8000+Var(45)
postype = Left
pos = 0,0
name = "groove"
ontop = 1
bindtime = -1
keyctrl = 1

[State 5910, 103]  ;Intro
type = ChangeState
trigger1 = roundno = 1
value = 190

;===========================================================================


Any help would be appreciated.

Fallen_angel

I think that you need to modify these

[State 5910, 1]
type = VarSet
triggerall = !NumPartner
trigger1 = var(46) != 10 || MatchNo = 1 && RoundNo = 1 && var(44) = 2
var(46) = 1


I think that changing that to these could work

[State 5910, 1]
type = VarSet
triggerall = !NumPartner
trigger1 = var(46) != 10 ||  RoundNo >= 1 && var(44) = 2
var(46) = 1


Shion

Tried that and it unfortunately didn't work.  Tinkered around with it some more but no luck.  Thanks for the help anyway, I appreciate it.