smilz0 / Left4Lib

VScript library used by my addons
https://steamcommunity.com/sharedfiles/filedetails/?id=2634208272
9 stars 0 forks source link

Chaining Chat commands feature #6

Open shdeb opened 1 month ago

shdeb commented 1 month ago

Feature to chain chat commands eg. usage: bot cancel;bot follow me here splitting the msg with a suitable delimiter( for eg. comma , is used in vocalizer.txt for cmd1,cmd2, so that may not be suitable).

Implementation

Something similar to what is done for regular command args splitting. https://github.com/smilz0/Left4Lib/blob/60f1bc3ab4b8e51821d1ab67961a2fa262348492/root/scripts/vscripts/left4lib_users.nut#L478-L479 https://github.com/smilz0/Left4Lib/blob/60f1bc3ab4b8e51821d1ab67961a2fa262348492/root/scripts/vscripts/left4lib_users.nut#L490-L493

smilz0 commented 1 month ago

Thanks. Sounds like a cool feature to use with L4B2, since it already allows multiple orders.