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

TokenAction for Pathfinder 1E?

Has anyone modified the TokenAction script to work with Pathfinder 1E? I love the idea of adding attacks, spells, etc to the token options macro bar so easily. If not, is there another simple way to do so?
1670731118

Edited 1670731172
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Hi Ao! I'm the current author of that script*, and I currently have no plans to do so. It required a lot of Frankenstein-like coding to shoehorn in PF2, and I did it primarily at the request of Roll20 to allow it to be used in the production of modules. I don't know PF1 very well, and I would almost certainly make errors and flounder a lot. If somebody wanted to fork a copy, specifically for PF1 (and there have been other enquiries), that would get my blessing, and I would be happy to answer any questions. I don't know of any simple way to do so, unfortunately. *I adapted it from a much older script by a user named Kevin
I may play around, but for me it would be quite trial-and-error based, but I thank you for your blessing and availability to advise!
1670776037

Edited 1670776117
Kraynic
Pro
Sheet Author
You might want to check out the Universal Chat Menu script/mod, which is only available on the forums. The script is in the second post, so you just copy/paste the code from there to a new mod/script in your api settings page. <a href="https://app.roll20.net/forum/post/7474530/script-call-for-testers-universal-chat-menus/?pagenum=1" rel="nofollow">https://app.roll20.net/forum/post/7474530/script-call-for-testers-universal-chat-menus/?pagenum=1</a> I may have made minor changes since posting this, but the basic setup I have is listed on this post of that thread (assuming you are using the Pathfinder by Roll20 character sheet): <a href="https://app.roll20.net/forum/post/7474530/script-call-for-testers-universal-chat-menus/?pageforid=8931160#post-8931160" rel="nofollow">https://app.roll20.net/forum/post/7474530/script-call-for-testers-universal-chat-menus/?pageforid=8931160#post-8931160</a> One advantage to using this mod/script is that once you figure out how to use it, you can set it up for just about any sheet.&nbsp; There are quite a few examples in that thread.
1670782277
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Thanks Kraynik! I totally forgot to recommend UCM. It's an excellent alternative.
Kraynic! This is so fantastic and serves my purposes perfectly! I am playing around to try and adjust something and ending up with issues every time (either throwing off formatting or somehow getting code rather than what I want). Perhaps you can help. I am using the NPC code from this page (the second link you shared) and would like to insert Feats/Traits from that page into the NPC output without disrupting the formatting and after spells/before saves. Any ideas? Also, is there any way to easily add clickable CMB right after Feats, right before saves?
Oh, and any idea on getting resistances and immunities to show up there?
1670876424

Edited 1670877781
Ao
Pro
For those who are wondering, I got what I wanted mostly working with UCM. For NPC Code, I am using the following slight revision of Kraynic's version, but I cannot figure out how to get the CMB to roll on click. Any help? !chatmenu @{selected|character_id} {template:pc} {{charname=@{selected|character_name}}} {{type=ability}} {{smallname=NPC MENU}} {{showchar=[1]}} {{descflag=1}} {{desc=CHATMENU **Defense Statistics** AC @{selected|ac} |Touch @{selected|ac_touch} |Flat-Footed @{selected|ac_flatfooted} |CMD @{selected|cmd_mod} |SR @{selected|sr} Resistance @{selected|resist} }} {{shownotes=[1]}} {{notes=**- Fort:**@{selected|fortitude_notes} |**Ref:**@{selected|reflex_notes} |**Will:**@{selected|will_notes} |**AC:**@{selected|ac_notes} |**CMD:**@{selected|cmd_notes} |**SR:**@{selected|sr_notes}|**Defensive Abilities:**@{selected|defensive_abilities}|**DR:**@{selected|npc_dr}}} --title:Melee Attacks --separator:~ --repeating_npcatk-melee|atkname|attack --title:Ranged Attacks --repeating_npcatk-ranged|atkname|attack --title:Special Attacks --repeating_npcatk-special|atkname|attack --title:CMB --@{selected|cmb_mod} --title:Spell Like and Items --separator:~ --repeating_spell-like|spelldisplay|spell --title:Cantrips and Orisons --separator:~ --repeating_spell-0|spelldisplay|spell --title:Level 1 --repeating_spell-1|spelldisplay|spell --title:Level 2 --repeating_spell-2|spelldisplay|spell --title:Level 3 --repeating_spell-3|spelldisplay|spell --title:Level 4 --repeating_spell-4|spelldisplay|spell --title:Level 5 --repeating_spell-5|spelldisplay|spell --title:Level 6 --repeating_spell-6|spelldisplay|spell --title:Level 7 --repeating_spell-7|spelldisplay|spell --title:Level 8 --repeating_spell-8|spelldisplay|spell --title:Level 9 --repeating_spell-9|spelldisplay|spell --title:Feats --separator:~ --repeating_feats|name|feat --title:Features and Traits –repeating_abilities|name|trait --title:Saves --Fort(@{selected|fortitude}),fortitude --Ref(@{selected|reflex}),reflex --Will(@{selected|will}),will
1670973338
Kraynic
Pro
Sheet Author
If you are trying to insert a roll that has a set name, you need to use the same syntax as the saving throws at the end.&nbsp; --Fort(@{selected|fortitude}),fortitude Everything between the -- and , is the title that you click on.&nbsp; In that example, I have their fortitude bonus showing as part of the title.&nbsp; The bit after the , is the name of the button in the html.&nbsp; The easiest way to get this is to look at the wiki article for this sheet.&nbsp; The wiki article specifies how you can dynamically call roll buttons using the %{selected|rollbuttonnamehere} syntax.&nbsp; So, if they list the button you need, you can easily find the exact button name as specified in the html.&nbsp; The article (and relevant section) is here: <a href="https://wiki.roll20.net/Pathfinder_Official#Dynamic_Reference_to_Rolls" rel="nofollow">https://wiki.roll20.net/Pathfinder_Official#Dynamic_Reference_to_Rolls</a> So, it looks like you would want npc_cmb.&nbsp; That means your button would need to be something like this: --CMB(@{selected|cmb_mod}),npc_cmb I have not tested this, but that should work to trigger that roll.
Thank you, Kraynic! You not only led me to water, but helped explain how each section worked to help me drink. You are an asset to the forums and game community! (And it worked, btw!)