[State 190, 4] ; AI in demo mode
type = VarSet
trigger1 = Power > 2990 ; This number has to be close to char's power max value
trigger1 = Time = 0
value = 1 ; <- The var value is set to 1
v = 0 ; <- This is var(0)
trigger1 = Power = 3000This would work but as I don't know how the engine fill the power bar at this time... I prefered to put the version above.
; ONLY if desired:or some same stuffs...
[State -2, Start Full]
...
trigger1 = Power > 2990... > const.powermax-10 or something that would more or less look like that (rarely touch anything about those consts - and don't even tell me about the new trigger shortcuts in WinMugen)
that will activate the a.i. if your simul mode partner starts the round already with power
and pre-intro state is 5900 :tongue2:
;---------------------------------------------------------------------------
; PREINTRO
[Statedef 190]
type = S
ctrl = 0
velset = 0,0
[State 190, 1]
type = ChangeAnim
trigger1 = SelfAnimExist(190)
value = 190
[State 190, 2] ;Go straight to intro.
type = ChangeState
trigger1 = Time = 0
value = 191
;---------------------------------------------------------------------------
; Initialize (at the start of the round)
[Statedef 5900]
type = S
[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 5900, 3] ;Intro for round 1
type = ChangeState
trigger1 = roundno = 1
value = 190
------------------------------------------------------------There...
PowerMax
------------------------------------------------------------
Returns the maximum amount of power the player can have. This is normally 3000 (level 3).
Format:
PowerMax
Arguments:
none
Return type:
int
Error conditions:
none
Example:
trigger1 = power < powermax / 2
True if player has less than half his maximum power.
Can you give more details ?simul mode (with partner), any round
In which mode ? with how many players ? CPUs ? in which round state/number ?
5900 (which is not "pre-intro" but "initialize") appears only at round 2 and 3 not at the first one AFAIK.all the same
Anyway, I add the feature to Pocket_Chun-li so you'll be able to test it on your own and if bug there is, please kick me violently ! ;D:smash:
I think I get what Phantom is pointing out...try putting Chun-Li in training mode, and tap F4: Demo Mode will kick on.
simul mode (with partner), any round:o Right ? ??? I'll have a look.
there are chars that start with a full power bar (especially sfa3 and dbz chars), so trigger1 = Power > 2990 will activate the a.i.
tested it already
add this to any char other than chun-li:
[State -2, power]
type=poweradd
trigger1=1
value=9999
then play in simul mode, choosing chun-li and that other char as your team
bam, a.i. activated >:)
EDIT: or add that piece of code in chun-li and play in any mode :PMwahahaha :D this is a new mission for captain obvious ! :P Of course this works ONLY if your char doesn't start fighting with fullfilled power gauge... The thing I was ignoring was :
there are chars that start with a full power bar (especially sfa3 and dbz chars)That. :-\
all the sameYeah you're right I was wrong, sorry. :)
5900 occurs every round, usually to reset the variables
Short :Yeah, i need to be lashed on public place for that crappy attempt ! :yes:
this thread has no useful purpose.
BDI, owned by the Guild. :laugh: ;)
Not quite. The code is flawed, but not worthless :P Just needs to be adjusted.Damn KFM, you're too kind, kick me too ! ;D
Is F4 reinitialise gametime too ?yep
may be that should be a keypoint to prevent this bug.