[FIX] Fixed Pathfinder Properties

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

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

Forum rules
Discussion regarding lmarkus001's framework only. Other posts deleted without notice! :)
Post Reply
Imper1um
Cave Troll
Posts: 92
Joined: Mon Sep 28, 2009 7:46 am

[FIX] Fixed Pathfinder Properties

Post by Imper1um »

Recently, an update to MapTools made any line as '----' equal a property, which causes an error if you try to edit it as it is right now.

The following update to the 'Pathfinder' Property set will fix this. It also hides AC from Non-Owners (an undesirable result, because people Metagame and try to figure out if they can jump around things). It also adds the 'IsBloodied' Property which simply lists Yes/No if the token is considered bloodied.

How to Install: Open Campaign Properties (Edit > Campaign Properties), click Pathfinder, Select All Text and replace with the below code.

Code: Select all

Private:" ; "
PrivateJSON:{}
Race:{"name":"","family":"","type":"","subtype":[],"notes":""}
SizeM:0
Level:1
Levels:TurnLevel=0 ; ECL=Level ;
*@HP:0
*@HPmax:[R: max( Level, ( 1 + (ConB * Level) ) )]
*@HPtemp:0
*@HPNonLethalDMG:0
BAB:0
*#Reach:5
MiscATK:0
MiscDMG:0
---| Daily Uses |---
ChannelEnergy:0
HealingSurges:0
Daily:ChannelEnergy=0 ; HealingSurges=0 ; NegativeLevels=0 ;
---| Informational Text |---
InitMod:0
*@Movement (Mov):30
Speed:{"base" : 30,"climb" : 0,"swim" : 0,"burrow" : 0,"fly" : 0,"flymaneuver" : 0,"encumbered" : 0,"special" : ""}
SpeedMod:{"base" : 0,"climb" : 0,"swim" : 0,"burrow" : 0,"fly" : 0,"flymaneuver" : 0,"encumbered" : 0,"special" : ""}
*Elevation (Elv)
*@AC (AC/TH/FF/CMD/CMDFF)
*IsBloodied (Is Bloodied):[r:if(HP/HPmax < 0.5, "Yes", "No")]
ArmorClass:Armor=0 ; ArmorMod=0 ; Shield=0 ; ShieldMod=0 ; ArmorACP=0 ; ShieldACP=0 ; MaxDex=50 ; Natural=0 ; NaturalMod=0 ; Deflection=0 ; Dodge=0 ; ACMod=0 ; Description= ;
*#SpecialATK:NA
*#SpecialQual:NA
*#DR
DRER:{"Damage Reduction":{"All":0,"Adamantine":0,"ColdIron":0,"Epic":0,"Magic":0,"Silver":0,"Bludgeoning":0,"Piercing":0,"Slashing":0,"Chaos":0,"Evil":0,"Good":0,"Law":0,"Note":""},"Energy Resistance":{"Acid":0,"Cold":0,"Electricity":0,"Fire":0,"Sonic":0,"Note":""}}
DRERMod:{"DR_All":0,"DR_Adamantine":0,"DR_ColdIron":0,"DR_Epic":0,"DR_Magic":0,"DR_Silver":0,"DR_Bludgeoning":0,"DR_Piercing":0,"DR_Slashing":0,"DR_Chaos":0,"DR_Evil":0,"DR_Good":0,"DR_Law":0,"ER_Acid":0,"ER_Cold":0,"ER_Electricity":0,"ER_Fire":0,"ER_Sonic":0}
BonusTypedItems:{}
ItemSlots:{}
---| Stats/Saves |---
Strength (Str):10
StrMod:0
Dexterity (Dex):10
DexMod:0
Constitution (Con):10
ConMod:0
Intelligence (Int):10
IntMod:0
Wisdom (Wis):10
WisMod:0
Charisma (Cha):10
ChaMod:0
StatCheckMod:{"StrengthCheckMod":0,"DexterityCheckMod":0,"ConstitutionCheckMod":0,"IntelligenceCheckMod":0,"WisdomCheckMod":0,"CharismaCheckMod":0}
*@AllStats (Str,Dex,Con,Int,Wis,Cha):[R: Strength+StrMod],[R:Dexterity+DexMod],[R:Constitution+ConMod],[R:Intelligence+IntMod],[R:Wisdom+WisMod],[R:Charisma+ChaMod]
Fort:0
FortBonus:0
Reflex:0
ReflexBonus:0
Will:0
WillBonus:0
*@AllSaves (Fortitude, Reflex, Will):[R:Fort+ConB+FortBonus], [R:Reflex+DexB+ReflexBonus], [R:Will+WisB+WillBonus]
*@SaveMisc
---| Skills and Feats |---
SkillsJ:[{"name":"Acrobatics","rank":0,"classskill":0,"racialmod":0,"synergy":0,"feats":0,"equip":0,"misc":0,"notes":""},{"name":"Appraise","rank":0,"classskill":0,"racialmod":0,"synergy":0,"feats":0,"equip":0,"misc":0,"notes":""},{"name":"Bluff","rank":0,"classskill":0,"racialmod":0,"synergy":0,"feats":0,"equip":0,"misc":0,"notes":""},{"name":"Climb","rank":0,"classskill":0,"racialmod":0,"synergy":0,"feats":0,"equip":0,"misc":0,"notes":""},{"name":"Craft","subcat":"99","rank":0,"classskill":0,"racialmod":0,"synergy":0,"feats":0,"equip":0,"misc":0,"notes":""},{"name":"Diplomacy","rank":0,"classskill":0,"racialmod":0,"synergy":0,"feats":0,"equip":0,"misc":0,"notes":""},{"name":"Disable Device","rank":0,"classskill":0,"racialmod":0,"synergy":0,"feats":0,"equip":0,"misc":0,"notes":""},{"name":"Disguise","rank":0,"classskill":0,"racialmod":0,"synergy":0,"feats":0,"equip":0,"misc":0,"notes":""},{"name":"Escape Artist","rank":0,"classskill":0,"racialmod":0,"synergy":0,"feats":0,"equip":0,"misc":0,"notes":""},{"name":"Fly","rank":0,"classskill":0,"racialmod":0,"synergy":0,"feats":0,"equip":0,"misc":0,"notes":""},{"name":"Handle Animal","rank":0,"classskill":0,"racialmod":0,"synergy":0,"feats":0,"equip":0,"misc":0,"notes":""},{"name":"Heal","rank":0,"classskill":0,"racialmod":0,"synergy":0,"feats":0,"equip":0,"misc":0,"notes":""},{"name":"Intimidate","rank":0,"classskill":0,"racialmod":0,"synergy":0,"feats":0,"equip":0,"misc":0,"notes":""},{"name":"Knowledge","subcat":"99","rank":0,"classskill":0,"racialmod":0,"synergy":0,"feats":0,"equip":0,"misc":0,"notes":""},{"name":"Linguistics","rank":0,"classskill":0,"racialmod":0,"synergy":0,"feats":0,"equip":0,"misc":0,"notes":""},{"name":"Perception","rank":0,"classskill":0,"racialmod":0,"synergy":0,"feats":0,"equip":0,"misc":0,"notes":""},{"name":"Perform","subcat":"99","rank":0,"classskill":0,"racialmod":0,"synergy":0,"feats":0,"equip":0,"misc":0,"notes":""},{"name":"Profession","subcat":"99","rank":0,"classskill":0,"racialmod":0,"synergy":0,"feats":0,"equip":0,"misc":0,"notes":""},{"name":"Ride","rank":0,"classskill":0,"racialmod":0,"synergy":0,"feats":0,"equip":0,"misc":0,"notes":""},{"name":"Sense Motive","rank":0,"classskill":0,"racialmod":0,"synergy":0,"feats":0,"equip":0,"misc":0,"notes":""},{"name":"Sleight of Hand","rank":0,"classskill":0,"racialmod":0,"synergy":0,"feats":0,"equip":0,"misc":0,"notes":""},{"name":"Spellcraft","rank":0,"classskill":0,"racialmod":0,"synergy":0,"feats":0,"equip":0,"misc":0,"notes":""},{"name":"Stealth","rank":0,"classskill":0,"racialmod":0,"synergy":0,"feats":0,"equip":0,"misc":0,"notes":""},{"name":"Survival","rank":0,"classskill":0,"racialmod":0,"synergy":0,"feats":0,"equip":0,"misc":0,"notes":""},{"name":"Swim","rank":0,"classskill":0,"racialmod":0,"synergy":0,"feats":0,"equip":0,"misc":0,"notes":""},{"name":"Use Magic Device","rank":0,"classskill":0,"racialmod":0,"synergy":0,"feats":0,"equip":0,"misc":0,"notes":""}]
Skills:Acrobatics=0 ; Appraise=0 ; Bluff=0 ; Climb=0 ; Diplomacy=0 ; DisableDevice=0 ; Disguise=0 ; EscapeArtist=0 ; Fly=0 ; HandleAnimal=0 ; Heal=0 ; Intimidate=0 ; KnowledgeArcana=0 ; KnowledgeDungeoneering=0 ; KnowledgeEngineering=0 ; KnowledgeGeography=0 ; KnowledgeHistory=0 ; KnowledgeLocal=0 ; KnowledgeNature=0 ; KnowledgeNobility=0 ; KnowledgePlanes=0 ; KnowledgeReligion=0 ; Linguistics=0 ; Perception=0 ; Perform=0 ; Ride=0 ; SenseMotive=0 ; SleightOfHand=0 ; Spellcraft=0 ; Stealth=0 ; Survival=0 ; Swim=0 ; UseMagicDevice=0 ;
SkillStat:Acrobatics=DexB ; Appraise=IntB ; Bluff=ChaB ; Climb=StrB ; Diplomacy=ChaB ; DisableDevice=DexB ; Disguise=ChaB ; EscapeArtist=DexB ; Fly=DexB ; HandleAnimal=ChaB ; Heal=WisB ; Intimidate=ChaB ; KnowledgeArcana=IntB ; KnowledgeDungeoneering=IntB ; KnowledgeEngineering=IntB ; KnowledgeGeography=IntB ; KnowledgeHistory=IntB ; KnowledgeLocal=IntB ; KnowledgeNature=IntB ; KnowledgeNobility=IntB ; KnowledgePlanes=IntB ; KnowledgeReligion=IntB ; Linguistics=IntB ; Perception=WisB ; Perform=ChaB ; Ride=DexB ; SenseMotive=WisB ; SleightOfHand=DexB ; Spellcraft=IntB ; Stealth=DexB ; Survival=WisB ; Swim=StrB ; UseMagicDevice=ChaB ;
SkillArmor:Acrobatics=1 ; Appraise=0 ; Bluff=0 ; Climb=1 ; Diplomacy=0 ; DisableDevice=0 ; Disguise=0 ; EscapeArtist=1 ; Fly=1 ; HandleAnimal=0 ; Heal=0 ; Intimidate=0 ; KnowledgeArcana=0 ; KnowledgeDungeoneering=0 ; KnowledgeEngineering=0 ; KnowledgeGeography=0 ; KnowledgeHistory=0 ; KnowledgeLocal=0 ; KnowledgeNature=0 ; KnowledgeNobility=0 ; KnowledgePlanes=0 ; KnowledgeReligion=0 ; Linguistics=0 ; Perception=0 ; Perform=0 ; Ride=0 ; SenseMotive=0 ; SleightOfHand=1 ; Spellcraft=0 ; Stealth=1 ; Survival=0 ; Swim=1 ; UseMagicDevice=0 ;
ArmorCheckPenalty:0
SkillMisc:0
Feats:ImprovedInitiative=0 ; AgileManeuvers=0 ; ImprovedBullRush=0 ; ImprovedDisarm=0 ; ImprovedGrapple=0 ; ImprovedOverrun=0 ; ImprovedSunder=0 ; ImprovedTrip=0 ; PointBlankShot=0 ; TwoWeaponFighting=0 ; ImprovedTwoWeaponFighting=0 ; GreaterTwoWeaponFighting=0 ; MultiAttack=0 ; WeaponFinesse=0 ; UncannyDodge=0 ; ImprovedTurning=0 ;
---| Weapons |---
Weapon0:Name=Slam ; Primary=1 ; Quantity=1 ; Manufactured=0 ; AtkBonus=0 ; CritMult=2 ; CritRange=20 ; Damage=1d4 ; DmgMax=4 ; DmgExtra=0d6 ; DmgExtraCrit=0d10 ; DmgExtraName= ; DmgBonusCap=50 ; TwoHanded=0 ; Finesse=0 ; OHLight=0 ; Ranged=0  ;
Weapon1:Name=NA ; Primary=0 ; Quantity=1 ; Manufactured=0 ; AtkBonus=0 ; CritMult=2 ; CritRange=20 ; Damage=1d4 ; DmgMax=4 ; DmgExtra=0d6 ; DmgExtraCrit=0d10 ; DmgExtraName= ;  DmgBonusCap=50 ; TwoHanded=0 ; Finesse=0 ; OHLight=0 ; Ranged=0  ;
Weapon2:Name=NA ; Primary=0 ; Quantity=1 ; Manufactured=0  ; AtkBonus=0 ; CritMult=2 ; CritRange=20 ; Damage=1d4 ; DmgMax=4 ; DmgExtra=0d6 ; DmgExtraCrit=0d10 ; DmgExtraName= ;  DmgBonusCap=50 ; TwoHanded=0 ; Finesse=0 ; OHLight=0 ; Ranged=0  ;
Weapon3:Name=NA ; Primary=0 ; Quantity=1 ; Manufactured=0  ; AtkBonus=0 ; CritMult=2 ; CritRange=20 ; Damage=1d4 ; DmgMax=4 ; DmgExtra=0d6 ; DmgExtraCrit=0d10 ; DmgExtraName= ;  DmgBonusCap=50 ; TwoHanded=0 ; Finesse=0 ; OHLight=0 ; Ranged=0  ;
Weapon4:Name=NA ; Primary=0 ; Quantity=1 ; Manufactured=0  ; AtkBonus=0 ; CritMult=2 ; CritRange=20 ; Damage=1d4 ; DmgMax=4 ; DmgExtra=0d6 ; DmgExtraCrit=0d10 ; DmgExtraName= ;  DmgBonusCap=50 ; TwoHanded=0 ; Finesse=0 ; OHLight=0 ; Ranged=0  ;
Weapon5:Name=NA ; Primary=0 ; Quantity=1 ; Manufactured=0  ; AtkBonus=0 ; CritMult=2 ; CritRange=20 ; Damage=1d4 ; DmgMax=4 ; DmgExtra=0d6 ; DmgExtraCrit=0d10 ; DmgExtraName= ;  DmgBonusCap=50 ; TwoHanded=0 ; Finesse=0 ; OHLight=0 ; Ranged=0  ;
Weapon6:Name=NA ; Primary=0 ; Quantity=1 ; Manufactured=0  ; AtkBonus=0 ; CritMult=2 ; CritRange=20 ; Damage=1d4 ; DmgMax=4 ; DmgExtra=0d6 ; DmgExtraCrit=0d10 ; DmgExtraName= ;  DmgBonusCap=50 ; TwoHanded=0 ; Finesse=0 ; OHLight=0 ; Ranged=0  ;
Weapon7:Name=NA ; Primary=0 ; Quantity=1 ; Manufactured=0  ; AtkBonus=0 ; CritMult=2 ; CritRange=20 ; Damage=1d4 ; DmgMax=4 ; DmgExtra=0d6 ; DmgExtraCrit=0d10 ; DmgExtraName= ;  DmgBonusCap=50 ; TwoHanded=0 ; Finesse=0 ; OHLight=0 ; Ranged=0  ;
Weapon8:Name=Touch ; Primary=1 ; Quantity=1 ; Manufactured=0 ; AtkBonus=0 ; CritMult=2 ; CritRange=20 ; Damage=0d1 ; DmgMax=0 ; DmgExtra=0d6 ; DmgExtraCrit=0d10 ; DmgExtraName= ; DmgBonusCap=0 ; TwoHanded=0 ; Finesse=1 ; OHLight=2 ; Ranged=0 ;
Weapon9:Name=Ranged Touch ; Primary=1 ; Quantity=1 ; Manufactured=0 ; AtkBonus=0 ; CritMult=2 ; CritRange=20 ; Damage=0d1 ; DmgMax=0 ; DmgExtra=0d6 ; DmgExtraCrit=0d10 ; DmgExtraName= ; DmgBonusCap=0 ; TwoHanded=0 ; Finesse=0 ; OHLight=2 ; Ranged=1 ;
HelpWeaponProperty:Primary=0-NotInUse 1-Primary 2-Secondary ; Quantity= # natural attacks ; Manufactured= 0-Natural 1-Manufactured (for multi attack if BAB>5) ; AtkBonus= Magic/Masterwork/Feat ; CritRange= Lower end 19-20 is 19 ; DmgExtra= 1d6 (EX from flaming) set to 0d6 for none ; DmgExtraCrit= 1d10 (EX burst) set to 0d10 for none; DmgExtraName= Fire / Cold / Acid / etc. ; DmgBonusCap=0-No STR Bonus, >0 - Cap to STR bonus (STR Bow) ; TwoHanded=0-One  Handed, 1-Two Handed ; Finesse=0-Not Finessable, 1-Finessable ; OHLight=0-Offhand heavy, 1-Offhand Light, 2-Not  Multi-attack
---| Calculated |---
StrB:[R: floor((Strength+StrMod-10)/2)]
Str2hB:[R: floor(floor((Strength+StrMod-10)/2)+(max(0,floor((Strength+StrMod-10)/4))))]
StrSecB:[R: floor((Strength+StrMod-10)/4)]
DexB:[R: floor((Dexterity+DexMod-10)/2)]
ConB:[R: floor((Constitution+ConMod-10)/2)]
IntB:[R: floor((Intelligence+IntMod-10)/2)]
WisB:[R: floor((Wisdom+WisMod-10)/2)]
ChaB:[R: floor((Charisma+ChaMod-10)/2)]
---| Wrathgon |---
CasterInfo:{}
CasterBackup:{}
SAGroup:{}
---| Wrathgon And Plothos |---
SpecAbils:{}
SACats
---| Plothos |---
SAGroups:{}
AMSL:0
BMSL:0
BGMSL:0
CMSL:0
DMSL:0
PMSL:0
RMSL:0
SMSL:0
WMSL:0
ACL:0
BCL:0
BGCL:0
CCL:0
DCL:0
PCL:0
RCL:0
SCL:0
WCL:0
APL:0
BpL:0
BGPL:0
CPL:0
DPL:0
PPL:0
RPL:0
SPL:0
WPL:0
IsCaster:0
FirstDomain:(None)
SecondDomain:(None)
Cleric_Good_or_Evil:Good
SchoolSpec:(None)
ProhibSchool1:(None)
ProhibSchool2:(None)
ObjectBond:0
Bloodline:(None)
|--- Assassin ---|
AssassinSPD:1=0;2=0;3=0;4=0
AssassinSpellsLeft:1=0;2=0;3=0;4=0
Assassin1:(None)
Assassin2:(None)
Assassin3:(None)
Assassin4:(None)
|--- Bard ---|
BardSPD:0=0;1=0;2=0;3=0;4=0;5=0;6=0
BardSpellsLeft:0=0;1=0;2=0;3=0;4=0;5=0;6=0
Bard0:(None)
Bard1:(None)
Bard2:(None)
Bard3:(None)
Bard4:(None)
Bard5:(None)
Bard6:(None)
|--- Blackguard ---|
BlackguardSPD:1=0;2=0;3=0;4=0
BlackguardSpellsLeft:1=0;2=0;3=0;4=0
BlackguardPrep:1=(None);2=(None);3=(None);4=(None)
Blackguard1:(None)
Blackguard2:(None)
Blackguard3:(None)
Blackguard4:(None)
|--- Cleric ---|
ClericSPD:0=0;1=0;2=0;3=0;4=0;5=0;6=0;7=0;8=0;9=0
ClericSpellsLeft:0=0;1=0;2=0;3=0;4=0;5=0;6=0;7=0;8=0;9=0
ClericDomsPD:0=0;1=0;2=0;3=0;4=0;5=0;6=0;7=0;8=0;9=0
ClericDomsLeft:0=0;1=0;2=0;3=0;4=0;5=0;6=0;7=0;8=0;9=0
ClericDomainPowers:(None)
ClericPrep:0=(None);1=(None);2=(None);3=(None);4=(None);5=(None);6=(None);7=(None);8=(None);9=(None);
Cleric0:(None)
Cleric1:(None)
Domain1:(None)
Domain1Prepped:(None)
Cleric2:(None)
Domain2:(None)
Domain2Prepped:(None)
Cleric3:(None)
Domain3:(None)
Domain3Prepped:(None)
Cleric4:(None)
Domain4:(None)
Domain4Prepped:(None)
Cleric5:(None)
Domain5:(None)
Domain5Prepped:(None)
Cleric6:(None)
Domain6:(None)
Domain6Prepped:(None)
Cleric7:(None)
Domain7:(None)
Domain7Prepped:(None)
Cleric8:(None)
Domain8:(None)
Domain8Prepped:(None)
Cleric9:(None)
Domain9:(None)
Domain9Prepped:(None)
|--- Druid ---|
DruidSPD:0=0;1=0;2=0;3=0;4=0;5=0;6=0;7=0;8=0;9=0
DruidSpellsLeft:0=0;1=0;2=0;3=0;4=0;5=0;6=0;7=0;8=0;9=0
DruidPrep:0=(None);1=(None);2=(None);3=(None);4=(None);5=(None);6=(None);7=(None);8=(None);9=(None);
Druid0:(None)
Druid1:(None)
Druid2:(None)
Druid3:(None)
Druid4:(None)
Druid5:(None)
Druid6:(None)
Druid7:(None)
Druid8:(None)
Druid9:(None)
|--- Paladin ---|
PaladinSPD:1=0;2=0;3=0;4=0
PaladinSpellsLeft:1=0;2=0;3=0;4=0
PaladinPrep:1=(None);2=(None);3=(None);4=(None)
Paladin1:(None)
Paladin2:(None)
Paladin3:(None)
Paladin4:(None)
|--- Ranger ---|
RangerSPD:1=0;2=0;3=0;4=0
RangerSpellsLeft:1=0;2=0;3=0;4=0
RangerPrep:1=(None);2=(None);3=(None);4=(None)
Ranger1:(None)
Ranger2:(None)
Ranger3:(None)
Ranger4:(None)
|--- Sorceror ---|
SorcererSPD:0=0;1=0;2=0;3=0;4=0;5=0;6=0;7=0;8=0;9=0
SorcererSpellsLeft:0=0;1=0;2=0;3=0;4=0;5=0;6=0;7=0;8=0;9=0;
Sorcerer0:(None)
Sorcerer1:(None)
Sorcerer2:(None)
Sorcerer3:(None)
Sorcerer4:(None)
Sorcerer5:(None)
Sorcerer6:(None)
Sorcerer7:(None)
Sorcerer8:(None)
Sorcerer9:(None)
BloodlinePowers:(None)
|--- Wizard ---|
WizardSPD:0=0;1=0;2=0;3=0;4=0;5=0;6=0;7=0;8=0;9=0
WizardSpellsLeft:0=0;1=0;2=0;3=0;4=0;5=0;6=0;7=0;8=0;9=0
WizardSpecsPD:0=0;1=0;2=0;3=0;4=0;5=0;6=0;7=0;8=0;9=0
WizardSpecsLeft:0=0;1=0;2=0;3=0;4=0;5=0;6=0;7=0;8=0;9=0
WizardBondPD:0
WizardBondLeft:0
WizardPowers:(None)
WizardPrep:0=(None);1=(None);2=(None);3=(None);4=(None);5=(None);6=(None);7=(None);8=(None);9=(None);
Wizard0:(None)
Wizard1:(None)
Wizard2:(None)
Wizard3:(None)
Wizard4:(None)
Wizard5:(None)
Wizard6:(None)
Wizard7:(None)
Wizard8:(None)
Wizard9:(None)
|--- Template ---|
Template
Last edited by Imper1um on Tue Jul 27, 2010 12:57 pm, edited 1 time in total.

