PDA

View Full Version : Can macros in Fantasy Grounds ask for a variable?



fabiocm
September 4th, 2016, 01:47
I was trying to create a character sheet in a system not supported for the community and I was using the Core System for this. However, I'm needing to use the \rollon command to roll on a table that the name of the column is a variable (a number). Is'nt a way to make fantasy grounds ask for that number whenever I click on a macro like [/rollon [table name] -c] or something like this?

The exact situation: I created a table named TR. It have 20 columns, named from 1 to 20. Whenever the player rolls on table, it will need to roll on a different column. So, I would like to create a macro that, when clicked, would ask a number (the column name) and then show the results only for that column.

Is it possible?

damned
September 4th, 2016, 03:28
I dont believe you can prompt for a variable...

Andraax
September 4th, 2016, 17:22
You can create a table with multiple columns, then drag the die and drop it on a column. It will then roll on that column.

kylania
September 7th, 2016, 19:09
Just make multiple tables and have your main 1-20 table auto roll on the others? That's CoreRPG right and not just 5E I think?

Zacchaeus
September 7th, 2016, 19:19
To be honest I'm not entirely sure what the OP wanted to do. At any rate, yes, you can nest tables so that one will automatically roll on another. This might help (https://www.fantasygrounds.com/wiki/index.php/Tables), depending on what exactly is required.

fabiocm
September 22nd, 2016, 04:19
Thanks everyone.
This is the table. I would like to \rollon TR [column], but the [column] varies from attribute to attribute.
15426

Unfortunately I think there is no way to make it.

Andraax
September 22nd, 2016, 13:53
As I said in post #3, drag and drop the die on the column you want to roll on.

Trenloe
September 22nd, 2016, 15:38
Thanks everyone.
This is the table. I would like to \rollon TR [column], but the [column] varies from attribute to attribute.
15426

Unfortunately I think there is no way to make it.
The /rollon chat command is described here: https://www.fantasygrounds.com/wiki/index.php/Chat_Commands So, in your example you could use /rollon TR -c 1 to roll on column 1, /rollon TR -c 15 to roll on column 15, etc..

Can you provide more information on how you plan to use this within the Fantasy Grounds ruleset and what isn't working for you?

fabiocm
September 22nd, 2016, 17:21
Hello Trenloe. I know the /rollon command. I'll try to be more clear and explain with examples (I'm a bit limited with the english language).

My intention would be to use the statistic in the character sheet (a number) as the column for the resolution. So if, for instance, I have and ability called ride as 5, I would like to create a one-click macro to roll /rollon TR -c 5 direct from the character sheet. At same time, all modifiers would be applied to the column in the formula of /rollon as well. For example, a +3 modifier would mean to roll in the column 5+3=8, giving /rollon TR -c 8.

The other way I think would solve the problem would be to define a single generic macro that would prompt for a column, but I don't know if that is possible. So, the only way I can realize is to create a macro for each column, that is one macro expressed as /rollon TR -c 1, another /rollon TR -c 2, another /rollon TR -c 3 and so on... but 20 macros hotkeys is too much to handle.

Trenloe
September 22nd, 2016, 17:27
OK, thanks for clarifying. In release 3.2 (will be out soon after FG v3.2) of MoreCore (https://www.fantasygrounds.com/forums/showthread.php?23281-More-Core-extension-for-CoreRPG) you'll be able to do most of this (have chat slash commands within a character sheet). However, you won't be able to add the modifier to adjust the column number. That would need specific coding within an extension to do that.

fabiocm
September 22nd, 2016, 17:32
OK, thanks for clarifying. In release 3.2 (will be out soon after FG v3.2) of MoreCore (https://www.fantasygrounds.com/forums/showthread.php?23281-More-Core-extension-for-CoreRPG) you'll be able to do most of this (have chat slash commands within a character sheet). However, you won't be able to add the modifier to adjust the column number. That would need specific coding within an extension to do that.

Thanks! :) When will 3.2 be released?

Trenloe
September 22nd, 2016, 17:34
When will 3.2 be released?
Sometime after FG Con.

Nylanfs
September 22nd, 2016, 18:14
Soon(TM) (https://tvtropes.org/pmwiki/pmwiki.php/Main/RealSoonNow)

fabiocm
November 17th, 2016, 12:05
Hello.

Was More Core released along with FG 3.2.1? Slash commands within a character sheet are already working?

damned
November 17th, 2016, 12:20
Hola fabiocm

MoreCore isnt an official ruleset - its a community ruleset so you need to download it separately. You can find it here:
https://www.fantasygrounds.com/forums/showthread.php?34860-MoreCore-Ruleset
make sure you subscribe to that thread and/or check back regularly for updated versions.

You can view the basic user guide here: https://www.diehard-gaming.com/mchelp.html

And you can see a couple of basic themes that Ive made for MoreCore with some more to follow:
https://www.fantasygrounds.com/forums/showthread.php?35056-MoreCore-Themes

Have fun!

fabiocm
November 17th, 2016, 13:04
Thanks, I'll do this. ��