Roll20 uses cookies to improve your experience on our site. Cookies enable you to enjoy certain features, social sharing functionality, and tailor message and display ads to your interests on our site and others. They also help us understand how our site is being used. By continuing to use our site, you consent to our use of cookies. Update your cookie preferences .
×
Create a free account

Need a little help on a T.A.S.

1558909600
SᵃᵛᵃǤᵉ
Sheet Author
API Scripter
So I am trying to automate the ST deficit for my melee weapon repeating rows. The esl value is not being calculated. // Update Lines on Melee on('change:repeating_melee remove:repeating_melee change:total_melee_mod', function () { TAS.repeating('melee') .attrs('total_melee_mod', 'current_strength') .fields('esl', 'skill', 'min_st', 'stdeficit') .each(function(r,a){ var deficit = a.I.current_strength - r.I.min_st; r.D[0].stdeficit = Math.max(0, deficit); r.D[0].esl = r.I.skill + r.I.stdficit + a.I.total_melee_mod; }) .execute(); });
1558909715
SᵃᵛᵃǤᵉ
Sheet Author
API Scripter
Annd I just found the problem.
1558918307
GiGs
Pro
Sheet Author
API Scripter
Care to share the solution, for others who have a similar problem and find your thread?
1558918416
SᵃᵛᵃǤᵉ
Sheet Author
API Scripter
Typo in last calculation. I got a bad "e" key that I didn't bang hard enough.