Author Topic: Custom Command Variable: @each@[targetList|command]  (Read 1457 times)

0 Members and 1 Guest are viewing this topic.

jimswords

  • Youngling
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
Custom Command Variable: @each@[targetList|command]
« on: May 31, 2016, 07:35:13 AM »
A simple loop command variable would be really useful and add a ton of functionality. If you could loop over a target list and apply a command on those targets that meet a certain requirement, filtered out by an @if@ command variable, you could make some  really cool stuff. Ex:

Code: [Select]
@each@[@target@|@if@[>||100||@lookupinfo@[@l_points@,@target@]||!customCommand||You need more points]]

Marstead

  • Padawan
  • **
  • Posts: 51
  • Karma: +1/-0
    • View Profile
  • Twitch Name: Marstead
Re: Custom Command Variable: @each@[targetList|command]
« Reply #1 on: June 01, 2016, 12:19:49 AM »
This would be extremely helpful, especially with a @setcounter@[!command,#] command so you could use custom command counters as stored variables.