RPTools.net

Discussion and Support

Skip to content

It is currently Fri May 24, 2013 5:01 am 




Forum rules


Discussion regarding lmarkus001's framework only. Other posts deleted without notice! :)



Reply to topic  [ 174 posts ]  Go to page Previous  1 ... 8, 9, 10, 11, 12

Previous topic | Next topic 

  Print view

Author Message
User avatar  Offline
Site Admin
 
Joined: Mon Jun 12, 2006 12:20 pm
Posts: 11622
Location: Tampa, FL
 Post subject: Re: [D&D3.5 + Pathfinder] MT1.3b86 Campaign Macros r01
PostPosted: Sat Aug 27, 2011 11:56 am 
Synchronicity wrote:
I understand that it still misses some things though. Great for mooks but not for PCs.

None of the statblock to token macros handle skills with multiple words in their names very well. Like Sleight of Hand, for example. The regex is split into multiple pieces and that makes it difficult to fix; that chunk of code will need to be replaced. I have had plans to do that for, oh, about 18 months now. ;)

It shouldn't be tough: read the system settings to find out what all skill names are, then build a regex that looks like "(name1|name2|name3|...)". Then the regex check becomes a single function call. (The regex above needs to be a little more complicated to handle optional punctuation.)

Also, the weapon section puts Slam attacks for unused weapon slots and I'd rather it fill in NA instead. But that's pretty minor.

A side problem is that some statblocks show the NPC or creature with various special effects already applied. Things like Rage affect AC, HP, Str, Con, and so on so the macro creates a token with those already applied. But in this FW it's better to use the base statistics and then apply the Rage modset. No good fix for this, I'm afraid. :| I just look for the base stats and keep those while deleting the others, but it can be a pain to get right.

_________________
Interested in Time Magazine's Best Invention of 2008 Unix-powered laptop? No crashes or lockups. In fact, that series of articles has two such machines. The other is a Dell netbook. :)


Top
 Profile  
 
 Offline
Great Wyrm
 
Joined: Tue May 26, 2009 7:51 pm
Posts: 2060
Location: Philadelphia, PA
 Post subject: Re: [D&D3.5 + Pathfinder] MT1.3b86 Campaign Macros r01
PostPosted: Sat Aug 27, 2011 2:13 pm 
Azhrei wrote:
A side problem is that some statblocks show the NPC or creature with various special effects already applied. Things like Rage affect AC, HP, Str, Con, and so on so the macro creates a token with those already applied. But in this FW it's better to use the base statistics and then apply the Rage modset. No good fix for this, I'm afraid. :| I just look for the base stats and keep those while deleting the others, but it can be a pain to get right.

Paizo does a pretty good job of adding a line that states this is the NPCs base statistics before these special things were applied(granted spells and such they do not break out, but Rage, Alchemists Mutagens, Lycanthrope...). My problem is that they don't do this for templates. They just apply the template with no info for the DM. Also, the macro works great for PCs as it knocks out 90% of making the token. All you then have to do is fix the little stuff like Craft/Knowledge/Perform/Profession skills, HeroLab imports strength is always jacked, Subtypes and alignment, i like having languages in the note field on the race tab, Special Attacks and Qualities and finally the big ones Attacks and Spells.


Top
 Profile  
 
 Offline
Kobold
 
Joined: Sat Nov 29, 2008 3:24 pm
Posts: 8
 Post subject: Re: [D&D3.5 + Pathfinder] MT1.3b86 Campaign Macros r01
PostPosted: Sat Aug 27, 2011 5:56 pm 
Lifer4700 wrote:
I started watching Imper1um's video, but it will only play the first 5 minutes out of 37+ if you don't run their exe...
It was enough to get me going, though.


Here is a link for the full video. Again, this is Imper1um's work. Helped me a lot. Let me know if you have issues with the link.
http://www.4shared.com/video/E-SkFLHm/M ... orial.html

