Page 1 of 1

#CAPTURE for stating.

Posted: Fri Sep 23, 2016 12:21 pm
by Zaida
I have been stating new characters and have been copy and pasting the stating results manually.
I was wondering if there was a way to have them show up in the Communications window? Like tells and narrates?

If you are unfamiliar with the communication script here it is :

Thanks to Taziar :

Code: Select all

#CLASS {Communications}
#ALIAS helpCommunications {
  #SHOW {""}
  #SHOW {""}
  #SHOW {"-----Communications Window Commands-----"}
  #SHOW {""}
  #SHOW {"Type toggleComms to toggle from globals and tells to all communications."}
  #SHOW {""}
  }
#ALIAS toggleComms {
  #IF (@toggleComms=1) {toggleComms=0} {toggleComms=1}
  #IF (@toggleComms=1) {
    #ECHO {Comms window is set to capture all communications.}
    #T+ Communications|ToggleComms
    } {
    #ECHO {Comms window is set to capture only gobals and tells.}
    #T- Communications|ToggleComms
    }
  }
#VAR toggleComms {1}
#TRIGGER {%w narrates '*'$} {#CAPTURE Communications}
#TRIGGER {%w chats '*'$} {#CAPTURE Communications}
#TRIGGER {%w tells you '*'$} {#CAPTURE Communications}
#TRIGGER {%w answers your prayer '*'$} {#CAPTURE Communications}
#TRIGGER {%w speaks from the * '*'$} {#CAPTURE Communications}
#TRIGGER {You narrate '*'$} {#CAPTURE Communications}
#TRIGGER {You chat '*'$} {#CAPTURE Communications}
#TRIGGER {You reply to %w '*'$} {#CAPTURE Communications}
#TRIGGER {You tell %w '*'$} {#CAPTURE Communications}
#TRIGGER {You pray '*'$} {#CAPTURE Communications}
#TRIGGER {*Your base abilities are} {#CAPTURE Communications}
#CLASS 0
#CLASS {Communications|ToggleComms}
#TRIGGER {%w bellows '*'$} {#CAPTURE Communications}
#TRIGGER {You bellow '*'$} {#CAPTURE Communications}
#TRIGGER {You hiss '*'$} {#CAPTURE Communications}
#TRIGGER {You say '*'$} {#CAPTURE Communications}
#TRIGGER {You drawl '*'$} {#CAPTURE Communications}
#TRIGGER {%w hisses '*'$} {#CAPTURE Communications}
#TRIGGER {%w says '*'$} {#CAPTURE Communications}
#TRIGGER {%w drawls '*'$} {#CAPTURE Communications}
#CLASS 0
Any and all ideas are appreciated.

Re: #CAPTURE for stating.

Posted: Fri Sep 23, 2016 12:28 pm
by Zaida
This is line :

Code: Select all

#TRIGGER {*Your base abilities are} {#CAPTURE Communications}
Was my attempt and it doesn't work..

Re: #CAPTURE for stating.

Posted: Fri Sep 23, 2016 5:43 pm
by Zaida
So far this works just fine.

Code: Select all

#TRIGGER {*Your base abilities are} {#CAPTURE 2 Communications}

Re: #CAPTURE for stating.

Posted: Fri Sep 23, 2016 6:55 pm
by Taziar
#TRIGGER {^Your base abilities are*$} {#CAPTURE Communications}

Just tried this, and it worked for me.

I've been meaning to write a script to save stating results to a .txt file...

Re: #CAPTURE for stating.

Posted: Mon Sep 26, 2016 12:23 am
by Scizzor
For writing them to a text file. All you'll need to do is something like this:

Code: Select all

#FILE 1 {Statted_Stats.txt}
#WRITE 1 {%numitems( @PastStats).@Charaname -- Str:@Str Int:@Nt Wil:@Wil Dex:@Dex Con:@Con -- Sum:@Statsum -- @Sex @Class @Homelanddb -- @str @nt @wil @Dex @con -- %time( c)}
#ECHO Stats Written
#CLOSE 1
You can change any of those variables with ones that you wanted to do. That's a simple one that outputs results like this:

285. JenniferLarwence -- Str:14 Int:9 Wil:10 Dex:16 Con:17 -- Sum:66 -- male hunter Ramshorned -- 14 9 10 16 17 -- 3/3/2016 11:12:29 AM

When I stat, I also output this a set of stats to a different file so that I can sort them in excel with the "Data:Text to Column" feature using ":" as a delimiter and then sort with the "Filter" feature.

Code: Select all

#FILE 1 {Stats For Excel.txt}
#WRITE 1 {@Charaname:Str:@Str:Int:@Nt:Wil:@Wil:Dex:@Dex:Con:@Con:Sum:@Statsum:@Sex:@Class:@Homelanddb:@str @nt @wil @Dex @con}
#ECHO Stats Written
#CLOSE 1
That comes out like this:

JenniferLarwence:Str:14:Int:9:Wil:10:Dex:16:Con:17:Sum:66:male:hunter:Ramshorned:14 9 10 16 17

You just put either of those codes in the value of an alias, and once you have all the values for the variables you want, you call that alias and it'll write the stats. Then you can do what you want with them.

Anyways, hope that helps someone make a much better script.

Re: #CAPTURE for stating.

Posted: Mon Sep 26, 2016 1:20 am
by Mckale
Ah good, I'm not the only one who would do dirty things to Jennifer Lawrence....

Re: #CAPTURE for stating.

Posted: Sat Mar 11, 2017 11:23 am
by cael
Does this work for Cmud? If not, anyone have one that does?