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 .
×

Attack Script not working right

I have this character "That which was Marlene" from a purchased scenario from Roll20.  When I click the attack "Claw or Bite" in the character sheet, everything works correctly.  So, I decided to make a simple token action for this attack by copying the script (arrow up-and copy) and create the token action on the character sheet.  Seemed simple enough; however when I run the attack from the token action button, it doesn't perform right.  Rolled values that should be a success are being marked as failure. Not sure if this doesn't work right. Using a Delta Green scenario and the official Delta Green character sheet--it came with the scenario I believe. Script; @{That Which Was Marlene|gm_toggle} &{template:fancy-rolls} {{name=@{That Which Was Marlene|character_name}}} {{dice=[[[[1d100]]]]}} {{header=Claw or bite}} {{subheader=75}} {{rating=[[75]]}} {{modifier=[[0]]}}  {{low_willpower=[[0]]}}  {{zero_willpower=[[0]]}} {{isCritical=[[0]]}} {{isSuccess=[[0]]}} {{advanced_weapons=[[0]]}}{{wammo=0}}{{damage= [1D4+2](~-NQl0KndIylI1hgjgp7a|repeating_weapons_-nql0cdzrdqb6mvovqod_damage-action)}}{{voiddamage= [1D4+2](~-NQl0KndIylI1hgjgp7a|nothing)}}{{damage_critical= [(1D4+2)×2](~-NQl0KndIylI1hgjgp7a|repeating_weapons_-nql0cdzrdqb6mvovqod_damage_critical-action)}}{{voiddamage_critical= [(1D4+2)×2](~-NQl0KndIylI1hgjgp7a|nothing)}} Any help?   There seems to be some odd references distributed in the script that keeps changing--starts with NQl0.
1770943687
Gauss
Forum Champion
Hi Pandarian,  Some sheets use a lot of sheetworker processing before the information is entered into the template. Additionally, it looks like yours is using commands.  I could take a look at the sheet but it would be easier if I took a look at your character instead. Could you PM me an invite? 
Gauss said: Could you PM me an invite?  Sent you a PM in discord...let me know if you need anything else specific...
1770947732

Edited 1770947777
Gauss
Forum Champion
For anyone following, the Delta Green sheet uses sheetworker logic before passing the template to the chat. As a result you cannot recreate the template in the chat and expect it to work.  However, if you dig into the HTML you can find the command code.  Instructions for that:  In the Attributes and Abilities tab create an Ability.  Name it whatever you want.  In the body put:  %{@{character_name}|repeating_weapons_INPUTCODEHERE_weapons-action} Next, go back to the Character Sheet tab and find your attack button. Right click on attack button in the blank space to the right of the name. Make sure you do not right click on the name of the button.   In the menu that appears, click "Inspect".  A line of HTML code will be highlighted. In the highlighted line will be a section of code we need. It will look like this:  -nql0cdzrdqb6mvovqod Click on that code to highlight it, then copy (Ctrl+C) Go back to the Attributes and Abilities tab, edit the Ability macro you made earlier. Replace "INPUTCODEHERE" with the code that looks like: -nql0cdzrdqb6mvovqod Close and test the Ability macro. Note: the code you are grabbing will give you the "Shift+button click" output which pops a query. It is not the button click without the query. 
@Gauss, Just a heads up, this seems to work for weapons, but not skills.
1771124310
Gauss
Forum Champion
Pandarian said: @Gauss, Just a heads up, this seems to work for weapons, but not skills. I thought I mentioned that I was only doing weapons. Skills would be another command that I'd have to pull up.