State controllers
Chaque state controller de M.U.G.E.N 1.1 avec ses paramètres, un court exemple et son état dans rugen, généré à partir du code source du moteur.
Les state controllers sont les verbes d’un perso : chaque bloc [State] dans un
state en nomme un avec type = et lui donne des paramètres. Cette page liste chaque
controller de M.U.G.E.N 1.1, regroupé par fonction. Pour le fonctionnement général des controllers,
des triggers et de persistent, voir
CNS : constantes, states, expressions.
Les badges d’état proviennent du code source du moteur :
- Supported : rugen l’exécute et lit chaque paramètre documenté.
- Partial : il s’exécute, mais quelque chose manque ; la note dit quoi.
- Not yet : rugen l’ignore.
rugen checkliste chaque controller de ce genre utilisé par votre perso, etrugen verifydonne un verdictwarn.
89 controllers:Supported 67Partial 12Not yet 10
- AfterImage
- AfterImageTime
- AllPalFX
- AngleAdd
- AngleDraw
- AngleMul
- AngleSet
- AppendToClipboard
- AssertSpecial
- AttackDist
- AttackMulSet
- BGPalFX
- BindToParent
- BindToRoot
- BindToTarget
- ChangeAnim
- ChangeAnim2
- ChangeState
- ClearClipboard
- CtrlSet
- DefenceMulSet
- DestroySelf
- DisplayToClipboard
- EnvColor
- EnvShake
- Explod
- ExplodBindTime
- FallEnvShake
- ForceFeedback
- GameMakeAnim
- Gravity
- Helper
- HitAdd
- HitBy
- HitDef
- HitFallDamage
- HitFallSet
- HitFallVel
- HitOverride
- HitVelSet
- LifeAdd
- LifeSet
- MakeDust
- ModifyExplod
- MoveHitReset
- NotHitBy
- Null
- Offset
- PalFX
- ParentVarAdd
- ParentVarSet
- Pause
- PlayerPush
- PlaySnd
- PosAdd
- PosFreeze
- PosSet
- PowerAdd
- PowerSet
- Projectile
- RemapPal
- RemoveExplod
- ReversalDef
- ScreenBound
- SelfState
- SndPan
- SprPriority
- StateTypeSet
- StopSnd
- SuperPause
- TargetBind
- TargetDrop
- TargetFacing
- TargetLifeAdd
- TargetPowerAdd
- TargetState
- TargetVelAdd
- TargetVelSet
- Trans
- Turn
- VarAdd
- VarRandom
- VarRangeSet
- VarSet
- VelAdd
- VelMul
- VelSet
- VictoryQuote
- Width
État et contrôle
Null Supported
Does nothing. Handy to switch a controller off without deleting it, or as a placeholder while you build a state.
No parameters.
[State 200, disabled for now]
type = Null
trigger1 = 1ChangeState Supported
Leaves the current state and enters another one, running the new state from tick 0 in the same frame.
| Parameter | Type | Default | Meaning |
|---|---|---|---|
value | int | required | State number to enter. |
ctrl | bool | unchanged | Give or take control on entry. |
anim | int | from the new [Statedef] | Animation to switch to. |
[State 210, recover]
type = ChangeState
trigger1 = AnimTime = 0
value = 0
ctrl = 1SelfState Supported
Like ChangeState, but always uses the player's own state files. Used to return from a custom state that an opponent put you in.
| Parameter | Type | Default | Meaning |
|---|---|---|---|
value | int | required | State number to enter (from your own files). |
ctrl | bool | unchanged | Give or take control. |
anim | int | from the new [Statedef] | Animation to switch to. |
[State 8100, let go of the throw]
type = SelfState
trigger1 = Time >= 40
value = 5050ChangeAnim Partial
Switches to another action from your own .air file.
- Some value forms are reported as unsupported.
| Parameter | Type | Default | Meaning |
|---|---|---|---|
value | int | required | Action number. |
elem | int | 1 | Element to start on. |
An F prefix on value (fightfx animations) is reported by rugen check.
[State 200, swing]
type = ChangeAnim
trigger1 = Time = 0
value = 205
elem = 2ChangeAnim2 Partial
Switches to an action from the .air file of the player whose state you are in. Use it in custom states you put an opponent into, so they play your throw animations with their sprites.
- Some value forms are reported as unsupported.
| Parameter | Type | Default | Meaning |
|---|---|---|---|
value | int | required | Action number, looked up in the state owner's .air. |
elem | int | 1 | Element to start on. |
[State 810, thrown]
type = ChangeAnim2
trigger1 = Time = 0
value = 810CtrlSet Supported
Gives or removes control. With control, the player can start moves from the command file.
| Parameter | Type | Default | Meaning |
|---|---|---|---|
value | bool | required | 1 gives control, 0 removes it. |
[State 52, landed]
type = CtrlSet
trigger1 = Time = 3
value = 1StateTypeSet Supported
Changes state type, move type or physics in the middle of a state, without changing state.
| Parameter | Type | Default | Meaning |
|---|---|---|---|
statetype | S / C / A / L | unchanged | Standing, crouching, aerial or lying down. |
movetype | I / A / H | unchanged | Idle, attacking or being hit. |
physics | S / C / A / N | unchanged | Physics model: stand friction, crouch friction, air gravity, or none. |
[State 620, jump part]
type = StateTypeSet
trigger1 = AnimElem = 3
statetype = A
physics = ATurn Supported
Flips the player to face the other way.
No parameters.
[State 300, cross-up turn]
type = Turn
trigger1 = Time = 0
trigger1 = P2Dist X < 0AssertSpecial Supported
Sets special engine flags for one tick. Call it every tick (no trigger limit) to keep a flag on.
| Parameter | Type | Default | Meaning |
|---|---|---|---|
flag | flag name | required | First flag to set. |
flag2 | flag name | none | Second flag. |
flag3 | flag name | none | Third flag. |
rugen knows every flag: Intro, Invisible, RoundNotOver, NoBarDisplay, NoBG, NoFG, NoStandGuard, NoCrouchGuard, NoAirGuard, NoAutoTurn, NoJuggleCheck, NoKOSnd, NoKOSlow, NoShadow, GlobalNoShadow, NoMusic, NoWalk, TimerFreeze, Unguardable and NoKO.
[State 190, intro]
type = AssertSpecial
trigger1 = 1
flag = Intro
flag2 = NoBarDisplayPause Partial
Freezes the game for a while. The caller can keep moving for movetime ticks.
- Ignored parameters:
pausebg,endcmdbuftime.
| Parameter | Type | Default | Meaning |
|---|---|---|---|
time | int | required | Ticks to freeze. |
movetime | int | 0 | Ticks the caller keeps moving during the pause. |
pausebgnot yet | bool | 1 | Also freeze the stage background. |
endcmdbuftimenot yet | int | 0 | Ticks before the end in which command input is buffered. |
[State 1000, flash]
type = Pause
trigger1 = Time = 0
time = 20
movetime = 20SuperPause Supported
The super-move freeze: darkens the screen, can show an effect and play a sound, and optionally adds power.
| Parameter | Type | Default | Meaning |
|---|---|---|---|
time | int | 30 | Ticks to freeze. |
movetime | int | 0 | Ticks the caller keeps moving. |
anim | int | 30 (fightfx) | Effect animation. Prefix S to use your own .air; -1 for none. |
pos | float, float | 0, 0 | Effect position relative to the caller. |
sound | group, number | none | Sound to play. Prefix S for your own .snd. |
darken | bool | 1 | Darken the screen. |
p2defmul | float | from mugen.cfg (1.5) | Temporary defence multiplier for the opponents. |
poweradd | int | 0 | Power given to the caller. |
unhittable | bool | 1 | Caller cannot be hit during the pause. |
[State 3000, super flash]
type = SuperPause
trigger1 = Time = 0
time = 40
anim = 100
sound = S20, 0
poweradd = -1000Width Supported
Overrides the player's width boxes for one tick: the edge width (against the screen edges) and the player width (push against other players).
| Parameter | Type | Default | Meaning |
|---|---|---|---|
edge | float, float | size constants | Front and back width used against the screen edges. |
player | float, float | size constants | Front and back width used for player push. |
value | float, float | none | Sets both at once. |
[State 1200, wide stance]
type = Width
trigger1 = 1
player = 30, 20ScreenBound Supported
Decides for one tick whether the player is kept on screen and whether the camera follows them.
| Parameter | Type | Default | Meaning |
|---|---|---|---|
value | bool | 0 | 1 keeps the player inside the screen. |
movecamera | bool, bool | 0, 0 | Camera follows on x / on y. |
[State 1500, off-screen dive]
type = ScreenBound
trigger1 = 1
value = 0
movecamera = 0, 0PlayerPush Supported
Turns player-to-player pushing on or off for one tick.
| Parameter | Type | Default | Meaning |
|---|---|---|---|
value | bool | 1 | 0 lets the player overlap others. |
[State 1100, pass through]
type = PlayerPush
trigger1 = 1
value = 0SprPriority Supported
Changes the drawing layer of the player. Higher values draw in front.
| Parameter | Type | Default | Meaning |
|---|---|---|---|
value | int | required | Layer, usually -5 to 5. |
[State 800, throw in front]
type = SprPriority
trigger1 = Time = 0
value = 2Mouvement et position
VelSet Supported
Sets the velocity. x is relative to facing (positive is forward), y positive is down.
| Parameter | Type | Default | Meaning |
|---|---|---|---|
x | float | unchanged | New velocity on the x axis. |
y | float | unchanged | New velocity on the y axis. |
[State 40, jump]
type = VelSet
trigger1 = Time = 0
x = 2.5
y = -8VelAdd Supported
Adds to the current velocity.
| Parameter | Type | Default | Meaning |
|---|---|---|---|
x | float | 0 | Added to x velocity. |
y | float | 0 | Added to y velocity. |
[State 1050, float]
type = VelAdd
trigger1 = 1
y = 0.2VelMul Supported
Multiplies the current velocity.
| Parameter | Type | Default | Meaning |
|---|---|---|---|
x | float | 1 | x velocity multiplier. |
y | float | 1 | y velocity multiplier. |
[State 100, slow down]
type = VelMul
trigger1 = 1
x = 0.85PosSet Supported
Moves the player to an absolute position: x from the screen centre, y from the floor.
| Parameter | Type | Default | Meaning |
|---|---|---|---|
x | float | unchanged | New position on the x axis. |
y | float | unchanged | New position on the y axis. |
[State 5900, land on the floor]
type = PosSet
trigger1 = Time = 0
y = 0PosAdd Supported
Moves the player by an offset (x relative to facing).
| Parameter | Type | Default | Meaning |
|---|---|---|---|
x | float | 0 | Forward offset. |
y | float | 0 | Downward offset. |
[State 1100, teleport]
type = PosAdd
trigger1 = AnimElem = 4
x = 120PosFreeze Supported
Keeps the player from moving this tick (velocity is not applied).
| Parameter | Type | Default | Meaning |
|---|---|---|---|
value | bool | 1 | 0 cancels the freeze. |
[State 1300, hold still]
type = PosFreeze
trigger1 = AnimElem = 2, >= 0Gravity Supported
Adds Const(movement.yaccel) to the y velocity. Use in states with physics = N that still need to fall.
No parameters.
[State 1400, custom fall]
type = Gravity
trigger1 = 1Offset Not yet
Draws the player shifted by an offset without moving the actual position.
- Not implemented yet: the controller is skipped and
rugen checklists it.
| Parameter | Type | Default | Meaning |
|---|---|---|---|
x | float | 0 | Horizontal draw offset. |
y | float | 0 | Vertical draw offset. |
[State 1600, shake]
type = Offset
trigger1 = 1
x = ifelse(Time % 2, 2, -2)BindToParent Supported
Helper only: pins the helper to its parent's position for a time.
| Parameter | Type | Default | Meaning |
|---|---|---|---|
time | int | 1 | Ticks to stay bound (0 releases). |
facing | int | 0 | 1 face the same way as the parent, -1 the opposite way, 0 keep own facing. |
pos | float, float | 0, 0 | Offset from the parent. |
[State 9000, shield follows]
type = BindToParent
trigger1 = 1
pos = 20, -40
facing = 1BindToRoot Supported
Same as BindToParent, but binds to the root (the main player), however deep the helper chain.
| Parameter | Type | Default | Meaning |
|---|---|---|---|
time | int | 1 | Ticks to stay bound. |
facing | int | 0 | Facing rule, as in BindToParent. |
pos | float, float | 0, 0 | Offset from the root. |
[State 9100, aura]
type = BindToRoot
trigger1 = 1
time = -1BindToTarget Not yet
Pins the player to one of their targets (someone they have hit).
- Not implemented yet: the controller is skipped and
rugen checklists it.
| Parameter | Type | Default | Meaning |
|---|---|---|---|
time | int | 1 | Ticks to stay bound. |
id | int | -1 (all) | Only targets hit by a HitDef with this id. |
pos | float, float[, postype] | 0, 0 | Offset from the target; the optional third part picks Foot, Mid or Head. |
[State 1700, ride the opponent]
type = BindToTarget
trigger1 = MoveHit
pos = 0, -60, HeadVariables
VarSet Supported
Sets an int or float variable. Either v / fv plus value, or the short form var(n) = value.
| Parameter | Type | Default | Meaning |
|---|---|---|---|
v | int | none | Int variable index (0 to 59). |
fv | int | none | Float variable index (0 to 39). |
value | int / float | required | Value to store. |
[State 0, reset combo counter]
type = VarSet
trigger1 = Time = 0
var(10) = 0VarAdd Supported
Adds to a variable. Same forms as VarSet.
| Parameter | Type | Default | Meaning |
|---|---|---|---|
v | int | none | Int variable index. |
fv | int | none | Float variable index. |
value | int / float | required | Amount to add. |
[State -2, meter tick]
type = VarAdd
trigger1 = RoundState = 2
fvar(3) = 0.25VarRandom Supported
Stores a random int in an int variable.
| Parameter | Type | Default | Meaning |
|---|---|---|---|
v | int | required | Int variable index. |
range | int[, int] | 0, 1000 | One value N means 0 to N; two values mean min to max (inclusive). |
[State 195, pick a taunt]
type = VarRandom
trigger1 = Time = 0
v = 5
range = 1, 3VarRangeSet Supported
Sets a whole range of variables to one value. Use value for ints or fvalue for floats.
| Parameter | Type | Default | Meaning |
|---|---|---|---|
value | int | one of value / fvalue | Value for the int variables. |
fvalue | float | one of value / fvalue | Value for the float variables. |
first | int | 0 | First index. |
last | int | last slot | Last index (inclusive). |
[State 5900, round start]
type = VarRangeSet
trigger1 = RoundNo = 1
value = 0
first = 0
last = 29ParentVarSet Supported
Helper only: sets a variable of the parent.
| Parameter | Type | Default | Meaning |
|---|---|---|---|
v | int | none | Parent int variable index. |
fv | int | none | Parent float variable index. |
value | int / float | required | Value to store. |
[State 9200, tell parent I hit]
type = ParentVarSet
trigger1 = MoveHit = 1
v = 20
value = 1ParentVarAdd Supported
Helper only: adds to a variable of the parent.
| Parameter | Type | Default | Meaning |
|---|---|---|---|
v | int | none | Parent int variable index. |
fv | int | none | Parent float variable index. |
value | int / float | required | Amount to add. |
[State 9200, count hits]
type = ParentVarAdd
trigger1 = MoveHit = 1
v = 21
value = 1Vie, puissance et mise à l’échelle des dégâts
LifeAdd Partial
Adds to (or, with a negative value, removes from) the player's own life.
- Ignored parameters:
absolute. - The defence multiplier is not applied, so
absolutemakes no difference.
| Parameter | Type | Default | Meaning |
|---|---|---|---|
value | int | required | Amount to add. |
kill | bool | 1 | 0 keeps at least 1 life. |
absolutenot yet | bool | 0 | 1 ignores attack and defence multipliers. |
[State 3500, blood price]
type = LifeAdd
trigger1 = Time = 0
value = -50
kill = 0LifeSet Supported
Sets life to an exact value (clamped to 0 .. LifeMax).
| Parameter | Type | Default | Meaning |
|---|---|---|---|
value | int | required | New life. |
A LifeSet in state -2 / -3 is a fairness cheat flag online; see Online-fair characters.
[State 9999, training refill]
type = LifeSet
trigger1 = Life < 100
value = LifeMaxPowerAdd Supported
Adds to the power bar.
| Parameter | Type | Default | Meaning |
|---|---|---|---|
value | int | required | Amount to add (negative to spend). |
[State 3000, spend a bar]
type = PowerAdd
trigger1 = Time = 0
value = -1000PowerSet Supported
Sets the power bar (clamped to 0 .. PowerMax).
| Parameter | Type | Default | Meaning |
|---|---|---|---|
value | int | required | New power. |
[State 5900, empty meter]
type = PowerSet
trigger1 = RoundNo = 1
value = 0AttackMulSet Supported
Scales the damage of the player's attacks.
| Parameter | Type | Default | Meaning |
|---|---|---|---|
value | float | required | Multiplier (1 is normal). |
[State 3200, power up]
type = AttackMulSet
trigger1 = Time = 0
value = 1.2DefenceMulSet Supported
Scales the damage the player takes. Bigger values mean less damage.
| Parameter | Type | Default | Meaning |
|---|---|---|---|
value | float | required | Defence multiplier (1 is normal). |
[State 3200, armour]
type = DefenceMulSet
trigger1 = Time = 0
value = 1.5Attaque et détection des coups
HitDef Partial
Defines an attack. While it is active, the player's Clsn1 boxes hit the first Clsn2 box they touch, and the HitDef decides damage, hit reaction, guard behaviour, effects and what the opponent does next. One HitDef hits once; re-run it (or use hitonce = 0 for multi-hit) for more hits.
- Ignored parameters:
palfx.time,palfx.mul,palfx.add.
| Parameter | Type | Default | Meaning |
|---|---|---|---|
attr | S/C/A, class | required | State type of the attack and its class, e.g. S, NA (standing normal attack). Classes: N / S / H (normal, special, hyper) followed by A / T / P (attack, throw, projectile). |
hitflag | flags | MAF | What it can hit: H (standing), L (crouching), A (air), M (= H + L), F (falling), D (lying down), plus + (only get-hit states) or - (never get-hit states). |
guardflag | flags | none (unblockable) | How it can be guarded: H high, L low, A air, M mid (= H + L). |
affectteam | E / B / F | E | Hit enemies, both teams, or friends only. |
animtype | string | Light | Reaction size on the ground: Light, Medium, Hard, Back, Up, DiagUp. |
air.animtype | string | = animtype | Reaction animation in the air. |
fall.animtype | string | Back or Up | Reaction animation while falling. |
priority | int[, Hit/Miss/Dodge] | 4, Hit | Trading rule when two attacks connect on the same tick. |
damage | int, int | 0, 0 | Damage on hit, damage on guard. |
pausetime | int, int | 0, 0 | Hit pause for the attacker, hit shake for the defender. |
guard.pausetime | int, int | = pausetime | The same, when guarded. |
sparkno | int | from the [Data] constants | Hit spark action (prefix S for your own .air; -1 for none). |
guard.sparkno | int | from the [Data] constants | Guard spark action. |
sparkxy | float, float | 0, 0 | Spark position, relative to the opponent's front edge (x) and the attacker (y). |
hitsound | group, number | none | Sound on hit (prefix S for your own .snd). |
guardsound | group, number | none | Sound on guard. |
ground.type | High / Low / Trip / None | High | Ground reaction kind. |
air.type | High / Low / Trip / None | = ground.type | Air reaction kind. |
ground.slidetime | int | 0 | Ticks the opponent slides back after a ground hit. |
guard.slidetime | int | = ground.slidetime | Slide time on guard. |
ground.hittime | int | 0 | Ticks the opponent stays in hit stun. |
guard.hittime | int | = ground.hittime | Guard stun. |
air.hittime | int | 20 | Air stun when the hit does not make them fall. |
guard.ctrltime | int | = guard.slidetime | Ticks until the guarding player regains control. |
guard.dist | int | from the [Size] constants | Distance at which the opponent starts guarding when holding back. |
yaccel | float | 0.35 (240p) | Gravity applied to the opponent during the hit. |
ground.velocity | float, float | 0, 0 | Velocity given to a grounded opponent. |
guard.velocity | float | = ground.velocity x | Push-back on guard. |
air.velocity | float, float | 0, 0 | Velocity given to an airborne opponent. |
airguard.velocity | float, float | air.velocity x 1.5, / 2 | Velocity on air guard. |
ground.cornerpush.veloff | float | derived | Push-back on the attacker when the opponent is in the corner. |
air.cornerpush.veloff | float | = ground value | Corner push for air hits. |
down.cornerpush.veloff | float | = ground value | Corner push for down hits. |
guard.cornerpush.veloff | float | = ground value | Corner push on guard. |
airguard.cornerpush.veloff | float | = guard value | Corner push on air guard. |
airguard.ctrltime | int | = guard.ctrltime | Control delay after an air guard. |
air.juggle | int | 0 | Juggle points this hit costs. |
mindist | float, float | none | Minimum distance the opponent is moved to. |
maxdist | float, float | none | Maximum distance the opponent can be from the attacker. |
snap | float, float | none | Snaps the opponent to this offset on hit. |
p1sprpriority | int | 1 | Attacker drawing layer on hit. |
p2sprpriority | int | 0 | Defender drawing layer on hit. |
p1facing | int | 0 | -1 turns the attacker around on hit. |
p1getp2facing | int | 0 | 1 or -1: attacker faces the same way / the opposite way as the defender. |
p2facing | int | 0 | 1 makes the defender face the attacker, -1 face away. |
p1stateno | int | -1 | State the attacker enters on hit. |
p2stateno | int | -1 | State the defender enters on hit (a custom state: throws). |
p2getp1state | bool | 1 | With p2stateno: the defender runs the attacker's state files. |
forcestand | bool | 0 (1 for high hits) | Forces a crouching defender to stand. |
fall | bool | 0 | The hit knocks the defender down. |
fall.xvelocity | float | unchanged | x velocity when the fall starts. |
fall.yvelocity | float | -4.5 | y velocity when the fall starts. |
fall.recover | bool | 1 | The defender may recover in mid-air. |
fall.recovertime | int | 4 | Ticks before a recovery is possible. |
fall.damage | int | 0 | Damage when the defender hits the floor. |
air.fall | bool | = fall | Fall flag for air hits. |
forcenofall | bool | 0 | Cancels the fall of an already falling defender. |
down.velocity | float, float | = air.velocity | Velocity for hitting a lying-down opponent. |
down.hittime | int | 0 | Stun when hitting a lying-down opponent. |
down.bounce | bool | 0 | A down hit bounces the opponent. |
id | int | 0 | Id written to the target list; read with NumTarget(id) and the Target* controllers. |
chainid | int | -1 | Chain id the defender stores; used with nochainid. |
nochainid | int, int | -1, -1 | This HitDef misses a defender whose last chain id is one of these. |
hitonce | bool | 0 (1 for throws) | Hit only one opponent, then stop. |
kill | bool | 1 | 0 cannot KO on hit. |
guard.kill | bool | 1 | 0 cannot KO on guard. |
fall.kill | bool | 1 | 0 cannot KO with fall damage. |
numhits | int | 1 | Hits added to the combo counter. |
getpower | int, int | from the damage | Power the attacker gains on hit / on guard. |
givepower | int, int | from the damage | Power the defender gains on hit / on guard. |
palfx.timenot yet | int | 0 | Palette effect on the defender: duration. |
palfx.mulnot yet | int, int, int | 256, 256, 256 | Palette effect colour multiplier. |
palfx.addnot yet | int, int, int | 0, 0, 0 | Palette effect colour offset. |
envshake.time | int | 0 | Screen shake on hit: duration. |
envshake.freq | float | 60 | Screen shake frequency. |
envshake.ampl | int | -4 | Screen shake amplitude. |
envshake.phase | float | 0 | Screen shake phase. |
fall.envshake.time | int | 0 | Shake when the defender lands from the fall. |
fall.envshake.freq | float | 60 | Fall shake frequency. |
fall.envshake.ampl | int | -4 | Fall shake amplitude. |
fall.envshake.phase | float | 0 | Fall shake phase. |
[State 200, jab]
type = HitDef
trigger1 = AnimElem = 3
attr = S, NA
damage = 25, 2
animtype = Light
guardflag = MA
hitflag = MAF
pausetime = 10, 11
sparkxy = -10, -70
hitsound = 5, 0
guardsound = 6, 0
ground.type = High
ground.slidetime = 6
ground.hittime = 10
ground.velocity = -4ReversalDef Partial
A counter: while active, an incoming attack that matches reversal.attr touching your Clsn1 is reversed instead of hitting you. Accepts the HitDef parameters that describe what happens to the attacker (pausetime, sparks, sounds, p1stateno / p2stateno, and so on).
- The
MoveReversedtrigger still returns 0 after a successful reversal.
| Parameter | Type | Default | Meaning |
|---|---|---|---|
reversal.attr | attr string | required | Which attacks it reverses, e.g. SCA, NA, SA. |
[State 1300, parry]
type = ReversalDef
trigger1 = Time < 10
reversal.attr = SC, NA, SA
pausetime = 12, 12
p1stateno = 1310Projectile Partial
Fires a projectile. Takes every HitDef parameter for the hit itself, plus the projectile parameters below.
- Ignored parameters:
projshadow. afterimage.*,ownpalandremappalare accepted but have no effect.
| Parameter | Type | Default | Meaning |
|---|---|---|---|
projid | int | 0 | Id for the Proj* triggers and NumProjID. |
projanim | int | 0 | Flying animation. |
projhitanim | int | -1 | Animation played on hit. |
projremanim | int | = projhitanim | Animation played when removed. |
projcancelanim | int | = projremanim | Animation played when cancelled by another projectile. |
projscale | float, float | 1, 1 | Draw scale. |
projremove | bool | 1 | Remove after the last hit. |
projremovetime | int | -1 (never) | Remove after this many ticks. |
velocity | float, float | 0, 0 | Starting velocity (x relative to facing). |
remvelocity | float, float | 0, 0 | Velocity while the remove animation plays. |
accel | float, float | 0, 0 | Acceleration. |
velmul | float, float | 1, 1 | Velocity multiplier per tick. |
projhits | int | 1 | Hits before it is removed. |
projmisstime | int | 0 | Ticks between hits for multi-hit projectiles. |
projpriority | int | 1 | Strength against other projectiles; a stronger one survives. |
projsprpriority | int | 3 | Drawing layer. |
projedgebound | int | 40 (240p) | How far past the screen edge it may fly before removal. |
projstagebound | int | 40 (240p) | How far past the stage edge. |
projheightbound | int, int | -240, 1 (240p) | Lowest and highest y before removal. |
offset | float, float | 0, 0 | Spawn offset. |
postype | p1 / p2 / front / back / left / right | p1 | What the offset is relative to. |
projshadownot yet | int[, int, int] | 0 | Shadow colour, -1 to use the stage shadow. |
supermovetime | int | 0 | Ticks it moves during a SuperPause. |
pausemovetime | int | 0 | Ticks it moves during a Pause. |
afterimage.time | int | 0 | After-image trail duration (with other afterimage.* keys). |
ownpal | bool | 0 | Use its own copy of the palette (immune to later PalFX on the owner). |
remappal | int, int | -1, 0 | Palette remap for the projectile. |
[State 1000, fireball]
type = Projectile
trigger1 = AnimElem = 4
projid = 1000
projanim = 1005
projhitanim = 1006
velocity = 5
offset = 40, -60
attr = S, SP
damage = 60, 8
hitflag = MAF
guardflag = MA
pausetime = 0, 12
ground.velocity = -5HitBy Supported
Makes the player hittable only by the listed attack types for a while. Everything else misses.
| Parameter | Type | Default | Meaning |
|---|---|---|---|
value | attr string | one of value / value2 | Attacks that may hit, e.g. SCA, NA, SA. Uses slot 1. |
value2 | attr string | one of value / value2 | The same, in slot 2 (the slots are independent). |
time | int | 1 | Ticks it stays active. |
[State 1400, only throws connect]
type = HitBy
trigger1 = 1
value = SCA, ATNotHitBy Supported
The opposite of HitBy: the listed attack types miss the player for a while. The usual way to give invincibility frames.
| Parameter | Type | Default | Meaning |
|---|---|---|---|
value | attr string | one of value / value2 | Attacks that miss. SCA alone means everything. |
value2 | attr string | one of value / value2 | Second, independent slot. |
time | int | 1 | Ticks it stays active. |
Permanent NotHitBy in state -2 / -3 is a fairness cheat flag; see Online-fair characters.
[State 1100, invincible startup]
type = NotHitBy
trigger1 = AnimElemTime(4) < 0
value = SCAHitOverride Supported
When an attack matching attr hits, send the player to stateno instead of the normal get-hit state. Used for armour, counters and custom reactions.
| Parameter | Type | Default | Meaning |
|---|---|---|---|
attr | attr string | required | Attacks it reacts to. |
stateno | int | required | State to enter instead. |
slot | int | 0 | Slot 0 to 7; each holds one override. |
time | int | 1 | Ticks it stays active (-1 forever). |
forceair | bool | 0 | Treat the hit as an air hit for the stored hit data. |
forceguard | bool | 0 | Treat the hit as guarded. |
[State 1500, counter stance]
type = HitOverride
trigger1 = Time = 0
attr = SC, NA, SA
stateno = 1510
time = 20AttackDist Not yet
Changes the guard.dist of the current HitDef: how close the opponent must be to start guarding.
- Not implemented yet: the controller is skipped and
rugen checklists it.
| Parameter | Type | Default | Meaning |
|---|---|---|---|
value | int | required | New guard distance. |
[State 1200, long reach]
type = AttackDist
trigger1 = Time = 0
value = 220MoveHitReset Supported
Resets MoveHit, MoveGuarded and MoveContact to 0, so a later check sees only new contact.
No parameters.
[State 1000, reset for second hit]
type = MoveHitReset
trigger1 = AnimElem = 6HitAdd Supported
Adds to the combo counter without a hit.
| Parameter | Type | Default | Meaning |
|---|---|---|---|
value | int | required | Hits to add. |
[State 3100, cinematic hits]
type = HitAdd
trigger1 = AnimElem = 5
value = 3Être touché
HitVelSet Supported
In a get-hit state: sets velocity from the stored hit velocity.
| Parameter | Type | Default | Meaning |
|---|---|---|---|
x | bool | 0 | 1 applies the stored x velocity. |
y | bool | 0 | 1 applies the stored y velocity. |
[State 5000, apply knockback]
type = HitVelSet
trigger1 = Time = 0
x = 1HitFallSet Supported
Changes the fall flag and the fall velocities stored from the last hit.
| Parameter | Type | Default | Meaning |
|---|---|---|---|
value | int | -1 (unchanged) | 1 sets the fall flag, 0 clears it. |
xvel | float | unchanged | New fall x velocity. |
yvel | float | unchanged | New fall y velocity. |
[State 5100, softer bounce]
type = HitFallSet
trigger1 = Time = 0
yvel = -3HitFallVel Supported
If the fall flag is set, applies the stored fall velocities. common1 uses it when the player hits the floor.
No parameters.
[State 5100, bounce up]
type = HitFallVel
trigger1 = Time = 0HitFallDamage Supported
Applies the stored fall.damage once, when the falling player hits the floor.
No parameters.
[State 5100, floor damage]
type = HitFallDamage
trigger1 = Time = 0FallEnvShake Supported
Shakes the screen using the stored fall.envshake.* values, once per fall.
No parameters.
[State 5100, ground shake]
type = FallEnvShake
trigger1 = Time = 0Cibles
TargetState Supported
Puts your targets into one of your states (they run your state code).
| Parameter | Type | Default | Meaning |
|---|---|---|---|
value | int | required | State number. |
id | int | -1 (all) | Only targets hit by a HitDef with this id. |
[State 800, throw connects]
type = TargetState
trigger1 = MoveHit
value = 820TargetLifeAdd Supported
Changes your targets' life.
| Parameter | Type | Default | Meaning |
|---|---|---|---|
value | int | required | Amount (negative for damage). |
kill | bool | 1 | 0 keeps them at 1 life or more. |
absolute | bool | 0 | 1 ignores attack and defence multipliers. |
id | int | -1 (all) | Only targets hit by a HitDef with this id. |
[State 820, slam damage]
type = TargetLifeAdd
trigger1 = AnimElem = 5
value = -90TargetPowerAdd Supported
Changes your targets' power.
| Parameter | Type | Default | Meaning |
|---|---|---|---|
value | int | required | Amount. |
id | int | -1 (all) | Only targets hit by a HitDef with this id. |
[State 1600, drain meter]
type = TargetPowerAdd
trigger1 = MoveHit
value = -300TargetVelSet Supported
Sets your targets' velocity (x relative to the target's facing).
| Parameter | Type | Default | Meaning |
|---|---|---|---|
x | float | unchanged | x velocity. |
y | float | unchanged | y velocity. |
id | int | -1 (all) | Only targets hit by a HitDef with this id. |
[State 820, toss]
type = TargetVelSet
trigger1 = AnimElem = 6
x = -3
y = -6TargetVelAdd Supported
Adds to your targets' velocity.
| Parameter | Type | Default | Meaning |
|---|---|---|---|
x | float | 0 | Added x velocity. |
y | float | 0 | Added y velocity. |
id | int | -1 (all) | Only targets hit by a HitDef with this id. |
[State 820, gravity on target]
type = TargetVelAdd
trigger1 = 1
y = 0.4TargetFacing Supported
Turns your targets.
| Parameter | Type | Default | Meaning |
|---|---|---|---|
value | int | required | 1 faces the same way as you, -1 the opposite way. |
id | int | -1 (all) | Only targets hit by a HitDef with this id. |
[State 820, face me]
type = TargetFacing
trigger1 = Time = 0
value = -1TargetBind Supported
Pins your targets to an offset from you.
| Parameter | Type | Default | Meaning |
|---|---|---|---|
time | int | 1 | Ticks to stay bound. |
pos | float, float | 0, 0 | Offset from you. |
id | int | -1 (all) | Only targets hit by a HitDef with this id. |
[State 810, hold]
type = TargetBind
trigger1 = AnimElem = 2, >= 0
pos = 30, -20TargetDrop Supported
Removes players from your target list.
| Parameter | Type | Default | Meaning |
|---|---|---|---|
excludeid | int | -1 | Keep targets hit by this HitDef id; drop the rest. |
keepone | bool | 1 | Keep only one target of the kept ones. |
[State 900, single grab]
type = TargetDrop
trigger1 = Time = 0
excludeid = 900Helpers et explods
Helper Partial
Spawns a helper: a full extra player that runs your state code from stateno, owned by you. Helpers can attack, spawn projectiles and other helpers.
- Ignored parameters:
name,ownpal,remappal,size.xscale. - The helper always uses the owner's name and [Size] constants.
| Parameter | Type | Default | Meaning |
|---|---|---|---|
helpertype | normal / player | normal | player makes it count as a player (camera, screen bound). Avoid unless needed. |
namenot yet | string | owner's name | Name used by the Name trigger. |
id | int | 0 | Id for NumHelper / Helper(id) redirection. |
pos | float, float | 0, 0 | Spawn offset. |
postype | p1 / p2 / front / back / left / right | p1 | What the offset is relative to. |
facing | int | 1 | 1 same facing as the owner, -1 opposite. |
stateno | int | 0 | State the helper starts in. |
keyctrl | bool | 0 | The helper reads the owner's command input. |
ownpalnot yet | bool | 0 | Use its own copy of the palette. |
remappalnot yet | int, int | -1, 0 | Palette remap for the helper. |
supermovetime | int | 0 | Ticks it moves during a SuperPause. |
pausemovetime | int | 0 | Ticks it moves during a Pause. |
size.xscalenot yet | float | owner value | Overrides a [Size] constant for the helper (all size.* keys work the same way). |
[State 1200, summon]
type = Helper
trigger1 = AnimElem = 3
helpertype = normal
name = "Hawk"
id = 1201
stateno = 1250
pos = 40, -80
postype = p1DestroySelf Supported
Helper only: removes the helper. Code after it in the same state does not run.
| Parameter | Type | Default | Meaning |
|---|---|---|---|
recursive | bool | 0 | Also remove the helper's own helpers. |
removeexplods | bool | 0 | Also remove its explods. |
[State 1250, vanish]
type = DestroySelf
trigger1 = AnimTime = 0Explod Partial
Spawns a visual-only animation (effects, dust, auras). Explods never hit or get hit.
- Ignored parameters:
xangle,yangle,shadow,ownpal,remappal.
| Parameter | Type | Default | Meaning |
|---|---|---|---|
anim | int | required | Action to play; prefix F for fightfx.air. |
id | int | -1 | Id for NumExplod / ModifyExplod / RemoveExplod. |
pos | float, float | 0, 0 | Offset. |
postype | p1 / p2 / front / back / left / right | p1 | What the offset is relative to. |
space | screen / stage | from postype | Coordinate space (MUGEN 1.1). |
facing | int | 1 | 1 same facing, -1 flipped. |
vfacing | int | 1 | -1 flips it vertically. |
bindtime | int | 0 | Ticks it follows the bind point (-1 forever). |
vel | float, float | 0, 0 | Velocity. |
accel | float, float | 0, 0 | Acceleration. |
random | int, int | 0, 0 | Random spread added to the position. |
removetime | int | -2 | Ticks until removal; -1 never, -2 when the animation ends. |
supermove | bool | 0 | Old form of supermovetime. |
supermovetime | int | 0 | Ticks it moves during a SuperPause. |
pausemovetime | int | 0 | Ticks it moves during a Pause. |
scale | float, float | 1, 1 | Draw scale. |
angle | float | 0 | Rotation in degrees. |
xanglenot yet | float | 0 | 3D tilt around the x axis. |
yanglenot yet | float | 0 | 3D tilt around the y axis. |
sprpriority | int | 0 | Drawing layer. |
ontop | bool | 0 | Draw above everything (hit-spark layer). |
shadownot yet | int, int, int | 0, 0, 0 | Shadow colour; -1 uses the stage shadow. |
ownpalnot yet | bool | 0 | Use its own copy of the palette. |
remappalnot yet | int, int | -1, 0 | Palette remap. |
removeongethit | bool | 0 | Remove when the owner is hit. |
ignorehitpause | bool | 1 | Keep animating during the owner's hit pause. |
trans | string | from the .air | Transparency: none, add, add1, addalpha, sub. |
alpha | int, int | 256, 256 | Source / destination alpha with addalpha. |
rugen also reads the Ikemen keys removeonchangestate, under, animelem, animfreeze and friction.
[State 1000, muzzle flash]
type = Explod
trigger1 = AnimElem = 4
anim = 1010
id = 1010
pos = 50, -62
postype = p1
sprpriority = 3
removetime = -2ModifyExplod Supported
Changes explods that are already on screen. Takes the Explod parameters; only the ones you write are changed.
| Parameter | Type | Default | Meaning |
|---|---|---|---|
id | int | -1 (all) | Which explods to change. |
[State 1000, fade the flash]
type = ModifyExplod
trigger1 = AnimElem = 6
id = 1010
trans = addRemoveExplod Supported
Removes explods.
| Parameter | Type | Default | Meaning |
|---|---|---|---|
id | int | -1 (all) | Which explods to remove. |
[State 0, cleanup]
type = RemoveExplod
trigger1 = Time = 0
id = 1010ExplodBindTime Supported
Changes how long explods stay bound to their bind point.
| Parameter | Type | Default | Meaning |
|---|---|---|---|
id | int | -1 (all) | Which explods. |
time | int | 0 | New bind time (-1 forever). |
[State 1000, release]
type = ExplodBindTime
trigger1 = AnimElem = 5
id = 1010
time = 0GameMakeAnim Supported
Old way to show a fightfx.air animation. New code should use Explod with an F prefix.
| Parameter | Type | Default | Meaning |
|---|---|---|---|
value | int | 0 | fightfx action. |
under | bool | 0 | Draw behind the players. |
pos | float, float | 0, 0 | Offset. |
random | int | 0 | Random spread. |
[State 1000, old spark]
type = GameMakeAnim
trigger1 = AnimElem = 2
value = 2
pos = 30, -50MakeDust Partial
Puts dust puffs (fightfx action 120) at one or two points. Used for running and landing.
- Ignored parameters:
spacing.
| Parameter | Type | Default | Meaning |
|---|---|---|---|
pos | int, int | 0, 0 | First dust point. |
pos2 | int, int | none | Second dust point. |
spacingnot yet | int | 1 | Ticks between puffs. |
[State 100, run dust]
type = MakeDust
trigger1 = Time % 6 = 0
pos = -10, 0Effets visuels
PalFX Supported
Tints the player's palette for a while: multiply, add, a sine-pulsing add, colour (saturation) and invert. The final colour is (colour + add + sinadd) x mul / 256.
| Parameter | Type | Default | Meaning |
|---|---|---|---|
time | int | 0 | Ticks (-1 forever). |
add | int, int, int | 0, 0, 0 | Added to red, green, blue. |
mul | int, int, int | 256, 256, 256 | Multiplier for red, green, blue (256 = unchanged). |
sinadd | r, g, b, period | 0, 0, 0, 0 | Pulsing add; the fourth value is the period in ticks. |
invertall | bool | 0 | Invert the colours. |
color | int | 256 | Saturation: 0 is greyscale, 256 full colour. |
rugen also reads the Ikemen keys sinmul and sincolor.
[State 3000, glow]
type = PalFX
trigger1 = Time = 0
time = 30
add = 80, 20, 0
sinadd = 60, 30, 0, 12AllPalFX Supported
PalFX for everything on screen: all players, the stage and the lifebars. Same parameters as PalFX.
| Parameter | Type | Default | Meaning |
|---|---|---|---|
time | int | 0 | Ticks (-1 forever). |
add | int, int, int | 0, 0, 0 | Colour offset. |
mul | int, int, int | 256, 256, 256 | Colour multiplier. |
sinadd | r, g, b, period | 0, 0, 0, 0 | Pulsing add. |
invertall | bool | 0 | Invert. |
color | int | 256 | Saturation. |
[State 3000, world goes grey]
type = AllPalFX
trigger1 = Time = 0
time = 40
color = 0BGPalFX Supported
PalFX for the stage background only. Same parameters as PalFX.
| Parameter | Type | Default | Meaning |
|---|---|---|---|
time | int | 0 | Ticks (-1 forever). |
add | int, int, int | 0, 0, 0 | Colour offset. |
mul | int, int, int | 256, 256, 256 | Colour multiplier. |
sinadd | r, g, b, period | 0, 0, 0, 0 | Pulsing add. |
invertall | bool | 0 | Invert. |
color | int | 256 | Saturation. |
[State 3000, red sky]
type = BGPalFX
trigger1 = Time = 0
time = 60
mul = 256, 120, 120AfterImage Supported
Leaves a trail of fading copies of the player. Each copy's palette is processed with the pal* parameters step by step.
| Parameter | Type | Default | Meaning |
|---|---|---|---|
time | int | 1 | Ticks the trail is recorded (-1 forever). |
length | int | 20 | Number of frames kept in the trail buffer. |
timegap | int | 1 | Ticks between recorded frames. |
framegap | int | 4 | Draw every n-th recorded frame. |
palcolor | int | 256 | Saturation of the copies. |
palinvertall | bool | 0 | Invert the copies. |
palbright | int, int, int | 30, 30, 30 | Added before contrast. |
palcontrast | int, int, int | 255, 255, 255 | Contrast multiplier. |
palpostbright | int, int, int | 0, 0, 0 | Added after contrast. |
paladd | int, int, int | 10, 10, 25 | Added per step down the trail. |
palmul | float, float, float | 0.65, 0.65, 0.75 | Multiplied per step down the trail. |
trans | string | add | Blend mode of the copies. |
[State 1100, dash trail]
type = AfterImage
trigger1 = Time = 0
time = 20
length = 12
paladd = 0, 0, 40
palmul = 0.7, 0.7, 0.9AfterImageTime Supported
Changes how long the current after-image keeps recording.
| Parameter | Type | Default | Meaning |
|---|---|---|---|
time | int | required | New duration; 0 stops it. |
[State 1100, stop trail]
type = AfterImageTime
trigger1 = AnimElem = 6
time = 0Trans Supported
Overrides the player's transparency for one tick.
| Parameter | Type | Default | Meaning |
|---|---|---|---|
trans | string | default | default, none, add, add1, addalpha or sub. |
alpha | int, int | 256, 256 | Source and destination alpha for addalpha. |
[State 1700, ghost]
type = Trans
trigger1 = 1
trans = addalpha
alpha = 128, 128AngleDraw Supported
Draws the player rotated (by the angle set with AngleSet / AngleAdd / AngleMul) and optionally scaled, for one tick.
| Parameter | Type | Default | Meaning |
|---|---|---|---|
value | float | current angle | Angle to draw with. |
scale | float, float | 1, 1 | Draw scale. |
[State 1800, spin]
type = AngleDraw
trigger1 = 1
value = Time * 12AngleSet Supported
Sets the drawing angle in degrees (counter-clockwise). Shown only while AngleDraw runs.
| Parameter | Type | Default | Meaning |
|---|---|---|---|
value | float | required | Angle. |
[State 1800, start angle]
type = AngleSet
trigger1 = Time = 0
value = 0AngleAdd Supported
Adds to the drawing angle.
| Parameter | Type | Default | Meaning |
|---|---|---|---|
value | float | required | Degrees to add. |
[State 1800, keep spinning]
type = AngleAdd
trigger1 = 1
value = 15AngleMul Supported
Multiplies the drawing angle.
| Parameter | Type | Default | Meaning |
|---|---|---|---|
value | float | required | Multiplier. |
[State 1800, slow the spin]
type = AngleMul
trigger1 = Time > 20
value = 0.9EnvShake Supported
Shakes the screen vertically.
| Parameter | Type | Default | Meaning |
|---|---|---|---|
time | int | required | Ticks. |
freq | float | 60 | Frequency (0 to 180). |
ampl | int | -4 | Amplitude in pixels; negative starts upward. |
phase | float | 0 (90 for high freq) | Starting phase. |
[State 3100, impact]
type = EnvShake
trigger1 = AnimElem = 4
time = 20
ampl = 6EnvColor Not yet
Fills the screen with a flat colour (hit sparks and on-top explods stay visible).
- Not implemented yet: the controller is skipped and
rugen checklists it.
| Parameter | Type | Default | Meaning |
|---|---|---|---|
value | int, int, int | 255, 255, 255 | Colour. |
time | int | 1 | Ticks (-1 forever). |
under | bool | 0 | 1 draws the colour behind the players. |
[State 3100, white flash]
type = EnvColor
trigger1 = AnimElem = 4
time = 3RemapPal Not yet
Swaps one palette of the player for another (from the SFF palette table).
- Accepted but has no effect yet.
| Parameter | Type | Default | Meaning |
|---|---|---|---|
source | int, int | -1, 0 | Palette group and number to replace. |
dest | int, int | -1, 0 | Palette to use instead. |
[State 3000, dark form]
type = RemapPal
trigger1 = Time = 0
source = 1, 1
dest = 1, 4Son
PlaySnd Partial
Plays a sound from your .snd (or, with an F prefix, from common.snd / fight.snd).
- Ignored parameters:
lowpriority,freqmul,loop,pan,abspan.
| Parameter | Type | Default | Meaning |
|---|---|---|---|
value | group, number | required | Sound to play; F5, 0 for the common sounds. |
channel | int | -1 | Channel; a new sound replaces the old one on the same channel. 0 is the voice channel. |
lowprioritynot yet | bool | 0 | Do not interrupt a sound already playing on the channel. |
volumescale | float | 100 | Volume in percent. |
freqmulnot yet | float | 1 | Pitch multiplier. |
loopnot yet | bool | 0 | Loop until stopped. |
pannot yet | int | 0 | Pan relative to the player (positive is forward). |
abspannot yet | int | none | Pan relative to the screen centre. |
[State 200, swing sound]
type = PlaySnd
trigger1 = Time = 2
value = 0, 1StopSnd Supported
Stops the sound on a channel, or all of the player's sounds with -1.
| Parameter | Type | Default | Meaning |
|---|---|---|---|
channel | int | required | Channel to stop (-1 all). |
[State 0, stop the loop]
type = StopSnd
trigger1 = Time = 0
channel = 3SndPan Not yet
Moves a playing sound left or right.
- Not implemented yet: the controller is skipped and
rugen checklists it.
| Parameter | Type | Default | Meaning |
|---|---|---|---|
channel | int | required | Channel. |
pan | int | one of pan / abspan | Pan relative to the player. |
abspan | int | one of pan / abspan | Pan relative to the screen centre. |
[State 1000, follow the projectile]
type = SndPan
trigger1 = 1
channel = 4
pan = Time * 2Système et debug
VictoryQuote Not yet
Picks which quote from the [Quotes] section of your .cns is shown on the victory screen.
- Not implemented yet: the controller is skipped and
rugen checklists it.
| Parameter | Type | Default | Meaning |
|---|---|---|---|
value | int | -1 (random) | Quote index 0 to 99. |
[State 180, win pose]
type = VictoryQuote
trigger1 = Time = 0
value = 3ForceFeedback Partial
Rumble for controllers that support it.
- Accepted and ignored: rugen has no rumble output yet.
| Parameter | Type | Default | Meaning |
|---|---|---|---|
waveform | sine / square / sinesquare / off | sine | Motor pattern. |
time | int | 60 | Ticks. |
freq | int, float, float, float | 128, 0, 0, 0 | Frequency curve. |
ampl | int, float, float, float | 128, 0, 0, 0 | Strength curve. |
self | bool | 1 | 1 rumbles your pad, 0 the opponent's. |
[State 5000, rumble on hit]
type = ForceFeedback
trigger1 = Time = 0
time = 10AppendToClipboard Not yet
Debug: adds a formatted line to the player's clipboard text. Same parameters as DisplayToClipboard.
- Not implemented yet: the controller is skipped and
rugen checklists it.
| Parameter | Type | Default | Meaning |
|---|---|---|---|
text | string | required | printf-style format string in double quotes (%d, %f, \n). |
params | expr list | none | Up to six values for the format string. |
[State -1, debug]
type = AppendToClipboard
trigger1 = 1
text = "vel %f\n"
params = Vel XClearClipboard Not yet
Debug: empties the player's clipboard text.
- Not implemented yet: the controller is skipped and
rugen checklists it.
No parameters.
[State -1, debug]
type = ClearClipboard
trigger1 = Time = 0DisplayToClipboard Not yet
Debug: replaces the player's clipboard text with a formatted line.
- Not implemented yet: the controller is skipped and
rugen checklists it.
| Parameter | Type | Default | Meaning |
|---|---|---|---|
text | string | required | printf-style format string in double quotes. |
params | expr list | none | Up to six values. |
[State -1, debug]
type = DisplayToClipboard
trigger1 = 1
text = "state %d, var(5) = %d"
params = StateNo, var(5)Actualiser les données d’état
Les badges sont générés, pas écrits à la main. scripts/gen-support.mjs dans le
dépôt de la documentation lit le code source du moteur :
crates/sim/src/sctrl.rs: les noms de controllers que rugen compile, les paramètres que chacun lit (y compris les clésHitDefutilisées danscrates/sim/src/collision.rs), et ceux qui sont acceptés comme no-ops ;crates/sim/src/world.rs: les paramètres qu’un controller compile mais n’utilise jamais ;crates/cns/src/parser.rsetcrates/sim/src/context.rs: les noms de triggers et les triggers qui répondent toujours avec une valeur fixe.
Il compare cela avec les listes de paramètres de cette page et écrit
src/data/support.json, qui est commité pour que le site se construise sans le
moteur. Les notes écrites à la main pour ce que l’analyse statique ne peut pas voir se trouvent dans
src/data/controllers.mjs et src/data/triggers.mjs. Pour actualiser :
node scripts/gen-support.mjs ../rugen # path to an engine checkout
git diff src/data/support.json
Référence originale : elecbyte.com/mugendocs-11b1.
Un problème sur cette page ? Modifiez-la sur GitHub.