Lone Wolf Development Forums  

Go Back   Lone Wolf Development Forums > Hero Lab Forums > HL - Pathfinder Roleplaying Game
Register FAQ Community Today's Posts Search

Notices

Reply
 
Thread Tools Display Modes
Demigorgon 8 My Baby
Junior Member
 
Join Date: Nov 2010
Posts: 4

Old November 23rd, 2010, 05:56 PM
Quote:
Originally Posted by Mathias View Post
How does your overall mechanic work? What do you need it to do? Are they gained and used in-play? Or are they gained and lost when you level up?

Can you see anything that already exists in the program that works something like this? If not, have you seen anything in the program that works similarly?
The mechanic works like Skill Points. Each class has a feature that says "Influence Points per level: X + Cha Modifier". Influence Points are then used to buy Influence. Influence is expressed as a bonus which is bought with Influence Points one 1:1 basis. 5 Influence points would buy "Influence: King of XYX +5"

Influence is used in game to exert control over people/places/organizations, much like the Diplomacy skill, except to a greater degree and on a more permanent basis. Players roll Influence+Cha Modifier+Situational Modifiers against a DC that ranges from 15-40. DC 15 would be "Provide Lodging for the Character" DC 40 might be "Provide aid against a superior power"

Influence is bought with Influence Points when characters level up. Like skill points or feats it cannot be banked for latter and can only be changed if Influence is removed by the GM, such as if an Influence is killed.

I was thinking of adding it as a Class Special, but maybe trying to stick it in as a skill would be a better way to go.
Demigorgon 8 My Baby is offline   #11 Reply With Quote
Mathias
Senior Member
Lone Wolf Staff
 
Join Date: May 2005
Posts: 13,213

Old November 24th, 2010, 09:37 AM
Alright, I think the skills table is going to be the best place to implement this. The influences can be CHA-linked skills.

I'm thinking of creating these such that they don't report their ranks to the normal skill points total, but instead report their ranks to a new resource.

Since I haven't added a Resources tab to the editor yet, I'll have to create that for you:

Code:
<?xml version="1.0" encoding="ISO-8859-1"?>
<document signature="Hero Lab Data">
  <thing
    id="resInflu"
    name="Influence Points"
    compset="Resource"
    panellink="skills">
    </thing>
  <thing
    id="abInflu"
    name="Influence Points Reporting"
    compset="Ability"
    description="Describe the Influence Points here.">
    <tag group="Helper" tag="ShowSpec"/>
    <eval index="1" phase="Render" priority="10000"><![CDATA[
      field[livename].text = "Influence Points: " & hero.child[resInflu].field[resSummary].text
 
      ~we don't want to show this in printouts
      if (state.isoutput <> 0) then
        perform delete[Helper.ShowSpec]
        endif
      ]]></eval>
    </thing>
  <thing
    id="mechInflu"
    name="Influence Points Mechanic"
    compset="Mechanics">
    <usesource source="InfluPoint" name="Use Influence Points" parent="UserParent"/>
    <bootstrap thing="resInflu"/>
    <bootstrap thing="abInflu"/>
    </thing>
