Help with "Gold Mode" coding

Started by Lord Mike, December 26, 2010, 11:09:59 AM

Previous topic - Next topic

Lord Mike

Hello. I am trying to make a "gold mode" (all char's attributes at maxium when the round starts, boost, power) for a few chars based on what i've seen on others, but i have a question to ask. How do you increase movement speed? When palno=12 i want my chars to move twice as fast as they normally do. I've tried to track down the changes the other authors did for their chars, but i haven't found anything about speed.
Can anyone please help me?
何故諦める必要がある? 何を迷うことがある奪い取れ。今は悪魔が微笑む時代なんだ。

leandro1412

#1
to increase the walk speed you could override the statedef 20 with this codes

;---------------------------------------------------------------------------
; Walk
[Statedef 20]
type    = S
physics = S
sprpriority = 0

[State 20, 1]
type = VelSet
trigger1 = command = "holdfwd"
x = const(velocity.walk.fwd.x)+(Palno = 12)*2

[State 20, 2]
type = VelSet
trigger1 = command = "holdback"
x = const(velocity.walk.back.x)-(Palno = 12)*2

[State 20, 3]
type = ChangeAnim
triggerall = vel x > 0
trigger1 = Anim != 20 && Anim != 5
trigger2 = Anim = 5 && AnimTime = 0
value = 20

[State 20, 4]
type = ChangeAnim
triggerall = vel x < 0
trigger1 = Anim != 21 && Anim != 5
trigger2 = Anim = 5 && AnimTime = 0
value = 21




logic:
(Palno = 12)*2
if the character are using pal 12 the that had the value:1
1 * 2  = 2

so the velocity is increased by 2 you can set "how much" velocity you need after the "*" operator.

comment if works.
[

Nice userbars no? :P Make click & Download something nice for your Mugen!!!
________________________________