I still haven't run a game yet with the framework. I have been using MapTool for about three years now but only for a local game. We used to use a projector setup with the Wii remotes and IR pens for token movement, but since some of my players moved we are looking to play online.

@Azhrei, I haven't tried using Statblock2Token 1.8, I have 1.6. I would like to give it a shot for PCs and NPCs. I have all of IPMarv's tokens so I got the creatures covered I think... Anyway, I seem to remember reading that you had retooled it but I could never find a link. Can you assist?

@Neofax, I also don't have Herolabs, I use TheOnlySheet+ but it isn't ideal for the statblock import. I looked at it some time back but didn't purchase. Maybe I will look at it again if it is the best way to handle imports. I have imported pathfinder stat blocks but since I don't know the framework that well I am not sure what may be missing. I appreciate you post and will look at it a further.

Anyway, big thanks to all who post in these forums. I almost never post but I do read, and the work you all do is much appreciated. Thanks again! :D


Top
 Profile  
 
User avatar  Offline
Site Admin
 
Joined: Mon Jun 12, 2006 12:20 pm
Posts: 11622
Location: Tampa, FL
 Post subject: Re: [D&D3.5 + Pathfinder] MT1.3b86 Campaign Macros r01
PostPosted: Sat Aug 27, 2011 11:54 pm 
Synchronicity wrote:
Anyway, big thanks to all who post in these forums. I almost never post but I do read, and the work you all do is much appreciated. Thanks again! :D

I agree! Lindsay put the FW together, plothos kickstarted the idea of a spell manager, wrathgon moved it to use JSON and added support for a lot of PF extras, aliasmask has tweaked it quite a bit, and neofax has cleaned up the packaging. If any of them weren't here to lend a hand, the FW wouldn't be nearly as good as it is.

I love this community. :)

Regarding the video, would you mind starting a new thread and linking to the video? Use a thread title that is meaningful so that newcomers will be able to find it. I'll Sticky the thread and Lock it. Burying the information in this thread probably isn't too useful.

_________________
Interested in Time Magazine's Best Invention of 2008 Unix-powered laptop? No crashes or lockups. In fact, that series of articles has two such machines. The other is a Dell netbook. :)


Top
 Profile  
 
 Offline
Kobold
 
Joined: Sat Nov 29, 2008 3:24 pm
Posts: 8
 Post subject: Re: [D&D3.5 + Pathfinder] MT1.3b86 Campaign Macros r01
PostPosted: Sun Aug 28, 2011 2:06 am 
Azhrei wrote:
Regarding the video, would you mind starting a new thread and linking to the video? Use a thread title that is meaningful so that newcomers will be able to find it. I'll Sticky the thread and Lock it. Burying the information in this thread probably isn't too useful.


Will do. Also, just noticed that your 1.8 Statblock2token is in Lindsay's latest rev on page 1. :oops: That's what I get for making the previous release my little pet!


Top
 Profile  
 
User avatar  Offline
Cave Troll
 
Joined: Thu Aug 25, 2011 2:17 pm
Posts: 48
 Post subject: Re: [D&D3.5 + Pathfinder] MT1.3b86 Campaign Macros r01
PostPosted: Mon Aug 29, 2011 8:53 am 
Thank you for the link Synchronicity! Downloading now.


On another note, I took the liberty of adding in the Double Slice feat, just to see how it would be done. I hope I got all the places that it would be needed. For those that are curious, here's what I did.

I had to modify two of the macros in Lib:libDnd35Pathfinder. editMain (CharacterSheet, yellow) and LibAttack (Combat, grey)




With editMain, there were three locations where I needed to add some script. I just looked for some other Pathfinder feat, and duplicated the lines. I chose AgileManuevers.


The first occurrence was near line 140.

