
Patrick said:
I thought[[ 20 - @{extendedcrit} ]]wouldn't work within the conditional.
Math using RollID's don't work. An inline roll will. So you can do that, but you can't do [[ $Dmg1 + $Dmg2 ]].
Patrick said:
I thought[[ 20 - @{extendedcrit} ]]wouldn't work within the conditional.
There was an error communicating with the QuantumRoll server.
undefined
Patrick said:
There was an error communicating with the QuantumRoll server.
/* END FUNCTIONS /////////////////////////////////////////////////////////////// */Rather than
// END FUNCTIONS ///////////////////////////////////////////////////////////////I just spent the last hour or so tracking down a most obnoxious bug, the result of the concatenation logic building this construct:
// END FUNCTIONS ///////////////////////////////////////////////////////////////on('ready',function(){and throwing: SyntaxError: Unexpected token }
Patrick said:
I tried splitting the first block for weapon1 off into its own little script and on running it gave me the same API error.
--Weapon Slot|[[ [$W] ?{Weapon|@{meleeweaponname1},[[1]]|@{meleeweaponname2},[[2]]|@{meleeweaponname3},[[3]]|@{meleeweaponname4},[[4]]|@{meleeweaponname5},[[5]]|@{meleeweaponname6},[[6]]}+0d0]]... doesn't need the inline rolls in there. ?{Weapon|@{meleeweaponname1}, 1| etc. will work just fine and eliminates some inline rolls from the macro.
Patrick said:
http://pastebin.com/raw/SzzRTZaR
Silvyre said:
Feature/workaround request: to make it easier to use stuff like API/Ability Command Buttons / Markdown images with PowerCards, would it be possible to add --whisper|all to PowerCards? I know how silly that sounds, but it's an incredible pain to manually list the names of every player (which can easily change) on top of self and gm in order to be able to use those things with PowerCards.
Patrick said:
Silvyre, was the script able to output proper table data in your test?
SkyCaptainXIII said:
July 20th, 2016 ~ 9:00 am eastern
- Version: 3.2.20
- Link: gist.github.com/Sky-Captain-13/452330a3d926b32da49c
- Minor Update: Added --whisper|all per request from Silvyre. Script will send powercard to all online players only. I have no idea what would happen if it tried to whisper offline players as well. The script uses the _displayname attribute of the Player object to determine who to send the whisper to.
!power {{Taking 10 using Skill2 breaks the API.
--name|Skill
--$Hidden:|
?{Skill|Skill1,Skill1|Skill2,Skill2}
?{Take 10|Yes,10|No,1d20}
--?? ?{Skill} == Skill1 ??
Skill1:|
[[ ?{Take 10} + 1 ]]. --?? ?{Skill} == Skill2 ?? Skill2:| [[ ?{Take 10} + 1 [Modifier] ]]. }}
Could not determine result type of: [{"type":"M","expr":"1+9+floor((18-10)/2)"},{"type":"L","text":"DEX"},{"type":"M","expr":"+0"},{"type":"L","text":"Ranks"},{"type":"M","expr":"+3-3"},{"type":"L","text":"Class Skill"},{"type":"M","expr":"+0"},{"type":"L","text":"Bonus"}] undefinedBut this error means nothing, of course.
Arjuna said:
can I have the player click the macro but query the GM for the DC?
Sudain said:
Is there a way roll for crit confirmation and crit damage if a crit is threatened inside a powercard?
!power {{ --Attack|[[ [$Atk] 1d20 ]] --?? $Atk.base == 20 ?? Confirm| [[ [$Cfm] 1d20 ]] --?? $Atk.base == 20 AND $Cfm >= @{target|AC} ?? Crit| }}
Arjuna said:
I apologize if this has been answered already, but is there a functionality to direct a query? For example if I wanted to make a player macro that does a skill check, and I want it to show as failed or succeeded, can I have the player click the macro but query the GM for the DC?
Silvyre said:
Arjuna said:
can I have the player click the macro but query the GM for the DC?
Possibly the easiest way to do this is to set the DC as a value on a Token's Bar, and have the players' macros access that DC through an Attribute call targeting that Token.
Franky H. said:
Is it possible to have a power card display a prompt containing a roll, then loop depending on the answer?
EX: Prompt would read "Do you have the [[1t[powers]]] power?" Drop down would contain yes and no. If no, display a card that says "Player gained [result of the table roll]" If yes, loop the macro.
Arjuna said:
Does powercards include the functionality to edit character attributes?
--?? $Atk.base == 1 OR $Atk.total < @{npcd_ac}?? !Miss:|$$#ff0000|**Miss!**$$should be:
--?? $Atk.base == 1 OR $Atk.total < @{npcd_ac} ?? !Miss:|$$#ff0000|**Miss!**$$
Also it should be @{target|npc_ac} if you are using the 5e sheet, not sure if npcd_ac is an attribute? The same goes for the next line which does has the @{target... prefix in place.
Yeah, you can do that with just ?{What number was rolled|0}DM said:
I'm sure this has been in one of the 4 or 5 threads, but is there a way to have the powercard ask for a number instead of generating its own roll? My players are all in the same room as I. Plavers view on the TV and DM view on my laptop. Would like to use a power and insert the number the (I) rolled.
These cards are awesome by the way. Combining this with the old Monster Importer script should really speed up gameplay. Thanks for all the hard work.
Edit: Just realized how rude it is to say I know there are 4 or so threads but to ask the question without checking them. Will do first.
DM said:
Awesome. With your character/monster importer, I just replace the dice rolls with this. Looks like as long as its in this format, I can have the text say whatever. Very cool Thanks again.