Getting specific class levels
Hello,
This seems like it should be a simple thing, but I can't seem to figure it out. I am creating the Landforged Walker (Secrets of Xen'dirt, pg 123), but I'm having problems with Body of Nature. At level 1, they get Body of Nature. At level 2, Body of Nature gives some resistance, and +1 natural AC. When I created this as a new and separate class special, the natural armor class rose at level 1, even though the Level Requirement was placed at 2. So, it turns out I need to get the levels of that specific class. Here is what I tried. Code:
var classLvl as number Syntax error in 'eval' scrit for Thing 'cAM-BoN' (Eval Script '#1' on line 2 -> Tag 'Classes.Langforged' not defined. However, the following code works Code:
var classLvl as number Thanks, -S |
The format of the macro you are using should be #levelcount[class_ID]
Normally your class ID isn't going to be 2 words, so "Landforged Walker" is likely to give you an error. Also, note the actual text in your error message given is "Langforged" - not "Landforged". There may be a typo in your original code. |
@Dami
Thank you for the reply. How would I go about making a class ID that the macro will understand? I have used the unique ID... or, wait. You mean the name created when the class was first created? I didn't think of that. As for the typo, that was not a direct copy and paste so the spelling is actually correct. Thanks, -S |
Here is the script that macro #levelcount[] is doing under the covers:
Code:
hero.tagcount[Classes.#class] 1) Start with a new character and add one level of the class you want to count to a character. 2) Go to "Develop->Floating Info Windows->Show Hero Tags". 3) In the new window that appears type "Classes" into the TOP LEFT corner text area. This will then show you all tags that have that word. The "Tag ID" will show you the value your looking for which is AFTER the Classes Period. In example for the Cleric the tag is "Classes.Cleric". Which would make the macro look like this: Code:
#levelcount[Cleric] |
3 Attachment(s)
Thank you all for the replies. However, I am still having problems with this simple matter.
01.jpg shows the hero tags for a single level of the class 02.jpg shows the simple if statement used 03.jpg shows the error after compile/test The code below is code I used that worked, but would CRASH THE PROGRAM after compiling. After I reload the program, the class would work normally. Not sure why. Code:
var level as number Any help is appreciated. Thanks, -S |
Quote:
You have Classes.LndfgWlkr instead of just: Code:
#levelcount[LndfgWlkr] 1) DO NOT use the '(Users)' timings as those are going to go away in a future d20 update. :( 2) If your on a Class Special and after Post-Level/10000 you don't need to use this macro at all. Just use "field[xTotalLev].value" like you did in your script above as it will already contain the value you want. What is also great is if you bootstrap the class special to a different class it will also work for that classes without making changes. |
Alright, I went to my old version of the code. Still buggy, but I sent in a bug report to support. Hopefully, they can fix my crashing.
Again, thank you for all of your help. Next, Celestial Mystic. -S |
Quote:
|
Quote:
|
Gotcha.. well it will be one of the growing list of things I'll ask while at the Gencon this year....;)
|
All times are GMT -8. The time now is 06:29 AM. |
Powered by vBulletin® - Copyright ©2000 - 2024, vBulletin Solutions, Inc.
wolflair.com copyright ©1998-2016 Lone Wolf Development, Inc. View our Privacy Policy here.