Omit from output

Posted by Renny on Sat 04 Jan 2014 07:34 AM — 2 posts, 11,719 views.

Canada #0
I want to make a lua script that omits lines when it matches an expression.

To give context (Aardwolf), when i type practice I get output that looks like this:

Skill/Spell name          Sn    Prac  Bonus  Level
------------------------- ---   ----  -----  -----
Agitation                  98     1%            15
Air dart                  465     1%             5
Ballistic attack          101     1%             1


So I was thinking of an expression like:

*     1%

Where * is the Sn number, and then have an if statement that checks if the variable matches a Sn number i want ommitted, and then omit the line if true.

Hopefully what I said makes sense. I'm not sure how I would do this in lua, or if there is an easier way (or if someone already has a plugin like this).
Australia Forum Administrator #1
You probably want to omit the whole spell list and then re-display the ones that you don't want omitted.