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

Accessing sheet "buttons" from repeating fields outside of the sheet?

1402054302

Edited 1402055489
G.
Sheet Author
Hey, Let's say I got a repeating fieldset defined as "repeating_weapon". Then in that fieldset I define a button with a macro called "roll_damage" How do I make a nesting macro outside of the sheet to access say entries 1 through 3? I tried "%{selected|repeating_weapon_0_damage}" but unlike the attribute entries, that doesn't seem to work. Any idea? As a note, the reason would be for GMs to make generic global macros accessible without the sheet open that could still access some of the sheet macros within fieldsets, which would be insanely handy for handling monsters and NPCs. Cheers.
@{selected|repeating_weapon_0_damage} not % @ = field % = ability # = macro I think that's how it works, at least. -Phnord PS: Note that you can't (currently) activate the button this way, this only provides access to the information.
1402055419

Edited 1402055753
G.
Sheet Author
That works for attributes (fields) indeed but not for macros/abilities and I don't think it's officially supported yet or something. " roll_damage" is an ability/macro however. Since it's nested (via Selected), the wiki mentions using % instead of # but can't get it to work proper. As a note, %{selected|check_ST} works just fine but "roll_check_ST" isn't within a fieldset. Edited: Phnord Prephect said: PS: Note that you can't (currently) activate the button this way, this only provides access to the information. Hmm, that's only for fieldsets though right? Because you can activate (whatever that means) buttons that are not within a fieldset.
Yeah, my apologies, I misunderstood your question... It's my understanding that any button in a repeating field cannot be activated other than actually pressing the button in the character sheet. I missed the part where you were talking about a button, which is funny because that's, like, the whole point of your post. And yes, you can activate non-fieldset buttons externally. What I would do is make a button, then repeat the action of the button in a field that can be macro'd, if you feel you need both. -Phnord
1402061034
G.
Sheet Author
Well, that's a shame if that's the case and not just me screwing up the syntax somehow :) Tried a couple alternatives, like storing the the value of whatever the button would do into a hidden field, putting select list with repeating fieldset and whatnot, but auto-calc doesn't store the actual values anywhere so that's bust, and you can't retrieve fieldset variables within fieldset variables from outside the fieldset either. For now, I just went with grabbing the actual values from the row instead of the macro value, no big deal I guess, just big ass macro :) Cheers.
1402094131
Nibrodooh
Pro
Sheet Author
the pathfinder sheet update that got pushed today is a good example of a way to do this: the repeating weapons have a macro field, wich is what the button calls, so you can call the macro-text field and it will act as if it was the button. i haven't seen any other sheets use this method, but i'm only familiar with a few of them so it may be a thing that is common
You are basically going to have to recreate the macro that is on the sheet either as a character ability or as a global macro. Token abilities work better imo.
1402120318
G.
Sheet Author
Thanks fellas, @Nibrodooh: Yea I tried that but in the end, you can't just copy/paste that field because it's lacking the indexes of the row within the repeating field so you still have to make the macros manually. @Michael P: Looks like it and works just fine, just big ass macros and I don't think calling the repeating fields values is officially "supported" for now though Riley D. mentioned he'd look into it. As a note: holy crap! I thought my GURPS Style 2 sheet might a bit too big and complicated but man, if this is the pathfinder sheet, then my sheet is lightweight and simple compared to that! :)
I really love sam's sheet, but my GM style for roll20 has been that of automation for basic attacks. I made my own to suit my style needs, as I don't have need for all the dice rolling. I let my scripts handle all the roll work. I really think it brings more immersion to the table top aspect. So far my test group has really enjoyed them.
1402123711
G.
Sheet Author
Yea it all started as a Sheet for myself as well (with specific needs since it's GURPS, not easy to handle, and I play text only, which brings requirements of it's own as well) but figured I might as well push it out there since I quite liked it. I'm still not 100% convinced by the concept of Character Sheet, especially since most of them out there are just copy/paste of actual Character Sheets rather than Sheets for roll20 (ie: useless information at the top, useful information requiring you to scroll up and down, etc) but the more I tweak them around, the more I see what they can offer, especially once you start pulling nested macros from them. Anyway, cheers again.
1402153254
Sam M.
Pro
Sheet Author
What the sheets offer is being able to find that one attribute you rarely use but kinda need right now in a timely fashion.