PPhPP


Pathfinder First Edition General Discussion


PPhPP : Long for Pathfinder PhP Project.

As you may or may not have known from my past posts, I've been working on a php program to make calculations easy for character creation and progression. It allows you, at a glance, to see easily if something like Power Attack is right for your character... Admittedly, only with "full round" attacks (or combos, such as the Gather Power + Kinetic Blast of a Kineticist). I was using it to compare my Kineticist to other classes, since I found the Kineticist to be far more powerful in play than other players did.

The reason for this post is to see if anyone wants to expand on this project or not. The classes are written, though addendums will be needed for feats and classes I haven't tested, and the character creation is relatively easy (and will be made even easier as time progresses). You can see the results (ignore the House Rules stuff, we play differently than most people :P) here: http://gryphynx.eu.pn/Campaign/

Here is a quick sample of what creating a character looks like currently:

2-Weapon Warrior:

<?php

define( "HOUSERULES", true );
include_once("characterClass.php");
$level = ( $_POST['level'] ? $_POST['level'] : 1 );

$character = new character();
$character->DEBUG = $_POST["debug"] == "false" || ! $_POST["debug"] ? false : 0;
$character->set_str(10);
$character->set_con(14);
$character->set_dex(20);
$character->set_int(12);
$character->set_wis(8);
$character->set_cha(8);

$character->race = "Human";
$character->class = "Two Weapon Fighter";

$character->set_level($level);
$character->babProgression = 1; // Full BAB, 2 = 3/4, 3 = 1/2
$character->set_hitDie(10);
for($x=0;$x<20;$x++) $character->levelUp_HP($x);

// Level Up (Level Gained, Value) //
$character->dexterity->levelUp( 3, 2);
$character->strength->levelUp( 4, 2);
$character->dexterity->levelUp( 5, 2);
$character->strength->levelUp( 8, 2);
$character->dexterity->levelUp( 9, 2);
$character->strength->levelUp( 10, 2);
$character->constitution->levelUp( 13, 2);
$character->dexterity->levelUp( 14, 2);
$character->strength->levelUp( 15, 2);
$character->constitution->levelUp( 18, 2);
$character->dexterity->levelUp( 19, 2);
$character->constitution->levelUp( 20, 2);

$character->fortitude->goodSave = true;
$character->willpower->bonus = floor( ($level+2)/4 ); // Bravery
$character->AC->dodge += floor( ($level+1)/4 ); // Defensive Flurry

$weapAbilities = array();
if( $level >= 6 ) $weapAbilities[] = "Impervious";
if( $level >= 7 ) $weapAbilities[] = "Agile";
if( $level >= 14 ) $weapAbilities[] = "Dueling";
if( $level >= 17 ) $weapAbilities[] = "Fortuitous";
if( $level >= 10 ) $weapAbilities[] = "Adamantine";
$armAbilities = array();
if( $level >= 7 ) $armAbilities[] = "Balanced";
if( $level >= 10 ) $armAbilities[] = "Restful";
if( $level >= 16 ) $armAbilities[] = "Righteous";
if( $level >= 18 ) $armAbilities[] = "Invulnerability";
if( $level >= 4 ) $armAbilities[] = "Mithral";

$enhancement = ( $level >= 3 ? floor( 1 + ($level-6)/3 ) : 0 ); // House Rule

$rapier = new weapon();
$rapier->set_name( "Rapier" );
$rapier->add_dicePool( 1, 6, true );
if( $level >= 13 ) $rapier->add_dicePool( 2, 6 ); // Bane Baldric
$rapier->set_light();
$rapier->set_enh( $enhancement );
$rapier->set_abilities( $weapAbilities );
$rapier->set_crit( 18, ($level >= 20 ? 3 : 2 ) ); // Weapon Mastery
$rapier->set_bonusToHit( ( $level >= 11 ? 1 : 0 ) + ( $level >= 15 ? 1 : 0 ) + ( $level >= 13 ? 2 : 0 ) ); // Improved Balance and Perfect Balance
$rapier->add_bonusToHit( floor( ($level-1)/4 ) ); // Twin Blades

$character->add_weapon( $rapier );
$rapier->set_primary();
$character->add_weapon( $rapier );

$character->add_armour( "Silken Ceremonial Gown", 1, 100 );

$character->add_feat(1, "Two Weapon Fighting");
$character->add_feat(1, "Weapon Finesse");
$character->add_feat(1, "Double Slice");
$character->add_feat(2, "Dodge");
$character->add_feat(3, "Weapon Focus", "Rapier");
$character->add_feat(4, "Weapon Specialization", "Rapier");
$character->add_feat(5, "Mobility");
$character->add_feat(6, "Improved Two Weapon Fighting");
$character->add_feat(7, "Combat Reflexes");
$character->add_feat(8, "Improved Critical");
$character->add_feat(9, "Greater Weapon Focus", "Rapier");
$character->add_feat(10, "Combat Patrol");
$character->add_feat(11, "Greater Two Weapon Fighting");
$character->add_feat(12, "Greater Weapon Specialization", "Rapier");
$character->add_feat(13, "Two Weapon Rend");
$character->add_feat(14, "Pin Down");
$character->add_feat(15, "Critical Focus");
$character->add_feat(16, "Bleeding Critical");
$character->add_feat(17, "Crippling Critical");
$character->add_feat(18, "Critical Mastery");
$character->add_feat(19, "Penetrating Strike");
$character->add_feat(20, "Greater Penetrating Strike");

$character->add_special( 3, "Defensive Flurry" );
$character->add_special( 5, "Twin Blades" );
$character->add_special( 9, "Doublestrike" );
$character->add_special( 11, "Improved Balance" );
$character->add_special( 13, "Equal Opportunity" );
$character->add_special( 15, "Perfect Balance" );
$character->add_special( 17, "Deft Doublestrike" );
$character->add_special( 19, "Deadly Defense" );

$character->add_gear(1, implode(", ", $armAbilities ) . ( count($armAbilities) ? " " : "" ) . "Chainshirt" );
$character->add_gear(1, "2x " . implode(", ", $weapAbilities ) . " Rapier");
$character->add_gear(13, "Bane Baldric" );

$character->setup();

echo $character->pretty_layout();
echo "<hr>";
?>

Places where you see comments (//) are things I still plan to implement into the character class.

Currently you'd need at least a smidging of php understanding to make a character, but I'm eventually thinking of porting this to a form and saving in a mysql database...

Again, this is just a feeler to see if anyone's interested in my making this more user friendly for you rather than keeping it as a personal tool.

Note: This really is our group, though I took liberties to push them through level 20. The fighter is actually 2 levels lower than the Bard, who has him as a Cohort, he is not a PC of the group. ;)

Community / Forums / Pathfinder / Pathfinder First Edition / General Discussion / PPhPP All Messageboards

Want to post a reply? Sign in.
Recent threads in General Discussion