45
edits
m (1 revision imported) |
mNo edit summary |
||
| Line 1: | Line 1: | ||
'''Subroutines''' or ''subs'' contain code that can be called on demand. When a subroutine is called, it can either be called '''synchronously''' or '''asynchronously'''. | '''Subroutines''' or ''subs'' contain code that can be called on demand. When a subroutine is called, it can either be called '''synchronously''' or '''asynchronously'''. [[Quiz Show (Megamix)]] | ||
==Rhythm Tengoku== | ==Rhythm Tengoku== | ||
==Rhythm Heaven== | ==Rhythm Heaven== | ||
| Line 22: | Line 22: | ||
The '''call (name)''' and '''async_call (name)''' commands are the ones you should usually be using, as they call subs that are on the tickflow file you are currently editing. '''sub (value)''' and '''async_sub (value)''' will call one of the global subs that are ''[[List of Hardcoded Subs in Rhythm Heaven Megamix|hardcoded]]'' into the game itself. These hardcoded subs range from loading assets to count-ins (values 0 through 0x55) to cues for games (values 0x56 and above). To keep it short, call/async_call is for subs on the file, sub/async_sub is for game cues and global operations. | The '''call (name)''' and '''async_call (name)''' commands are the ones you should usually be using, as they call subs that are on the tickflow file you are currently editing. '''sub (value)''' and '''async_sub (value)''' will call one of the global subs that are ''[[List of Hardcoded Subs in Rhythm Heaven Megamix|hardcoded]]'' into the game itself. These hardcoded subs range from loading assets to count-ins (values 0 through 0x55) to cues for games (values 0x56 and above). To keep it short, call/async_call is for subs on the file, sub/async_sub is for game cues and global operations. | ||
====Example==== | ====Example==== | ||
Pretend you're editing Munchy Monk. | Pretend you're editing [[Munchy Monk|Munchy Monk (Megamix)]]. | ||
If you wanted to '''call''' the subroutine that triggers a single "One, go!" cue, you'd type in '''async_call sub56''', because that was the given name of that sub within Munchy Monk's tickflow file. Note how we use '''async_call''' instead of '''call''' because the sub ends with a '''stop''' command. | If you wanted to '''call''' the subroutine that triggers a single "One, go!" cue, you'd type in '''async_call sub56''', because that was the given name of that sub within Munchy Monk's tickflow file. Note how we use '''async_call''' instead of '''call''' because the sub ends with a '''stop''' command. | ||
edits