</document>
Open a new file in Notepad or some other text editor, copy all of that into the file, and save the file with the extension ".user", in the HeroLab/data/pathfinder folder. (If you use Word or another document editor, it may introduce extra characters that Hero Lab won't understand, which is why I suggest using Notepad).

Close Notepad, open HL, and enable the "Use Influence Points" source that should now exist for your characters. On the Special tab, you'll see "Influence Points: 0 of 0".

Now, you can go into HL's editor and work on the next steps.

On the Ability tab, you'll find the "Ability Points Reporting" ability - replace the description text there with something more appropriate.

Now, go to the skill tab - create your influences as new skills - they'll be Charisma-linked skills, and you'll want to check the "Must Add Manually?" option. I don't know if you'll want "Only usable when trained?".

I noticed that the checkbox for user text in the skills (like the Knowledge: Other" or Craft: Other" skills) is missing from the editor. I'll fix that in the next update, but in the meantime, when you're creating your Influence: Other skill, press the "Tags" button that's at the top right. "Click to add another tag", then enter "Helper" in the "Group Id" box and "Custom" in the "Tag Id" box - leave the rest alone, and press "OK" to get out.

Okay, now for the resource usage for Influences:

For each Influence skill you create, press the Eval Scripts button among those on the top right. Add a new Eval Script, and then set the Phase to Post-Attributes, Priority: 10000.

Enter the following into the body of the script:

Code:
 
~subtract our ranks from the total skill points, to cancel out another
~script that adds them
hero.child[resSkill].field[resSpent].value -= field[skUser].value + field[skInnate].value
 
~add our ranks to the Influence Points mechanic
hero.child[resInflu].field[resSpent].value += field[skUser].value + field[skInnate].value
Now, for the classes.

Rather than duplicating all 18 base classes, the NPC classes, the prestige classes, and presumably every race and template that has racial HD, here's how to handle those in a single long script:

Go to the Ability tab, to the Influence Points Reporting ability that's already there - let's make use of that to calculate the total resource, rather than creating something new.

Add a new Eval Script
Phase: Post-Attributes, Priority: 10000

Code:
 
var bonus as number
var multiple as number
 
~count how many levels will give 2 influence points/level:
~fighters, barbarians, 
bonus = #levelcount[Fighter] + #levelcount[Barbarian]
 
~our multipler is 2 + CHA mod, minimum 1 if we have a low CHA:
multiple = maximum(2 + #attrmod[aCHA], 1)
 
field[abValue].value += bonus * multiple
bonus = 0
multiple = 0
 
~count how many levels will give 4 influence points/level:
~wizards, clerics,
bonus = #levelcount[Wizard] + #levelcount[Cleric]
 
~our multipler is 4 + CHA mod, minimum 1 if we have a low CHA:
multiple = maximum(4 + #attrmod[aCHA], 1)
 
field[abValue].value += bonus * multiple
bonus = 0
multiple = 0
 
 
~add our total to the Influence points resource
#resmax[resInflu] += field[abValue].value
You'll need a separate set of additions for each separate multiple (2, 4, 6, 8, etc.), and the bonus = #levelcount[] + #levelcount[] + #levelcount[] lines will probably get pretty long.
Mathias is offline   #12 Reply With Quote
Mathias
Senior Member
Lone Wolf Staff
 
Join Date: May 2005
Posts: 13,213

Old November 24th, 2010, 09:58 AM
I forgot to tell you how to find out what to put in the #levelcount[].

In the develop menu in HL, make sure that "Enable Data File Debugging" is checked. Now, at the bottom of the develop menu, select "Floating Info Windows" and then "Show Hero Tags". Expand the little display that shows up to as tall as you can.

Now, start adding one level each of as many classes as your copy of HL can stand before it slows down too much. Once you're done, look at the list of hero tags, and find the "Classes" tags - write down the Tag Ids that correspond to each class - that Tag Id is what you enter for the #levelcount[]. Once that's done, delete those classes and add another batch. The Tag Ids will generally be the first 9 letters of a class' name, but sometimes classes have long names, made up of multiple words.
Mathias is offline   #13 Reply With Quote
Mathias
Senior Member
Lone Wolf Staff
 
Join Date: May 2005
Posts: 13,213

Old November 24th, 2010, 10:02 AM
Once you're ready to add monsters with HD and templates with HD, tell me, and I'll guide you through that.

(If this is a PC-Only thing, I can instead show you how to hide it for NPCs)
Mathias is offline   #14 Reply With Quote
Demigorgon 8 My Baby
Junior Member
 
Join Date: Nov 2010
Posts: 4

Old November 24th, 2010, 06:04 PM
Thanks for all your help. It works like a charm. I had to debug it her and there, but only because of user error

Happy Thanksgiving!

I'll get back to you about the templates and such. It is a resource that will be available to both PCs and NPCs, but not Monsters.

I really appreciate you writing that code for me. That was more help than I was ever dreaming of!
Demigorgon 8 My Baby is offline   #15 Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 06:05 AM.


Powered by vBulletin® - Copyright ©2000 - 2024, vBulletin Solutions, Inc.
wolflair.com copyright ©1998-2016 Lone Wolf Development, Inc. View our Privacy Policy here.