Invalid syntax for tag template
Hello everybody, I have created an Eval Script that is meant to increase the critical threat range of any weapon by 1, after the hero gets to level 11.
This is the eval script I've written (Post-attributes, 10000, 1): Code:
if (field[xTotalLev].value >= 11) then Moreover, I noticed another issue. If the weapon I am wielding is a keen weapon, or if I have the Improved Critical Feat, the code I have written reduces the critical threat range by 2, not by 1. Is there a way to avoid this? Thanks for your help! UPDATE: I managed to solve the Invalid syntax for tag template error. The reason was probably that some weapons (no idea which ones) did not have the wCritMin tag and thus were unable to execute the script. This is the updated code (now working): Code:
if (field[xTotalLev].value >= 11) then |
Quote:
|
Quote:
|
Quote:
|
Quote:
If I move my script to Pre-Levels 5001, it simply doesn't work (i.e. it does not decrease the critical threat range by 1; the range stays the same as if nothing happened). It looks like it should be set to Post-Levels (I had it at Post-Levels 10000) to make it decrease the critical threat range by 1. I realize that when you talk about Timing you are referring to the Timing button, not the Phase menu or the Priority number, but how do I set my script's Timing so that it activates after another process (iKeen or fImprCrit) which apparently have no Timing? I apologise if I'm doing something wrong and looking incredibly numb :( |
The phase and priority is what he's actually referring to - that determines the order a script is run in, relative to all other scripts - the whole set of Phase, Priority and Timing is generally lumped under "Timing". The "Timing" button is tools to help you determine which order to run it in - the option to name scripts, and to record the names of other scripts that it must be before or after, to help you keep track of what depends on what.
|
Quote:
Improved Critical: Pre-Levels 5000 Keen: Pre-Levels 5000 My script: Pre-Levels 5001 This combination does not seem to work at all: there are no changes at all to the critical threat range. Improved Critical: Pre-Levels 5000 Keen: Pre-Levels 5000 My script: Post-Levels 10000 This combination decreases the critical threat range by 1 (e.g. 18-20 becomes 17-20), but if I apply the keen and/or improved critical effect the threat range becomes 13-20 (it should be 14-20 instead: 15-20 because of keen, decreased by 1 because of my script). Anyway, thanks for helping me understand what the Timing button does :-) |
As an example that may help, here's the "Out for Blood" Dare for gunslingers/swashbucklers, which improves the critical threat range of the specified weapons by 1:
Code:
<eval phase="Final" priority="2000"><![CDATA[ |
Ok, didn't realize the issue was stacking with keen - let me find something more specific to that.
|
Here's the Rapier Mastery ability from the Inspired Blade shashbuckler archetype:
Code:
<eval phase="PostAttr" priority="10000" index="2"><![CDATA[ The Helper.CritExpan tag is specifically designed to trigger an improvement that is applied after Keen is applied. |
All times are GMT -8. The time now is 12:48 AM. |
Powered by vBulletin® - Copyright ©2000 - 2024, vBulletin Solutions, Inc.
wolflair.com copyright ©1998-2016 Lone Wolf Development, Inc. View our Privacy Policy here.