User avatar
Paradox
Dragon
Posts: 724
Joined: Fri Feb 27, 2009 4:01 pm

Re: Fixed Pathfinder Properties

Post by Paradox »

Thank you!

I'm building a new campaign file from scratch with b70 and this is helpful.
I no longer believe that MapTools is usuable or intended just for programmers. MapTools is for everyone.

User avatar
Azhrei
Site Admin
Posts: 12086
Joined: Mon Jun 12, 2006 1:20 pm
Location: Tampa, FL

Re: Fixed Pathfinder Properties

Post by Azhrei »

Doh! I meant to add a patch that ignored that.

In b67+ (IIRC) the code simply checks to see if any lines are duplicated after doing a case-insensitive comparison, but obviously that shouldn't include the "comment lines"!

I've added it to my hit list for b71 as it should be pretty easy to fix.

jsharen
Giant
Posts: 196
Joined: Tue Feb 05, 2008 3:39 pm

Re: Fixed Pathfinder Properties

Post by jsharen »

Another thing I noticed:

Intelligence (Int):10 and Intelligence:10 are conflicting as well. This pops up with Plothus's spell tracker and lmarkus's framework. I've deleted one of them and it appears to continue working. Its like the space after Intelligence is ending the variable declaration where it didnt' before.

User avatar
Paradox
Dragon
Posts: 724
Joined: Fri Feb 27, 2009 4:01 pm