Existing lines
Code:
   [H: tAgileManeuvers = getStrProp(Feats, "AgileManeuvers")]
   [H: tAgileManeuvers = if(tAgileManeuvers == "", getStrProp(getPropertyDefault("Feats"), "AgileManeuvers"), tAgileManeuvers)]
   [H: sysFeats = sysFeats + ' AgileManeuvers| ' + tAgileManeuvers +' |Agile Maneuvers Feat?|CHECK ##']

New lines, created immediately after
Code:
   [H: tDoubleSlice = getStrProp(Feats, "DoubleSlice")]
   [H: tDoubleSlice = if(tDoubleSlice == "", getStrProp(getPropertyDefault("Feats"), "DoubleSlice"), tDoubleSlice)]
   [H: sysFeats = sysFeats + ' DoubleSlice| ' + tDoubleSlice +' |Double Slice Feat?|CHECK ##']




The next was around line 250.
Before.
Code:
[H, IF(system == "Pathfinder"), CODE: {
    [H: Feats = setStrProp(Feats, "CriticalFocus", CriticalFocus)]
    [H: Feats = setStrProp(Feats, "AgileManeuvers", AgileManeuvers)]
    [H: Feats = setStrProp(Feats, "ImprovedChanneling", ImprovedChanneling)]
}]

After.
Code:
[H, IF(system == "Pathfinder"), CODE: {
    [H: Feats = setStrProp(Feats, "CriticalFocus", CriticalFocus)]
    [H: Feats = setStrProp(Feats, "AgileManeuvers", AgileManeuvers)]
    [H: Feats = setStrProp(Feats, "DoubleSlice", DoubleSlice)]
    [H: Feats = setStrProp(Feats, "ImprovedChanneling", ImprovedChanneling)]
}]


The last place was near line 335.
Existing.
Code:
    [H: output = output + if(tAgileManeuvers == AgileManeuvers, "", "   AgileManeuvers= " + AgileManeuvers + " (" + tAgileManeuvers + ") ")]

New.
Code:
[H: output = output + if(tDoubleSlice == DoubleSlice, "", "   DoubleSlice= " + DoubleSlice + " (" + tDoubleSlice + ") ")]




That took care of adding the feat itself. Next came adding the the functionality.
The feat allows two-weapon fighters to add in their full strength bonus for their off-hand weapon instead of half. So, I looked for the section where the damage bonus was calculated and changed it. But don't forget to add in a line that checks to see if the token HAS the feat, those are near the top.


Checking for the DoubleSlice feat on the token:

Existing.
Code:
[H: tManyShot = getStrProp(Feats, "ManyShot")]
[H: tManyShot = if(tManyShot == "", 0, tManyShot)]
[H: tCriticalFocus = getStrProp(Feats, "CriticalFocus")]
[H: tCriticalFocus = if(tCriticalFocus == "", 0, tCriticalFocus)]

[H: jCombat = json.get(PrivateJSON, "Combat")]
[H, IF( json.isEmpty( jCombat ) ): tMagicExtraAttack = 0; tMagicExtraAttack = json.get( jCombat, "magicExtraAttack" ) ]
[H, IF( !isNumber( tMagicExtraAttack ) ): tMagicExtraAttack = 0 ]


Modified.
Code:
[H: tManyShot = getStrProp(Feats, "ManyShot")]
[H: tManyShot = if(tManyShot == "", 0, tManyShot)]
[H: tCriticalFocus = getStrProp(Feats, "CriticalFocus")]
[H: tCriticalFocus = if(tCriticalFocus == "", 0, tCriticalFocus)]
[H, IF(system == "Pathfinder"), CODE: {
    [H: tDoubleSlice = getStrProp(Feats, "DoubleSlice")]
    [H: tDoubleSlice = if(tDoubleSlice == "", 0, tDoubleSlice)]
}]

[H: jCombat = json.get(PrivateJSON, "Combat")]
[H, IF( json.isEmpty( jCombat ) ): tMagicExtraAttack = 0; tMagicExtraAttack = json.get( jCombat, "magicExtraAttack" ) ]
[H, IF( !isNumber( tMagicExtraAttack ) ): tMagicExtraAttack = 0 ]





