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

AD&D 2e revised, repeated_weapons

Hi, we use the "full" ad&d 2e character sheet . We have problems with AD&D 2e repeating weapons rolls. In fact, we have no problems when we want to access attributes , orders as work as expected : @{selected|repeating_weapons_$1_weaponname} or @{selected|repeating_weapons_$1_attacknum} or @{selected|repeating_weapons_$1_ThaC0} or the same orders with $0 or $2 $0 output is related with second weapon, $1 with third  and so. (The first weapon is not referenced with repeating_weapons, they are referenced directly with weaponname, attacknum, Thac0 and so) But we have problems when we try to call rolls. Orders like: %{selected|repeating_weapons_$0_hit1} or %{selected|repeating_weapons_$1_hit1} or  %{selected|repeating_weapons_$2_hit1} and %{selected|repeating_weapons_$0_init} or %{selected|repeating_weapons_$1_init} or %{selected|repeating_weapons_$2_init} all of them give outputs related with the first weapon in list, not the one refered with $X. Any idea please? Thanks
Hi Jordi L. I use that sheet in many games -- and never noticed that -- until you just brought it my attention. But I just tested it and you are correct. they do call the initial buttons value. Try writing macros that do not call the button but rather the value of the box it represents. Most of my macros usually do not try to call the die button to generate them. Mine usually call the value of the box that it represents. @{repeating_weapons_ $X _weapspeed}  would call the “Ini button” value  and the same with the “Hit Button” just calling @{ThAC0} usually works in normal macros. Unfortunately  that sheet currently has no person that is responsible  for the coding, to make the adjustments needed. There is another work around for it though, if you so choose to use this method. You will need to get the button ID number, then you can easily access it... substitute the " $X " for the button ID #... Stupid Roll20 Tricks You can find it in this thread + a ton more of stuff. Or just PM me, and I might be able to walk you through it...
1550784093

Edited 1550784218
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
I'd need to look at the sheet code, which will take a bit for me to have time to check, but I would guess that the attribute names for the non repeating weapon and the repeating weapons are the exact same. This shouldn't be done as when you call the repeating weapon from outside the repeating weapon (such as %{repeating_weapon_$0_hit1}), the sheet can't differentiate between the repeating version of the attribute and the non repeating attribute. Really, that non repeating weapon should just be removed and the whole section should be done via repeating items only.
If you plan to look things over Scott C. Please hit me up... There are things I would like to change on a permanent level. I have changed them in my games where I have the sheet code (HTML & CSS) But fail to understand a few other changes I would like...
1550798998

Edited 1550799015
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
Unfortunately, I just don't have the time to take on another project. I can take a look at the code and confirm that's the issue here, but someone else is going to have to do the updating.
Hi Thaks a lot for your help. Scott, as you say I think the error is at : line 1458, col 614, where @{weaponname} has to be @{repeating_weapons_$X_weaponname} (hit roll) line 1463, col 276, where @{weaponname} has to be @{repeating_weapons_$X_weaponname} (init roll) And as you say too, it's illogical  to have non-repeating and repeating parameters mixed, it's confusing. I cannot help more than this... Thanks