YesNoOk
avatar

How to swap stages with mugen hook (Read 6216 times)

Started by Xzest, April 30, 2023, 04:50:21 pm
Share this topic:
How to swap stages with mugen hook
#1  April 30, 2023, 04:50:21 pm
  • **

As in the author presentation vid


I dont understand how to do it in the wiki doc said not clear just give cns command .
Code:
SetBGM

Changes current music track. Any looping info is ignored.

Params:

value (string) - Which file to play, relative to .exe location

Example:

[State 0, SetBGM]
type = SetBGM
trigger1 = stagevar(info.name) = "Sc0rpi0n's_H3ll"
trigger1 = time = 1
value = "sound\\MK3\\mk3_the_bank.ogg"

Restoring original BGM

Use restore as the value.

Example:

[State 0, SetBGM]
type = SetBGM
trigger1 = time = 1
value = "restore"

SetRoundTime

Sets current round time Params:

value (integer) - New time

Example:

[State 0, SetRoundTime]
type = SetRoundTime
trigger1 = animelem = 2
value = 99

AddRoundTime

Adds or subtracts a specified round time amount Params:

value (integer) - Time to add/subtract

subtract (integer 0 or 1) - subtracts instead of adding

Example:

; subtracts 15 from current time
[State 0, AddRoundTime]
type = AddRoundTime
trigger1 = animelem = 2
value = 15
subtract = 1

SetStage

Changes current stage and reloads BGM. Camera and character positions are not reset, do it manually if required.

Params:

value (string) - Which stage to load, relative to .exe location

Example:

[State 0, SetStage]
type = SetStage
trigger1 = time = 1
value = "stages/Scislak_Busorez.def"

I try to put in character cns nothing happen.
What exactly I should do for this feature .
I ask on comment of the vid but no one answer.
Can anyone help please?

thanks in advance.