To put it simply, functions are a set of "keys" that can be called with a single script command. For example:
[119]
keys=call % fTest
repeat=0
[fTest]
keys=dbg % test line 1
keys2=dbg % test line 2
keys3=dbg % test line 3
Press F8, and “test line 1/2/3” will populate the console window.
Most notably, functions allow you to call multiple "keys" lines from a single waymark. This is not ordinarily possible, so they are quite useful for waymarks. Functions can appear in either your macro or waymark file and can be called in both (i.e., you can call functions in your macro file from your waymark file if desired).
All function names must begin with a lowercase 'f'.
Please see the [Functions] section of the guide for more details.
This addition requires Speeder version 195+.