Is this function available?
Moderators: dorpond, trevor, Azhrei
Forum rules
PLEASE don't post images of your entire desktop, attach entire campaign files when only a single file is needed, or generally act in some other anti-social behavior.
PLEASE don't post images of your entire desktop, attach entire campaign files when only a single file is needed, or generally act in some other anti-social behavior.
Is this function available?
So, there is power function. You can put 2^3 in your equation and you will get 8. Is there something that does the opposite? Something that gives you 2 to what power is 8? Nothing is on the parser page. I need this to make a range penalty figurer macro.
View MapTool video tutorials at RPToolsTutorials.net
True. A table will work. Thanks.
I see how to use the table in a Global macro, but is there a way to call a specific value of a table with a Token macro?
I see how to use the table in a Global macro, but is there a way to call a specific value of a table with a Token macro?
View MapTool video tutorials at RPToolsTutorials.net
A logarithm of X to base B can be calculated if any logarithm function is available. The formula is log(X) / log(B), where log() can be base 10 logarithm, or the natural logarithm, or any other. Most function libraries will provide either log() to calculate base 10 logarithms and ln() for natural logarithms.Phergus wrote:That would be log base 2. Which I don't believe the parser does.
- jfrazierjr
- Deity
- Posts: 5176
- Joined: Tue Sep 11, 2007 7:31 pm
Giliath, I know I for one would love you forever if you were to include some way to have a variable roll expression:giliath wrote:I added support for the Math function log and ln into the parser. The next version of MapTool will be released with the new parser.
xd6 where x is either a property OR a prompted variable. At this point, something like 4E fighter power Brute Strike has to be done manually in the macro's instead of using a property since in the case in point, the fighter is using a weapon that rolls 2d6 instead of a single dice and this power does 3[W] which translates to 3(2d6) which turns into 6d6 damage.....
Joe
I save all my Campaign Files to DropBox. Not only can I access a campaign file from pretty much any OS that will run Maptool(Win,OSX, linux), but each file is versioned, so if something goes crazy wild, I can always roll back to a previous version of the same file.
Get your Dropbox 2GB via my referral link, and as a bonus, I get an extra 250 MB of space. Even if you don't don't use my link, I still enthusiastically recommend Dropbox..
Get your Dropbox 2GB via my referral link, and as a bonus, I get an extra 250 MB of space. Even if you don't don't use my link, I still enthusiastically recommend Dropbox..
- UntoldGlory
- Great Wyrm
- Posts: 1649
- Joined: Sun Mar 16, 2008 8:12 pm
You can. 4d6 is just a short form of roll(6, 4), so you can put variables or prompting expressions in that.
Does that solve what you need?
I may have the order of parameters inverted.
Does that solve what you need?
I may have the order of parameters inverted.
Code: Select all
Try roll(4, 6) for 4d6 instead.
Last edited by giliath on Mon Jul 21, 2008 12:40 pm, edited 1 time in total.
~Giliath
- jfrazierjr
- Deity
- Posts: 5176
- Joined: Tue Sep 11, 2007 7:31 pm
That is part of it. part 1 is using a variable expression to say how many of X dice needs to be rolled as you state above. part 2 is how many times to roll expression x:giliath wrote:You can. 4d6 is just a short form of roll(6, 4), so you can put variables or prompting expressions in that.
Does that solve what you need?
x[d20+1+2+0] where x is prompted for and the entire expression is rolled x times
d20+1+2+0 => 14+1+2+0 = 17
d20+1+2+0 => 18+1+2+0 = 21
d20+1+2+0 => 7+1+2+0 =10
Also, I just tried the whole roll(x,y) thing inside [] and was told I was a cheater....heh... not exactly what I expected...
I save all my Campaign Files to DropBox. Not only can I access a campaign file from pretty much any OS that will run Maptool(Win,OSX, linux), but each file is versioned, so if something goes crazy wild, I can always roll back to a previous version of the same file.
Get your Dropbox 2GB via my referral link, and as a bonus, I get an extra 250 MB of space. Even if you don't don't use my link, I still enthusiastically recommend Dropbox..
Get your Dropbox 2GB via my referral link, and as a bonus, I get an extra 250 MB of space. Even if you don't don't use my link, I still enthusiastically recommend Dropbox..
Thanks giliath, that will be very helpful.giliath wrote:I added support for the Math function log and ln into the parser. The next version of MapTool will be released with the new parser.
View MapTool video tutorials at RPToolsTutorials.net