Revert "Changed autoscriptotherplayers() lookup prepension to -foreach instead of -per"

This reverts commit dbb416f93e3317814e0c5738147ffd004772b1b7.