View Single Post
Pezmerga
Senior Member
 
Join Date: Oct 2010
Location: Cincinnati, OH
Posts: 328

Old December 21st, 2011, 03:59 PM
Quote:
Originally Posted by Mathias View Post
So the final abValue is 3, but according to the debug statements you added earlier, it's only 0 or 1 during the execution of that script

See - there's something else going on here that's interfering with the function of this script - keep looking for other scripts or other things that could be causing this.
I changed the timing to pre-levels 1000 and now it is only 2, which isn't right but it's closer...I don't think it needs to be post levels since it should just count each one taken. I may be wrong on that though.


If I run this it will show once in the output as:
Weapon Training: Pole Arms: added a training tag.

Code:
foreach pick in hero from BaseWep where wepexpr
            for i = 1 to tagbonus
              perform eachpick.assignstr[bonustag]
            next
          nexteach
debug eachpick.field[name].text & ": added a training tag"


If I try it directly under it doesn't show anything at all.
Such as:
Code:
foreach pick in hero from BaseWep where wepexpr
            for i = 1 to tagbonus
              perform eachpick.assignstr[bonustag]
debug eachpick.field[name].text & ": added a training tag"
            next
          nexteach

Last edited by Pezmerga; December 21st, 2011 at 04:01 PM.
Pezmerga is offline   #35 Reply With Quote