RECORDING PAST ACTIONS

Discuss how to create custom stats, reports and HUD profiles and share your creations.

Moderators: WhiteRider, kraada, Flag_Hippo, morny, Moderators

Re: RECORDING PAST ACTIONS

Postby potamito » Mon Oct 02, 2017 1:28 am

WhiteRider wrote:3,1 will return 1 character from the 3rd position

BillGatesIII wrote:means the last action is at the most left position of the string, so second to last is the one next to it.

It reads from left to right ok so assuming I have all the actions labeled using 2 characters and also taking into account i can either use the "," or just leave it black it will either way count as a character if i wanted to isolate the last 10 actions individually the last portion of the expression will go like...

10th - 01, 02) (last action)
9th - 03, 02)
8th - 05,02)
.
.
.
.
1st - 19, 02)

Did i get it right?
potamito
 
Posts: 802
Joined: Wed Apr 21, 2010 4:20 pm

Re: RECORDING PAST ACTIONS

Postby BillGatesIII » Mon Oct 02, 2017 6:36 am

    If you do not use a separator character you got it right, else it would be:

    Last action: 01, 02)
    Second to last: 04, 02)
    etc.
    BillGatesIII
     
    Posts: 740
    Joined: Fri Dec 16, 2011 6:50 pm

    Re: RECORDING PAST ACTIONS

    Postby potamito » Mon Oct 02, 2017 12:42 pm

    Yeah I'm using a separator or a character as a separator but I'm not getting the proper results, just ceros but when comparing it with the "Last 10 Actions" expression it does display results so there must be something wrong with what I'm doing.

    Assuming the next action string where "OR" is the last action was taken (most recent) and "LF" was the 10th action taken moving backward so...

    OR,OF,OL,R4,RC,RF,3B,3F,34,LF,

    10th - 01, 02) (last action) - So it would be OR right?
    9th - 04, 02) - For OF
    8th - 07,02) - For OL
    .
    .
    .
    2nd - 25, 02) - For 34
    1st - 28, 02) - For LF
    potamito
     
    Posts: 802
    Joined: Wed Apr 21, 2010 4:20 pm

    Re: RECORDING PAST ACTIONS

    Postby potamito » Mon Oct 02, 2017 3:08 pm

    got it to work, i had the expression net to number, thanks¡!
    potamito
     
    Posts: 802
    Joined: Wed Apr 21, 2010 4:20 pm

    Re: RECORDING PAST ACTIONS

    Postby BillGatesIII » Mon Oct 02, 2017 4:57 pm

      Good to hear :)

      By the way, there is also a substr(string, from, length) function that can be used in a stat expression. So you don't need to create ten different columns for what you want to achieve.
      BillGatesIII
       
      Posts: 740
      Joined: Fri Dec 16, 2011 6:50 pm

      Re: RECORDING PAST ACTIONS

      Postby tommyborstal » Sun Oct 08, 2017 12:14 pm

      thanks to all who followed up on this thread.

      i now have things nearly the way i want them.

      cheers
      tommyborstal
       
      Posts: 50
      Joined: Wed May 21, 2014 4:34 pm

      Previous

      Return to Custom Stats, Reports and HUD Profiles

      Who is online

      Users browsing this forum: No registered users and 23 guests

      cron