Re: Fixed Pathfinder Properties

Post by Paradox »

jsharen wrote:Another thing I noticed:

Intelligence (Int):10 and Intelligence:10 are conflicting as well. This pops up with Plothus's spell tracker and lmarkus's framework. I've deleted one of them and it appears to continue working. Its like the space after Intelligence is ending the variable declaration where it didnt' before.

I noticed that as well. I believe when Plothos designed his Spell Manager it was intended to be agnostic. Both frameworks rely on an Intelligence variable set to a default of 10.

I just deleted Plothos' and it works fine for me.

In the same vein, Plothos' properties were chock full of those "---" seperators, but I just took them out and it runs fine as well.
I no longer believe that MapTools is usuable or intended just for programmers. MapTools is for everyone.

User avatar
Azhrei
Site Admin
Posts: 12086
Joined: Mon Jun 12, 2006 1:20 pm
Location: Tampa, FL

Re: Fixed Pathfinder Properties

Post by Azhrei »

jsharen wrote:Another thing I noticed:

Intelligence (Int):10 and Intelligence:10 are conflicting as well. This pops up with Plothus's spell tracker and lmarkus's framework. I've deleted one of them and it appears to continue working. Its like the space after Intelligence is ending the variable declaration where it didnt' before.
Close, but not exactly. What's really happening is that there was never a check for having duplicate property names! So whichever one was in the Property Type last would override all others with the same name.

When properties became case-insensitive there was never any check added when defining property names. Now that there is, people are finding little details like this. ;)

Also, I've modified the code so that any string that starts with "---" (three dashes) will still perform the comparison but the warning will be specifically about the comment. It is possible, although hopefully unlikely!, that someone could use a property named "---my comment---" via Wiki: setProperty() and Wiki: getProperty(). :roll:

Post Reply

Return to “D&D 3.5/Pathfinder 1e Campaign Macros”