Giving full bonus, if so.

Before.
Code:
[H: dmgStatB = min(DmgBonusCap, if(TwoHanded == 1, Str2hB + if( Ranged == 1, 0, floor(paDMG*pa2H)), if(Primary == 2,floor( StrSecB + if( Ranged == 1, 0,(paDMG*paOffhand))),StrB + if( Ranged == 1, 0, paDMG))))]


After.
Code:
[H: dmgStatB = min(DmgBonusCap, if(TwoHanded == 1, Str2hB + if( Ranged == 1, 0, floor(paDMG*pa2H)), if(Primary == 2,floor( if(tDoubleSlice == 1,StrB,StrSecB) + if( Ranged == 1, 0,(paDMG*paOffhand))),StrB + if( Ranged == 1, 0, paDMG))))]





Works great!

If the token has the DoubleSlice feat, they get full strength bonus on each weapon, if they don't they get the normal full bonus on primary, and half on secondary.

My only concern is about non-Pathfinder campaigns... will the if(Doubleslice==1) section cause issue since it wouldn't be defined? If so, a test for system="Pathfinder" would have to be performed. Of course, would anyone NOT running Pathfinder add these lines?

_________________
I should change my profile name to Freddy because JSON and I don't quite get along yet.


Top
 Profile  
 
User avatar  Offline
Deity
 
Joined: Tue Nov 10, 2009 6:11 pm
Posts: 5305
Location: Bay Area
 Post subject: Re: [D&D3.5 + Pathfinder] MT1.3b86 Campaign Macros r01
PostPosted: Mon Aug 29, 2011 9:03 am 
Since the 2nd off hand attack is usually set up as a "Secondary" attack, a person with this feat would just make it a "Primary" attack to avoid the strength drop.

_________________
Downloads:


Top
 Profile  
 
User avatar  Offline
Cave Troll
 
Joined: Thu Aug 25, 2011 2:17 pm
Posts: 48
 Post subject: Re: [D&D3.5 + Pathfinder] MT1.3b86 Campaign Macros r01
PostPosted: Mon Aug 29, 2011 9:12 am 
Well, that just took all the fun out of it...

Code:
<sails wind=no></sails>


I suppose if I knew how to run the Framework/Macros properly, I could've saved myself a few hours of digging and coding! lol

It took me DAYS to figure out how to get the OOTB campaign setup with his two weapons to work properly in the first place!


Thanks for the input, you've forced me to re-think things for the better.
On to the next one!



EDIT:
If I did set up the 2nd weapon as a Primary, would the system still account for the -2/2 or -4/-4 or -6/-10 to hit for using two weapons?

_________________
I should change my profile name to Freddy because JSON and I don't quite get along yet.


Top
 Profile  
 
User avatar  Offline
Cave Troll
 
Joined: Thu Aug 25, 2011 2:17 pm
Posts: 48
 Post subject: Re: [D&D3.5 + Pathfinder] MT1.3b86 Campaign Macros r01
PostPosted: Mon Aug 29, 2011 9:55 am 
To answer my own question, yes.

Telling the FW that I'm using two weapons but they're both my 'primary' works properly with the To-Hit bonuses, and it gives the full Strength bonus to each.

Thanks again!

_________________
I should change my profile name to Freddy because JSON and I don't quite get along yet.


Top
 Profile  
 
Display posts from previous:  Sort by  
Reply to topic  [ 174 posts ]  Go to page Previous  1 ... 8, 9, 10, 11, 12

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:

Who is online

In total there is 1 user online :: 0 registered, 0 hidden and 1 guest (based on users active over the past 5 minutes)
Most users ever online was 243 on Sun Nov 04, 2012 6:14 am

Users browsing this forum: No registered users and 1 guest





Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group

Style based on Andreas08 by Andreas Viklund

Style by Elizabeth Shulman