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

kingdom building delima

Hello all, I am helping out a GM with a pathfinder Kingdom building campaign.  For it, each kingdom almost needs its own sheet to track the data for the kingdom. And then there are a number of rolls that depend on the kingdom stats.  Most of the kingdom stats are dependent on a choice of stats for the character in specific roles. And here is where I get into challenges. Take economy for instance. It has a base value that changes during each new kingdom turn. Then the stats of a number of characters in certain roles add constant modifiers to the economy base value. Now I can write a macro that has something like this in it: {@{bob|int-mod},@{bob|wis-mod}}kh1 However the player in the roles can and will change. What I want to do is have attributes that are named for each role and I can copy the character's name into the value for that roll. Then I would like to do something like this: {@{@{Minister}|int-mod},@{@{Minister}|wis-mod}}kh1 Where the attribute Minister has the value of Bob. Now I know that does not work. But I was looking for some suggestions on how I could go about getting that effect. It may not be possible with the macro system as it is now. I can accept that. I wish I could have a separate character sheet assigned to it as I would most like to use the features of the character sheets to implement the Kingdom sheet. But the players need the character sheets for them and it seems I cannot have two different sheets in the game. I know of only one what to get what I want, but I was hoping for a simpler answer. I can always write an API script that will look for the kingdom sheets and rewrite the ability macros with the correct names. I can even put the call to the API in an ability macro so it would be easy to call the API. Again it will work, but I would rather find one of the other two options first. Does anyone here have any thoughts or have done any similar work for Pathfinder's Kingdom building rules? Thanks for your consideration and time.
1488821936

Edited 1488822001
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
You can use  roll queries for this. ?{Which player affecting|Tim,@{Tim|wis-mod}|Mark,@{Mark|wis-mod}}
If I knew ahead of time who would be replacing who, yes that would work. But I don't.
1488826349

Edited 1488830753
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
Right, but the point of doing the query is that you don't need to know ahead of time. You simply include all players as an option in the query. I also noticed that I missed part of your first post, you'll need advanced roll queries to do this with roll queries: Assuming players of Bob, Tim, and Mark the query would be made in your minister attribute (@{minister}) and would look like this: ?{Minister|Bob,@{Bob|int-mod},@{Bob|wis-mod}|Tim,@{Tim|int-mod},@{Tim|wis-mod}|Mark,@{Mark|int-mod},@{Mark|wis-mod}} And would be called like this: {@{Kingdom|minister}}kh1 While writing this, I did have another thought though. You could use your original idea of an attribute for each position, but instead of putting their name in it, you would put: @{Name|int-mod},@{Name|wis-mod} You would then write your macro to figure the economy to include this: {@{Kingdom|minister}}kh1 This would of course require you to go in and manually change the attribute each kingdom round. EDIT: realized that a previous edit or two had eaten my html encodings, have now fixed those in the query.
Torvawk K. said: {@{@{Minister}|int-mod},@{@{Minister}|wis-mod}}kh1 I suggest looking into Scott's solution, but this actually can be made to work .
1488830825
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
Silvyre said: Torvawk K. said: {@{@{Minister}|int-mod},@{@{Minister}|wis-mod}}kh1 I suggest looking into Scott's solution, but this actually can be made to work . I always forget you can use the order of operations to do that.
Scott, Acutally, I just got something to work but it turns out minister needs to be an ability, not an attribute. And you are right, the order of operations was key here. So, I have an ability that I added called Minister and all it has in it is Bob. My macro now looks like this: {@{%{Kingdom Sheet|Minister}|int-mod},@{%{Kingdom Sheet|Minister}|wis-mod}}kh1 This so works too. The %s resolve first putting Bob in place when the @s are resolved!! Now if Bob gets outed by at new player call James. I just change the Minister ability macro to James.
1488854199
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
Hmm, bookmarking this thread since I'm compiling a list of things that the order of operations wiki has incorrect.
Clever workaround! And, thanks Scott!