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

GURPS ability calls and callable table assistance needed

Greeting everyone, since I was last on the forums my knowledge base has expanded exponentially thanks to you all. so I will post what I have currently, and what scripts I currently have running. I am using the powercards API script from The Aaron which is working beautifully and I have created ability buttons for various attacks. We are using the first of the two GURPS character sheets available, but I have a few questions/issues. First off here is the current ability that I have written: !power --emote|@{selected|token_name} hurls a pick at @{target|foe|Token_Name} --name|Pickaxe (thrown) --leftsub|Ranged --rightsub|Main Hand --Roll vs Skill|%{Pelgar the Rolling Boulder|repeating_ranged_-KdYu0RRL6hmNKmej84t_vsSL} --Damage|%{Pelgar the Rolling Boulder|repeating_ranged_-KdYu0RRL6hmNKmej84t_damage} --Damage Type|Impailing -- This attack does x2 damage after Damage Reduction now this is working as written but it's still ugly: You can see in the above example that I am having to reference the roll icon on the character sheet to get my results. What I would like it to perform is with 3 lines of numbers without all that extra text in there. but when I try to reference that cell on the sheet instead of a "result" it just shows what was typed into the ability. I would like one number showing the modified(modifier to be chosen at the time of using the ability as this will vary.) skill level, the second number being the result of the regular 3d6 roll, and the final number to be the damage calculation from the character sheet. So, now if this wasn't complicated enough GURPS has a range/speed table that will determine part of your modifier. I would also like to include a modifier selection spot on the Skill level that would reference a table. I am having trouble figuring out how to create a table that when you type your range it would give the modifier for that range. I am attempting to do this for all of my players but it is slow going since I have to do each character sheet individually. Below you will find a screen shot of the table that I am needing to create and make callable. any assistance or insight into these questions/issues would be appreciated.
1499043767
Silvyre
Forum Champion
Adras said: I am having trouble figuring out how to create a table that when you type your range it would give the modifier for that range. I am attempting to do this for all of my players but it is slow going since I have to do each character sheet individually. Below you will find a screen shot of the table that I am needing to create and make callable. Try this out: Modifier: [[ {3,5,7,10,15,20,30,50,70,100,150,200,300,500,700,1000,1500,2000,3000,5000}<?{Yards|3} ]]
@ silvrye oh wow that's awesome, now if only I could figure out how to implement that into the roll. right now with the above ability it does not appear possible.
1499044582
Silvyre
Forum Champion
I'm not familiar with the GURPS sheet, but you should be able to add + [[ {3,5,7,10,15,20,30,50,70,100,150,200,300,500,700,1000,1500,2000,3000,5000}<?{Yards|3} ]] to the repeating ranged attack's damage field on the Character Sheet.
yeah, unfortunately the modifier for range reduces skill level, and I have not found a way to aces that on the sheet. even digging through the HTML on the sheet itself.
1499045307
Silvyre
Forum Champion
Try adding - [[ {3,5,7,10,15,20,30,50,70,100,150,200,300,500,700,1000,1500,2000,3000,5000}<?{Yards|3} ]] to the skill section of the attack.
I tried that: !power --emote|@{selected|token_name} hurls a pick at @{target|foe|Token_Name} --name|Pickaxe (thrown) --leftsub|Ranged --rightsub|Main Hand --Roll vs Skill|%{Pelgar the Rolling Boulder|repeating_ranged_-KdYu0RRL6hmNKmej84t_vsSL} - [[ {3,5,7,10,15,20,30,50,70,100,150,200,300,500,700,1000,1500,2000,3000,5000} ok so that give me this:
what I would like is instead of showing the -5, I would like it to automatically deduct the number from the skill. I tried to pout it in the { } but I got error outputs instead.
1499048295
Silvyre
Forum Champion
I meant within the repeating ranged attack's skill field on the Character Sheet:
yeah when i try the attr_level, it error out. this is where I am having the biggest issue. that is exactly where I need assistance at.
wait I didn't fully look at that. give me a moment
ok almost perfect. how do I get it to not show the -1? because it did deduct from the skill properly but that -1 will be confusing.
oh here's what I have: 20-[[ {3,5,7,10,15,20,30,50,70,100,150,200,300,500,700,1000,1500,2000,3000,5000} that's what's on the skill level line
weird it does have the double bracket at the end, but it's not pasting into here
1499053642
Silvyre
Forum Champion
Try this: [[ 20 - [[{3,5,7,10,15,20,30,50,70,100,150,200,300,500,700,1000,1500,2000,3000,5000}<?{Yards|3}]] ]]
that works, but it still posts the third number unfortunately.
wait, nevermind, I made a mistake. at least on the range portion. I'm hoping someone can assist me with getting the attr_level working.
so when I try this: !power --emote|@{selected|token_name} hurls a pick at @{target|foe|Token_Name} --name|Pickaxe (thrown) --leftsub|Ranged --rightsub|Main Hand --Roll vs Skill|%{Pelgar the Rolling Boulder|repeating_ranged_-KdYu0RRL6hmNKmej84t_attr_skill} --Damage|%{Pelgar the Rolling Boulder|repeating_ranged_-KdYu0RRL6hmNKmej84t_damage} --Damage Type|Impailing -- This attack does x2 damage after Damage Reduction I get this:
1499089530

Edited 1499089553
Silvyre
Forum Champion
Attribute calls use @; Ability calls use %. @{Pelgar the Rolling Boulder| repeating_ranged _-KdYu0RRL6hmNKmej84t_ skill }
here is the html where I'm pulling the referenced cells on the character sheet. the red arrows are for the clickable button, the green are for the field where you input skill and damage on the sheet. so currently I am having to use the buttons instead of the input field.which is the opposite of what I would like to do.
awesome, thanks. that did it. I figured it was something small I was missing.
well ok I take that back. but I'm definitley making progress, Thanks!
ok so when I do it that way, here is what the output looks like: this is what I currently have now:  !power --emote|@{selected|token_name} buries his Thrusting Greatsword home into @{target|foe|Token_Name} --name|Thrusting Greatsword (Swung) --leftsub|Melee --rightsub|Two Handed --Effective Skill Level|@{Pelgar the Rolling Boulder|repeating_ranged_-KdYu0RRL6hmNKmej84t_skill} --Roll|[[3d6cs<6cf>2]] --Damage|@{Pelgar the Rolling Boulder|repeating_melee_-KdXKl0m3x4II8ZCrw7l_damage} --Damage Type|Cutting -- This attack does 1.5 damage after Damage Reduction Unfortunately it is not modifying the skill # nor is it actually rolling the damage. I tried adding a /r into the mix but that did not provide any output except for the e-mote.
ok sorry after thinking about it for a couple moments I realized I needed to add the double brackets to it.
Finally success!!
1499093145
Silvyre
Forum Champion
Nicely done!
here's the final output: and the macro : !power --emote|@{selected|token_name} hurls a pick at @{target|foe|Token_Name} --name|Pickaxe (thrown) --leftsub|Ranged --rightsub|Main Hand --Effective Skill Level|[[@{Pelgar the Rolling Boulder|repeating_ranged_-KdYu0RRL6hmNKmej84t_skill}-{3,5,7,10,15,20,30,50,70,100,150,200,300,500,700,1000,1500,2000,3000,5000}<?{Yards|3}?{Additional Modifier|0}]] --Roll|[[3d6cs<6cf>2]] --Damage|[[@{Pelgar the Rolling Boulder|repeating_ranged_-KdYu0RRL6hmNKmej84t_damage}]] --Damage Type|Impailing -- This attack does x2 damage after Damage Reduction
Thanks so much for your assistance Silvyre!!
1499102898
Silvyre
Forum Champion
You're very welcome! Happy rolling!