Script Help

  • Chris

    Chris - 2009-01-15


    If I type frep while in formation, an asterisk on the far left signifies if a person (other than myself) is sneaking or not. I am trying to write a simple script that will check if form members are sneaking and then report it over formtalk.

    {^%0 [%1][%2][ %3| %4hp %5m %6mv]} {/if {@IsEmpty($0 )} {/itemadd {SNEAKERS} {@RTrim($1)}}} {SneakCheck}

    Wouldn't this action add that person's name to the list since no * is there?

    • ghoti

      ghoti - 2009-03-02

      Oops for the incredibly slow response...

      $0 wouldn't be empty because when there is no * $0 would actually be a space and sometimes it is tough to control what happens when variables have just a single space in them.

      You could use /if or /if {!("$0" = "*")} perhaps to make this work the way you want.

      • Chris

        Chris - 2009-03-04

        That works great!
        I even got it to ignore mobs too.
        Thanks a lot.


Log in to post a comment.