PFS Campaign framework

Discussion concerning lmarkus' campaign framework for D&D3.x and Pathfinder.

Moderators: Azhrei, dorpond, trevor, giliath, Gamerdude, jay, Mr.Ice, lmarkus001

Forum rules
Discussion regarding lmarkus001's framework only. Other posts deleted without notice! :)
neofax
Great Wyrm
Posts: 1694
Joined: Tue May 26, 2009 8:51 pm
Location: Philadelphia, PA
Contact:

Re: PFS Campaign framework

Post 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("[email protected]: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( "[email protected]:libDnD35Pathfinder" ): "Token=" + tToken]
[H, MACRO( "[email protected]: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]

Elorebaen
Dragon
Posts: 364
Joined: Sat Dec 22, 2007 5:37 pm

Re: PFS Campaign framework

Post by Elorebaen »

That worked. Thank you!!

shandrakor
Kobold
Posts: 3
Joined: Tue May 17, 2011 2:23 pm

Re: PFS Campaign framework

Post 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!

neofax
Great Wyrm
Posts: 1694
Joined: Tue May 26, 2009 8:51 pm
Location: Philadelphia, PA
Contact:

Re: PFS Campaign framework

Post 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
Last edited by neofax on Sun May 29, 2011 1:52 pm, edited 1 time in total.

shandrakor
Kobold
Posts: 3
Joined: Tue May 17, 2011 2:23 pm

Re: PFS Campaign framework

Post 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!

Scottbert
Kobold
Posts: 12
Joined: Sun May 03, 2009 2:34 pm

Re: PFS Campaign framework

Post 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)

neofax
Great Wyrm
Posts: 1694
Joined: Tue May 26, 2009 8:51 pm
Location: Philadelphia, PA
Contact:

Re: PFS Campaign framework

Post 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.

Scottbert
Kobold
Posts: 12
Joined: Sun May 03, 2009 2:34 pm

Re: PFS Campaign framework

Post 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!

User avatar
lmarkus001
Great Wyrm
Posts: 1862
Joined: Sat Mar 29, 2008 12:30 am
Location: Layfayette Hill, PA

Re: PFS Campaign framework

Post 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.

DrAwkward
Giant
Posts: 139
Joined: Mon Sep 17, 2007 12:25 am
Contact:

Re: PFS Campaign framework

Post 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.
A good friend will bail you out of jail.
A great friend will be in the cell with you, saying "That was frickin awesome!"

Post Reply

Return to “[D&D3.5 + Pathfinder] Campaign Macros”