Page 1 of 1

Capture portion of a chat message to a variable

Posted: January 21st, 2015, 11:53 pm
by daggeraldude
Is it possible to capture a portion of a chat message to a variable? Similar to back-reference functionality in regex (\$1\)?

Re: Capture portion of a chat message to a variable

Posted: January 22nd, 2015, 11:12 am
by yaroz
Not currently.. it's an expression that I've asked Virindi to look into.

Re: Capture portion of a chat message to a variable

Posted: January 22nd, 2015, 1:38 pm
by HellsWrath
If we could do that my char control meta would be cut in half lol.

Re: Capture portion of a chat message to a variable

Posted: January 22nd, 2015, 7:56 pm
by yaroz
mine too

Re: Capture portion of a chat message to a variable

Posted: January 24th, 2015, 9:24 pm
by daggeraldude
Well, I guess add me to the list of wanting this functionality, then! Thanks for the replies guys.

Re: Capture portion of a chat message to a variable

Posted: January 25th, 2015, 4:21 am
by HellsWrath
Unfortunately even if she added string capture it wouldn't function for plugin text, only AC chat. Unless she specifically adds that feature which is nonexistent atm. Can only react to normal AC text, no plugin text (not even other bundle plugins without doing a message relay dance with VCS)

Re: Capture portion of a chat message to a variable

Posted: January 26th, 2015, 9:13 am
by Sif al Taak
But AC Chat Capture would be a start to make many things more easy/flexible/shorter....

Virindi is on the right way i think and made us allready happy with the expr features....

I think we could hope and beg her to see the capture stuff in the future ;) Thx V!!!

Re: Capture portion of a chat message to a variable

Posted: February 20th, 2016, 10:24 am
by CrazyTrain
What about capturing the name of someone who /t's you?
Is that possible to put into a variable?

so instead of replying via /r , it would be by the variable of a characters name that messaged you.

Re: Capture portion of a chat message to a variable

Posted: February 20th, 2016, 11:25 am
by Dmdtt
currently there is no reasonable way to capture information and use it like you are asking, one possibility is you can build yourself a list of chat message conditions that each match to 1 particular char name each that set a variable. but to do so is obviously quite tedious. personally I have for 2 of my metas a list of rules for char names of members of my alleg so if they ever /t me I make a chat log of anything said to me while I am running those metas. but the extent of what you can do like that is very very limited and time consuming to setup.

Re: Capture portion of a chat message to a variable

Posted: February 20th, 2016, 9:47 pm
by CrazyTrain
Alright, thank you for the info!