#CAPTURE for stating.

... A place to ask for help on any topic whether it be starting out to player killing to IT issues.
Post Reply
Zaida
Posts: 16
Joined: Fri May 27, 2016 8:29 pm

#CAPTURE for stating.

Post by Zaida » Fri Sep 23, 2016 12:21 pm

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.
Last edited by Zaida on Fri Sep 23, 2016 5:37 pm, edited 1 time in total.

Zaida
Posts: 16
Joined: Fri May 27, 2016 8:29 pm

Re: #CAPTURE for stating.

Post by Zaida » Fri Sep 23, 2016 12:28 pm

This is line :

Code: Select all

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

Zaida
Posts: 16
Joined: Fri May 27, 2016 8:29 pm

Re: #CAPTURE for stating.

Post by Zaida » Fri Sep 23, 2016 5:43 pm

So far this works just fine.

Code: Select all

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

Taziar
Posts: 957
Joined: Sat Mar 21, 2015 10:28 pm
Location: !Discord

Re: #CAPTURE for stating.

Post by Taziar » Fri Sep 23, 2016 6:55 pm

#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...

Scizzor
Posts: 68
Joined: Mon May 04, 2015 2:20 am

Re: #CAPTURE for stating.

Post by Scizzor » Mon Sep 26, 2016 12:23 am

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.

Mckale
Posts: 91
Joined: Thu Nov 19, 2015 6:45 pm

Re: #CAPTURE for stating.

Post by Mckale » Mon Sep 26, 2016 1:20 am

Ah good, I'm not the only one who would do dirty things to Jennifer Lawrence....

cael
Posts: 51
Joined: Wed Jan 04, 2017 6:53 am

Re: #CAPTURE for stating.

Post by cael » Sat Mar 11, 2017 11:23 am

Does this work for Cmud? If not, anyone have one that does?

Post Reply