RPTools.net

Discussion and Support

Skip to content

It is currently Thu Nov 23, 2017 11:00 pm 




Forum rules


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



Reply to topic  [ 100 posts ]  Go to page Previous  1 ... 3, 4, 5, 6, 7

Previous topic | Next topic 

  Print view

Author Message
 Offline
Great Wyrm
 
Joined: Tue May 26, 2009 7:51 pm
Posts: 2060
Location: Philadelphia, PA
 Post subject: Re: PFS Campaign framework
PostPosted: Mon Apr 25, 2011 7:26 pm 
Here is the fix for the Young Template:

Code:
<!-- 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]


Top
 Profile  
 
 Offline
Dragon
 
Joined: Sat Dec 22, 2007 5:37 pm
Posts: 358
 Post subject: Re: PFS Campaign framework
PostPosted: Mon Apr 25, 2011 7:36 pm 
That worked. Thank you!!


Top
 Profile  
 
 Offline
Kobold
 
Joined: Tue May 17, 2011 1:23 pm
Posts: 2
 Post subject: Re: PFS Campaign framework
PostPosted: Tue May 17, 2011 2:32 pm 
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!


Top
 Profile  
 
 Offline
Great Wyrm
 
Joined: Tue May 26, 2009 7:51 pm
Posts: 2060
Location: Philadelphia, PA
 Post subject: Re: PFS Campaign framework
PostPosted: Tue May 17, 2011 5:50 pm 
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 12:52 pm, edited 1 time in total.

Top
 Profile  
 
 Offline
Kobold
 
Joined: Tue May 17, 2011 1:23 pm
Posts: 2
 Post subject: Re: PFS Campaign framework
PostPosted: Wed May 18, 2011 12:10 pm 
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!


Top
 Profile  
 
 Offline
Kobold
 
Joined: Sun May 03, 2009 1:34 pm
Posts: 11
 Post subject: Re: PFS Campaign framework
PostPosted: Tue Jul 26, 2011 6:41 pm 
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)


Top
 Profile  
 
 Offline
Great Wyrm
 
Joined: Tue May 26, 2009 7:51 pm
Posts: 2060
Location: Philadelphia, PA
 Post subject: Re: PFS Campaign framework
PostPosted: Tue Jul 26, 2011 6:47 pm 
I bet this happens when you are in initiative? If so, in the initiative un-check the "Lock Movement" and this should work.


Top
 Profile  
 
 Offline
Kobold
 
Joined: Sun May 03, 2009 1:34 pm
Posts: 11
 Post subject: Re: PFS Campaign framework
PostPosted: Tue Jul 26, 2011 6:59 pm 
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!


Top
 Profile  
 
User avatar  Offline
Great Wyrm
 
Joined: Fri Mar 28, 2008 11:30 pm
Posts: 1870
Location: Layfayette Hill, PA
 Post subject: Re: PFS Campaign framework
PostPosted: Tue Jul 26, 2011 9:07 pm 
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.

_________________
D&D3.5 / Pathfinder Framework


Top
 Profile  
 
 Offline
Giant
 
Joined: Sun Sep 16, 2007 11:25 pm
Posts: 169
 Post subject: Re: PFS Campaign framework
PostPosted: Sun Oct 09, 2011 3:19 pm 
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!"


Top
 Profile  
 
Display posts from previous:  Sort by  
Reply to topic  [ 100 posts ]  Go to page Previous  1 ... 3, 4, 5, 6, 7

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 are 2 users online :: 1 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: Sereptus and 1 guest





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

Style based on Andreas08 by Andreas Viklund

Style by Elizabeth Shulman