I'm not on my machine right now, but if it looks like this: <a href="http://www.d20pfsrd.com/psionics-unleashed/psionic" rel="nofollow">http://www.d20pfsrd.com/psionics-unleashed/psionic</a>... Then you can quickly mod it at the following locations: termEnum termEnum: Object.freeze({
GENERAL : 1,
MONABILITY: 2,
SPELL: 3,
FEAT: 4,
SQ: 5,
SA: 6,
SKILL: 7
}), add: DSP_PSI: 8 don't forget to add a comma after SKILL since you're increasing the length of the enum fields /**
* Various fields that can be changed for customization
*
*/
fields: {
defaultName: "Creature",
publicName: "@{name}",
publicEm: "/emas ",
publicAtkEm: "/as Attack ",
publicDmgEm: "/as Damage ",
publicAnn: "/desc ",
privWhis: "/w GM ",
menuWhis: "/w GM ",
resultWhis: "/w GM ",
urlTermGeneral: '<a href="<a href="http://www.google.com/cse?cx=006680642033474972217%3A6zo0hx_wle8&q=<<FULL>>"><span" rel="nofollow">http://www.google.com/cse?cx=006680642033474972217%3A6zo0hx_wle8&q=<<FULL>>"><span</a> style="color: #FF0000; font-weight: bold;"><<LABEL>></span></a>',
//urlTermGeneral: '<a href="<a href="http://www.d20pfsrd.com/system/app/pages/search?scope=search-site&q=<<FULL>>"><span" rel="nofollow">http://www.d20pfsrd.com/system/app/pages/search?scope=search-site&q=<<FULL>>"><span</a> style="color: #FF0000; font-weight: bold;"><<LABEL>></span></a>',
urlTermMonAbility: '<a href="<a href="http://paizo.com/pathfinderRPG/prd/additionalMonsters/universalMonsterRules.html#<<FULL>>"><span" rel="nofollow">http://paizo.com/pathfinderRPG/prd/additionalMonsters/universalMonsterRules.html#<<FULL>>"><span</a> style="color: #2F2F2F; font-weight: bold;"><<FULL>></span></a>',
urlTermSpell: '<a href="<a href="http://www.d20pfsrd.com/magic/all-spells/<<0>>/<<FULL>>"><span" rel="nofollow">http://www.d20pfsrd.com/magic/all-spells/<<0>>/<<FULL>>"><span</a> style="color: #2E39FF; font-weight: bold;"><<LABEL>></span></a>',
urlTermFeat: '<a href="<a href="http://www.google.com/cse?cx=006680642033474972217%3A6zo0hx_wle8&q=<<FULL>>"><span" rel="nofollow">http://www.google.com/cse?cx=006680642033474972217%3A6zo0hx_wle8&q=<<FULL>>"><span</a> style="color: #29220A; font-weight: bold;"><<FULL>></span></a>',
urlTermSQ: "", // unused
urlTermSA: "", // unused
summoner: null,
shortAtkRiders: false // unused
},
add: urlTermDSP_Psionic: '<a href="<a href="http://www.d20pfsrd.com/psionics-unleashed/psionics-unleashed/psionic-powers/<<0>>/<<FULL>>"><span" rel="nofollow">http://www.d20pfsrd.com/psionics-unleashed/psionics-unleashed/psionic-powers/<<0>>/<<FULL>>"><span</a> style="color: #2E39FF; font-weight: bold;"><<LABEL>></span></a>', getTermLink /**
* Return a link whose format depends on type
*/
getTermLink: function(str,type,label) {
if (!str || !type) return null;
if (!label) label = str;
var retval = str;
switch(type) {
case this.termEnum.GENERAL:
retval = this.getFormattedUrl(str,this.fields.urlTermGeneral,label);
break;
case this.termEnum.SPELL:
retval = this.getFormattedUrl(str,this.fields.urlTermSpell,label);
break;
case this.termEnum.FEAT:
retval = this.getFormattedUrl(str,this.fields.urlTermFeat,label);
break;
case this.termEnum.SQ:
retval = this.getFormattedUrl(str,this.fields.urlTermSQ,label);
break;
case this.termEnum.SA:
retval = this.getFormattedUrl(str,this.fields.urlTermSA,label);
break;
default:
retval = str;
}
this.creLog("getTermLink: " + retval,3);
return retval;
}, add: case this.termEnum.DSP_PSI:
retval = this.getFormattedUrl(str,this.fields.urlTermDSP_Psionic,label);
break; add this before default ParseSpells /** parse out spells the marco will spit them out, possibly even link
* them to a known PRD search engine.
*/
parseSpells: function() {
var charId = this.character.get('_id');
var lineEndFnd = this.data.length;
var casterType = null, attrName = null;
var rc = null, line = "";
var termChars = [';',','];
lineEndFnd = this.getLineNumberByName("TACTICS",this.data);
if (!lineEndFnd)
lineEndFnd = this.getLineNumberByName("STATISTICS",this.data);
this.formatSpells("Spell-Like Abilities",lineEndFnd,this.termEnum.GENERAL,"SLA");
this.formatSpells("Spells Known",lineEndFnd,this.termEnum.SPELL);
this.formatSpells("Spells Prepared",lineEndFnd,this.termEnum.SPELL);
this.formatSpells("Extracts Prepared",lineEndFnd,this.termEnum.SPELL);
}, add: this.formatSpells("Psi-like",lineEndFnd,this.termEnum.DSP_PSI); That will get your auto-linking of the psi stuff from dreamscarred. for mind-level, you'll need to change some gritty parsing logic in formatSpells, basically your goal is to check if the ' casterType ' is 'Psi-Like' then rather than looking for CL you should look for ML instead. You'll also need to add some logic to the casterType check near the end of formatSpells where you'll have to subsitute the CL button for an ML button but that's more for aesthetics. Good luck. PS: (btw, I haven't tested any of this, so if you're relying on pure copy paste, please don't, it's a general guide.)