diff options
Diffstat (limited to 'HelpMe.md')
| -rw-r--r-- | HelpMe.md | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -670,13 +670,13 @@ There are two kinds of macro: normal ones and regular-expression-based. The first kind the conversion it is just a replacement. -> !macro add k d10e10k +> !macro k d10e10k The user input (8k4) becomes 8d10e10k4 (l5r system). As you can see the k has been replaced by the macro value. In more complexe situations, control/change some parts inside the command can be achieved by using regular-expression based macro. -> !macro add ([0-9]+)w([0-9]+) \1d10e10c[>=\2]-@c[=1] 1 +> !macro ([0-9]+)w([0-9]+) \1d10e10c[>=\2]-@c[=1] 1 The 1 at the end means "this command has regular-expression". The user input (8w6) becomes 8d10e10c[>=6]-@c[=1] (old world of darkness system). |