Junior Member
Join Date: Aug 2012
Posts: 21
|
I'm trying to go a little deeper in the editor functions, and attempting to make custom abilities that can effect the calculated fields. I can't really code (though can puzzle through VBA and SQL macros here and there), but I'm trying to get better and thought this a great opportunity, but I could use some help.
I'm creating the Trailgaunt from the back of Pathfinder Comics #11. I was using the Bestiary Monster Creator for the most part, but was building custom Racial Special abilities to choose within the builder. I've got all of them done (just text based) except for "Vengeful Strike", which acts sort of like a favorite enemy bonus. Here's the text: "A Trailgaunt particularly hates living Varisians. The undead gains a +2 bonus on all attack rolls made against Varisians, as well as on any Perception or Survival checks made against Varisians" So in setting up the ability, I have it checked to Show in Activated Abilities List, with the name as "vs. Varisians". It looks like this created the field "actName" with a value of "vs. Varisians". What I'd like to do is build the Eval Scripts such that when the box is checked, it adds in the +2 to Attack, Perception, and Survival. I've figured out that the names of those fields to modify are called [hero.child[skPercpe] [hero.child[skSurvival] and [hero.child[Attack] (from playing around w/ the favorite enemy scripts), but I'm stumped on what to do next. Any help (and if you have the time, a brief explanation of the why) in how to do this? |
#1 |
Senior Member
Join Date: Feb 2007
Location: Nottinghamshire, United Kingdom
Posts: 1,265
|
What you are needing is the situational macro as the bonuses apply only to Varisians
Take a look at other things that apply a situation modifier for code examples but here is a basic code example to reference. Code:
#situational[chosen save,bonus text,source's name] Dormio Forte Somnio Community Created Resources : Data Package Repositories : d20pfsrd Custom Character Sheets Community Server Setup (Packs) Hero Lab Help- Video Tutorials and Pathfinder FAQ Created by the community for the community
|
#2 |
Junior Member
Join Date: Aug 2012
Posts: 21
|
Ok, first pass at writing it and I got an error... here was the script:
#situational[hero.child[skPercep], "+2 vs. Varisians", field[actName].txt] and it gave me an error for invalid use of a reserved word in script. One other question... would this just be adding in the text when I hover over the related skill? My hope was instead to have the check mark in the in play tab which then actually modifies the skill and attack checks... would the situational code above do this? |
#3 |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729
|
Quote:
[QUOTE=The Numerator;198390 One other question... would this just be adding in the text when I hover over the related skill? My hope was instead to have the check mark in the in play tab which then actually modifies the skill and attack checks... would the situational code above do this?[/QUOTE] Situational text adds text to the skill as a reminder. It will not actually adjust the values. Pre-levels/4000: Code:
~ If not activated get out now! doneif (field[abilActive].value = 0) #skillbonus[skSurvival] += 2 #skillbonus[skPercpe] += 2 hero.child[Attack].field[Bonus].value += 2 If we are on we use a Macro (ie those with #) in front to give a skill bonus of 2 to Survival and Perception. Then as we get a "bonus" to attack we transition from the hero to the "Attack" thing and then look for the "Field" called Bonus and give it 2. Hope that helps. Hero Lab Resources: Pathfinder - d20pfsrd and Pathfinder Pack Setup 3.5 D&D (d20) - Community Server Setup 5E D&D - Community Server Setup Hero Lab Help - Hero Lab FAQ, Editor Tutorials and Videos, Editor & Scripting Resources. Created by the community for the community - Realm Works kickstarter backer (Alpha Wolf) and Beta tester.- d20 HL package volunteer editor. |
|
#4 |
|
|