Page 7 of 7

Re: PFS Campaign framework

Posted: Mon Apr 25, 2011 8:26 pm
by neofax
Here is the fix for the Young Template:

Code: Select all

<!-- Young Template -->
[H: assert( isGM(), "<b>" + getMacroName() + "</b> is a GM only macro.", 0 )]
[H: cancel = input( "Warning|This will permanently alter the selected token, are you certain you wish to continue?||LABEL|SPAN=TRUE" )]
[H: abort( cancel ) ]
[H: output = "<html>
<b>Young Creature (CR -1)</b><br>
Creatures with the young template are immature specimens of the base creature. <br>
Rebuild Rules: <b>Size</b> decrease by one category; <b>AC</b> reduce <b>natural armor</b> by -2; <b>Attacks</b> decrease damage dice by 1 step; <b>Ability Scores</b> -4 to Strength, -4 to Constitution and +4 to Dexterity.<br>
<table>
                <thead>
                                Young Creature Abilities
                </thead>
                <tbody>
                                <tr>
                                                <th>Ability</th><th>Bonus</th>
                                </tr>
                                <tr>
                                                <td>Strength</td><td>-4</td>
                                </tr>
                                <tr>
                                                <td>Constitution</td><td>-4</td>
                                </tr>
                                <tr>
                                                <td>Dexterity</td><td>+4</td>
                                </tr>
                                <tr>
                                                <td>Intelligence</td><td>+0</td>
                                </tr>
                                <tr>
                                                <td>Wisdom</td><td>+0</td>
                                </tr>
                                <tr>
                                                <td>Charisma</td><td>+0</td>
                                </tr>
                </tbody>
</table>"]
[H: Levels = getProperty("Levels")]
[H: tECL = getStrProp(Levels, "ECL") ]
[H: CRs = "1/8,1/6,1/4,1/3,1/2,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,49,49,50"]
[H: newCR = listGet(CRs,max(0,listFind(CRs,tECL) - 1))]
[H: Levels = setStrProp(Levels, "ECL", newCR) ]

[H, MACRO("LibEnlargeReduce@Lib:libDnD35Pathfinder"): "Shrink=1; modType=1;"]
[H: tNaturalMod = getStrProp(ArmorClass, "NaturalMod")]
[H: tNaturalMod = if( tNaturalMod == "", 0, tNaturalMod )]
[H: ArmorClass =  setStrProp(ArmorClass, "NaturalMod", tNaturalMod - 2)]
[H: tStrength = getProperty("Strength")]
[H: tStrength = if( tStrength == "", 0, tStrength - 4 )]
[H: setProperty("Strength", tStrength)]
[H: tDexterity = getProperty("Dexterity")]
[H: tDexterity = if( tDexterity == "", 4, tDexterity + 4 )]
[H: setProperty("Dexterity", tDexterity)]
[H: tConstitution = getProperty("Constitution")]
[H: tConstitution = if( tConstitution == "", 0, tConstitution - 4 )]
[H: setProperty("Constitution", tConstitution)]

[H: label = getLabel() ]
[H: label = if(label=="", "(Young)", label + " (Young)") ]
[H: setLabel(label) ]
[H: HP = HPmax ]
[H: tToken = currentToken() ]
[H, MACRO( "subUpdateHPStatesBars@Lib:libDnD35Pathfinder" ): "Token=" + tToken]
[H, MACRO( "subRecalcAC@Lib:libDnD35Pathfinder" ): "Token=" + currentToken() ]

[H: output = output + "Str: "+Strength+", Dex: "+Dexterity+", Con: "+Constitution+", Int: "+Intelligence+", Wis: "+Wisdom+", Cha: "+Charisma+"<br>"]
[H: output = output + getName()]
[H: output = output + " Restored to Full Health.<br><b>Young Template applied!</b></html>"]
[G: output]

Re: PFS Campaign framework

Posted: Mon Apr 25, 2011 8:36 pm
by Elorebaen
That worked. Thank you!!

Re: PFS Campaign framework

Posted: Tue May 17, 2011 3:32 pm
by shandrakor
neofax wrote:Sorry! I have updated the system macros to the new version. Here is the link: PFS_B82Core01.
That link looks to be dead now too.

Thanks in advance!

Re: PFS Campaign framework

Posted: Tue May 17, 2011 6:50 pm
by neofax
Try this updated version, or wait for a week as I am adding in the onTokenMove teleports/traps/wards that wolph42 made. I have the traps added in to run like PF traps using perception to automatically roll the skill check and displaying the damage. I am working on stopping the token before entering the trap square and auto-applying damage if the skill check failed. Here is the link: PFS-B82Core01

Re: PFS Campaign framework

Posted: Wed May 18, 2011 1:10 pm
by shandrakor
neofax wrote:Try this updated version, or wait for a week as I am adding in the onTokenMove teleports/traps/wards that wolph42 made. I have the traps added in to run like PF traps using perception to automatically roll the skill check and displaying the damage. I am working on stopping the token before entering the trap square and auto-applying damage if the skill check failed. Here is the link: PFS-B82Core01
That seems to be the same link I was getting a 404 on yesterday. I'm in no rush, though. I'm happy to wait for whatever you get together in a week.

Again, thanks so much!

Re: PFS Campaign framework

Posted: Tue Jul 26, 2011 7:41 pm
by Scottbert
I started to win some people over to maptool with your framework, but now we cannot move our tokens anymore, because this happens and will not go away:


java.lang.NullPointerException
at net.rptools.maptool.client.tool.PointerTool.mouseDragged(PointerTool.java:660)
at java.awt.AWTEventMulticaster.mouseDragged(Unknown Source)
at java.awt.Component.processMouseMotionEvent(Unknown Source)
at javax.swing.JComponent.processMouseMotionEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at net.rptools.maptool.client.swing.MapToolEventQueue.dispatchEvent(MapToolEventQueue.java:38)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)

Re: PFS Campaign framework

Posted: Tue Jul 26, 2011 7:47 pm
by neofax
I bet this happens when you are in initiative? If so, in the initiative un-check the "Lock Movement" and this should work.

Re: PFS Campaign framework

Posted: Tue Jul 26, 2011 7:59 pm
by Scottbert
Before you replied, it also happened at:
at net.rptools.maptool.client.tool.PointerTool.mouseMoved(PointerTool.java:585)

If this gives any clues as to the reason.

That said, unchecking lock movement worked and our game session can continue! (Though we have no idea how it got checked in the first place) Thanks, neofax!

Re: PFS Campaign framework

Posted: Tue Jul 26, 2011 10:07 pm
by lmarkus001
Those errors are unrelated to the framework, they are from a core MapTool bug. That bug has been in the past several releases (all release candidates have it). A fix might be in the upcoming b87.

Re: PFS Campaign framework

Posted: Sun Oct 09, 2011 4:19 pm
by DrAwkward
I've noticed a bug from the original framework, it's still in this one.

* Any weapon with greater than /x2 muliplier doesn't correctly add the bonuses to the third and further crit damage rolls.
* Burst weapon damage is rolling higher than the dice.

For example:
MapTool Output wrote:DMG: 18 + 6 Acid, 14 + 6 Acid . . . CRIT! (swing# 1) -> 20 + 10 + 24 Acid
The third attack is rolling "10" on a d8+12, and the burst is rolling 24 on 2d10.