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

StatusInfo for Starfinder using Starfinder for roll20 character sheet template

I enabled the StatusInfo API Script for my starfinder game.  Although I love it, it is not designed for Starfinder for roll20 sheets and only a few of the statuses activate the "Conditions" section of the character sheet.  Configuring the Conditions in the script works for adding the status markers to a token only. I dont want to re-invent the wheel here, but that might be the solution.  Hopefully someone here can help me. I wanted to create a drop down menu to handle adding and removing the status makers and changing the condition attribute on the character sheet.  I cannot seem to wrap my head around having 2 (or more) api scripts execute for a single option. Futhermore, since chatsetattr does not cleanly allow me to alter an attribute from 0 to 1 if it is 0 and 1 to 0 if it is 1 in one command, it seems I need another nested layer to query if I am adding or removing the status markers(s) and condition(s) Has anyone attempted this kind of action?  Is there something much easier that I could be doing instead?  I have spend several days reading forums, wiki, and searching youtube but so far my efforts have managed to confuse me quite a lot the commands I am trying to embed are: !token-mod -- set statusmarkers|!sleepy !setattr --sel --asleep|1 !setattr --sel --asleep|0 I know I need to change the "|", "}", "," characters to the HTML code but I am getting very lost in the nesting and how to execute multiple api commands for one option in the menu
You can try the following: Token Mod: !token-mod ?{Status|Concentrating, --set statusmarkers#!stopwatch|Readying, --set statusmarkers#!stopwatch|-, |Blinded, --set statusmarkers#!bleeding-eye --flip light_hassight|Charmed, --set statusmarkers#!broken-heart|Deafened, --set statusmarkers#!edge-crack|Frightened, --set statusmarkers#!screaming|Grappled, --set statusmarkers#!grab|Invisibility, --set statusmarkers#!ninja-mask|Incapacitated, --set statusmarkers#!interdiction|Paralyzed, --set statusmarkers#!pummeled|Petrified, --set statusmarkers#!frozen-orb|Poisoned, --set statusmarkers#!chemical-bolt|Prone, --set statusmarkers#!back-pain|Restrained, --set statusmarkers#!fishing-net|Stunned, --set statusmarkers#!fist|Unconscious, --set statusmarkers#!sleepy|-, |Blessed, --set statusmarkers#!angel-outfit|Raging, --set statusmarkers#!overdrive|Marked, --set statusmarkers#!archery-target|-, |Dead, --set statusmarkers#=dead|-, |Clear Conditions, --set statusmarkers#-bleeding-eye#-broken-heart#-edge-crack#-screaming#-grab#-pummeled#-aura#-chemical-bolt#-back-pain#-fishing-net#-fist#-frozen-orb#-interdiction#-sleepy#-ninja-mask#-dead|Clear All, --set statusmarkers#-bleeding-eye#-broken-heart#-edge-crack#-screaming#-grab#-pummeled#-aura#-chemical-bolt#-back-pain#-fishing-net#-fist#-frozen-orb#-interdiction#-sleepy#-ninja-mask#-angel-outfit#-overdrive#-blue#-stopwatch#-archery-target#-dead} Chatsetattr: !setattr --sel --silent --?{Condition Name:|asleep|bleeding|blinded|burning|confused|cowering|dazed|dazzled|dead|deafened|dying|encumbered|entangled|exhausted|facinated|fatigued|flat-footed|frigthened|grappled|helpless|nauseated|off-kilter|off-target|overburdened|panicked|paralzed|pinned}|?{toggle on or off|off,0|on,1} You can combine this into one macro just make sure they are separate lines. You will get 3 query's one for the condition for token mod, one for chatset attribute and the value to turn on or off. Its not ideal and should work.  Couple of things to keep in mind if you are creating these as global macro the nesting can get broken if you open it up after you have saved it. Its best to run them from a macro mule character sheet where its stored in the attributes tab.  Another thing you didn't mention which statusinfo api you were using and I am assuming you are using Robin's from the one click in stall. That one is older and no longer being updated. You might want to check out CombatMaster that combines both robins combat tracker and status info api's but has many more added features. Its worth checking out. CombatMaster can be setup to trigger api's to on condition to trigger things like chatsetattr and more. 
Thanks for the help.  I'll write that up with my conditions and markers for my campaign and try it.   I have read a little about ComabatMaster and was unsure whether I should try it or not, but I think I may load it and give it a look too.
no problem CombatMaster is meatier, and take a bit to figure out but its worth having the ability to customize certain things.
1610497429

Edited 1610497453
Oosh
Sheet Author
API Scripter
Wayde G. said: Futhermore, since chatsetattr does not cleanly allow me to alter an attribute from 0 to 1 if it is 0 and 1 to 0 if it is 1 in one command, it seems I need another nested layer to query if I am adding or removing the status markers(s) and condition(s) That bit is actually pretty easy: !setattr --charid @{selected|character_id} --attrName|[[1-@{selected|attrName}]] If it's 0, 1-0 = 1. If it's 1, 1-1 = 0.