Multiple skillchecks with one Macro
Moderators: dorpond, trevor, Azhrei, giliath, Gamerdude, jay, Mr.Ice, lmarkus001
Forum rules
Discussion regarding lmarkus001's framework only. Other posts deleted without notice!
Discussion regarding lmarkus001's framework only. Other posts deleted without notice!
- fuleng6021
- Cave Troll
- Posts: 29
- Joined: Wed Oct 01, 2008 3:45 pm
Multiple skillchecks with one Macro
I am using the pathfinder framework for my Kingmaker game. I want to have a single Macro were a Character can make all exploration relevant skillchecks with one click.
How can I add the final skill value from a character ( the one in white colour and grey backround from the Character sheet) to a Macro. Sry unfortunately I have no knowledge of JSON functions.
Thanks.
How can I add the final skill value from a character ( the one in white colour and grey backround from the Character sheet) to a Macro. Sry unfortunately I have no knowledge of JSON functions.
Thanks.
Re: Multiple skillchecks with one Macro
There is a button in the GM portion of the Campaign frame(IIRC) that allows you to run 1 skill for the button. Just copy that button over to the players selection frame and change the variable to add a 1. i.e. tSkillCheck to tSkillCheck1 Then copy the code as many times as you want changing the variable and it will roll the appropriate skills for you. If you post what skills you want rolled, I can whip it up fast for you, but I am going to the movies shortly.
- fuleng6021
- Cave Troll
- Posts: 29
- Joined: Wed Oct 01, 2008 3:45 pm
Re: Multiple skillchecks with one Macro
Thx for the Quick answer. But this always asks for tempBonus, take 20 and secret. I just need a plain check. One click, 5 checks without further Input.
- IMarvinTPA
- Dragon
- Posts: 467
- Joined: Mon Sep 11, 2006 10:12 am
- Contact:
Re: Multiple skillchecks with one Macro
There is a parameter for the macro:fuleng6021 wrote:Thx for the Quick answer. But this always asks for tempBonus, take 20 and secret. I just need a plain check. One click, 5 checks without further Input.
doInput
Code: Select all
<!-- HARD CODE DESIRED SKILL IN targSkill AND targSubcat -->
<!-- SAMPLE SKILLS LIST: Appraise,Balance,Bluff,Climb,Craft,Concentration,Decipher Script,Diplomacy,Disable Device,Disguise,Escape Artist,Forgery,Gather Information,Handle Animal,Heal,Hide,Intimidate,Jump,Knowledge,Listen,Move Silently,Open Lock,Perform,Profession,Ride,Search,Sense Motive,Sleight of Hand,Speak Language,Spellcraft,Spot,Survival,Swim,Tumble,Use Magic Device,Use Rope,Acrobatics,Fly,Linguistics,Perception,Stealth -->
[H: targSkill = "Perception" ]
[H: targSubcat = "" ]
<!-- DO NOT MODIFY BELOW THIS LINE -->
[MACRO("LibDedicatedSkillCheck@Lib:libDnD35Pathfinder"): json.set( json.set( "", "targSkill", targSkill ), "targSubcat", targSubcat, "doInput", 0 ) ]
IMarv
- fuleng6021
- Cave Troll
- Posts: 29
- Joined: Wed Oct 01, 2008 3:45 pm
Re: Multiple skillchecks with one Macro
so if I delete the "doinput" from the Macro it will no longer ask for TempBonus,take and secret?
so will this work?
edit
.. sry forget what i wrote
thanks
so will this work?
edit
.. sry forget what i wrote
thanks
- fuleng6021
- Cave Troll
- Posts: 29
- Joined: Wed Oct 01, 2008 3:45 pm
Re: Multiple skillchecks with one Macro
still have a problem
the code:
i only get results for the first skillcheck, but no further
the code:
Code: Select all
[H: targSkill = "Perception" ]
[H: targSubcat = "" ]
<!-- DO NOT MODIFY BELOW THIS LINE -->
[MACRO("LibDedicatedSkillCheck@Lib:libDnD35Pathfinder"): json.set( json.set( "", "targSkill", targSkill ), "targSubcat", targSubcat, "doInput", 0 ) ]
[H: targSkill1 = "Survival" ]
[H: targSubcat = "" ]
[MACRO("LibDedicatedSkillCheck@Lib:libDnD35Pathfinder"): json.set( json.set( "", "targSkill", targSkill1 ), "targSubcat", targSubcat, "doInput", 0 ) ]
Re: Multiple skillchecks with one Macro
Here you go:
This WILL NOT work for Craft/Knowledge/Perform or Profession skills. I would have to spend some time to figure that out.
Code: Select all
<!-- HARD CODE DESIRED SKILL IN targSkill AND targSubcat -->
<!-- SAMPLE SKILLS LIST: Appraise,Balance,Bluff,Climb,Craft,Concentration,Decipher Script,Diplomacy,Disable Device,Disguise,Escape Artist,Forgery,Gather Information,Handle Animal,Heal,Hide,Intimidate,Jump,Knowledge,Listen,Move Silently,Open Lock,Perform,Profession,Ride,Search,Sense Motive,Sleight of Hand,Speak Language,Spellcraft,Spot,Survival,Swim,Tumble,Use Magic Device,Use Rope,Acrobatics,Fly,Linguistics,Perception,Stealth -->
[H: targSkill = "Perception, Survival" ]
[H: targSubcat = "" ]
<!-- DO NOT MODIFY BELOW THIS LINE -->
[FOREACH(i, targSkill), CODE:
{
[MACRO("LibDedicatedSkillCheck@Lib:libDnD35Pathfinder"): json.set( json.set( "", "targSkill", i ), "targSubcat", targSubcat, "doInput", 0 ) ]
}]
- fuleng6021
- Cave Troll
- Posts: 29
- Joined: Wed Oct 01, 2008 3:45 pm
Re: Multiple skillchecks with one Macro
Thank you very much.
But what do i wrong. just copied the code and it only gives results for perception
But what do i wrong. just copied the code and it only gives results for perception
Re: Multiple skillchecks with one Macro
I do not know. I just ran it with 7 different skills(took a couple seconds), but all of them showed in chat. Granted they are all on the same line, which you could fix by changing the FOREACH to:
Code: Select all
[FOREACH(i, targSkill, "<BR />"): CODE:
- fuleng6021
- Cave Troll
- Posts: 29
- Joined: Wed Oct 01, 2008 3:45 pm
Re: Multiple skillchecks with one Macro
would you be so kind to post your complete code.
I must have done something wrong. It just will not work. Fortunately for me my player did not much exploring in this kingmaker session. they were busy with the bandit problem.
I must have done something wrong. It just will not work. Fortunately for me my player did not much exploring in this kingmaker session. they were busy with the bandit problem.
- lmarkus001
- Great Wyrm
- Posts: 1867
- Joined: Sat Mar 29, 2008 12:30 am
- Location: Layfayette Hill, PA
Re: Multiple skillchecks with one Macro
This performs a Sense Motive, Perception, and Knowledge(arcana) check in one macro and does not prompt for input. If you want to prompt for input just once, you would have to do that in this macro and feed the relevant data to the various parameters like inputTempBonus and inputSecret.
UPDATE: This supports skills that have subcategories like Knowledge, Profession, Craft, Perform. But the targSubcat variable needs a value for every targSkill entry (a blank value is fine, see the example).
NOTE: The macro will abort if a selected token does not have one of the requested skills, which can happen frequently in the case of Knowledge, Profession, Craft, Perform.
UPDATE: This supports skills that have subcategories like Knowledge, Profession, Craft, Perform. But the targSubcat variable needs a value for every targSkill entry (a blank value is fine, see the example).
NOTE: The macro will abort if a selected token does not have one of the requested skills, which can happen frequently in the case of Knowledge, Profession, Craft, Perform.
Code: Select all
<!-- HARD CODE DESIRED SKILL IN targSkill AND targSubcat -->
<!-- SAMPLE SKILLS LIST: Appraise,Balance,Bluff,Climb,Craft,Concentration,
Decipher Script,Diplomacy,Disable Device,Disguise,Escape Artist,Forgery,
Gather Information,Handle Animal,Heal,Hide,Intimidate,Jump,Knowledge,
Listen,Move Silently,Open Lock,Perform,Profession,Ride,Search,Sense Motive,
Sleight of Hand,Speak Language,Spellcraft,Spot,Survival,Swim,Tumble,
Use Magic Device,Use Rope,Acrobatics,Fly,Linguistics,Perception,Stealth -->
[H: targSkill = "Sense Motive, Perception, Knowledge" ]
[H: targSubcat = ",,Arcana" ]
<!-- DO NOT MODIFY BELOW THIS LINE -->
[FOREACH(i, targSkill, "<br>"), CODE:
{
[H: tIdx = listFind(targSkill, i)]
[H: tSubcat = listGet(targSubcat, tIdx) ]
[MACRO("LibDedicatedSkillCheck@Lib:libDnD35Pathfinder"): json.set( json.set( "", "targSkill", i ), "targSubcat", tSubcat, "doInput", 0, "inputSecret", 0, "inputTempBonus", 0, "inputTake", 0 ) ]
}]
Re: Multiple skillchecks with one Macro
Hey
I adjusted ("inputSecret", 0") to ("inputSecret", 1") but the players see i made a check, just not the result... any idea of a fix?
Glock
I adjusted ("inputSecret", 0") to ("inputSecret", 1") but the players see i made a check, just not the result... any idea of a fix?
Glock
---
Glock-9mm (Wgtn, NZ)
Shooting from the hip... Never the lip!
Glock-9mm (Wgtn, NZ)
Shooting from the hip... Never the lip!
- lmarkus001
- Great Wyrm
- Posts: 1867
- Joined: Sat Mar 29, 2008 12:30 am
- Location: Layfayette Hill, PA
Re: Multiple skillchecks with one Macro
Is that the exact text? The extra quotes would be an issue. Correct code:Glock-9mm wrote:Hey
I adjusted ("inputSecret", 0") to ("inputSecret", 1") but the players see i made a check, just not the result... any idea of a fix?
Glock
Code: Select all
[MACRO("LibDedicatedSkillCheck@Lib:libDnD35Pathfinder"): json.set( json.set( "", "targSkill", i ), "targSubcat", tSubcat, "doInput", 0, "inputSecret", 1, "inputTempBonus", 0, "inputTake", 0 ) ]
An inelegant but functional workaround is add "/self " to the start of the macro you use to do the check. That won't share it with GMs though. "/gm" will share it with GMs. What this does not cover is having a player roll sending the result to the GM and not letting the player know what they rolled.