Created
April 23, 2020 01:16
-
-
Save WrayOfSunshine/563d9c327103b8bf37e2e9cbe7f407ea to your computer and use it in GitHub Desktop.
CMUD - RetroMUD - Set PartyList variable
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#var pnum 1 | |
#var partylist {""|""|""|""|""|""|""|""} | |
#trigger grab_party {^\|(\w+)\s*\|\s*HP:\s*(?:-\d+|\d+)/(?:-\d+|\d+)\s*\|$} { | |
#var partylist %replaceitem( %lower(%1), @pnum, @partylist) | |
#add pnum 1 | |
} {} regex | |
pss | |
#alarm +1 { | |
#untrigger grab_party | |
#unvar pnum | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Usage: create alias "setparty" in CMUD Package Editor and copy/paste the gist in full.