Lone Wolf Development Forums

Lone Wolf Development Forums (http://forums.wolflair.com/index.php)
-   HL - D&D 5th Edition SRD (http://forums.wolflair.com/forumdisplay.php?f=89)
-   -   Displaying PP for Homebrew Psionic Handbook Mystic (http://forums.wolflair.com/showthread.php?t=65962)

Dragon5e May 28th, 2021 10:42 AM

Displaying PP for Homebrew Psionic Handbook Mystic
 
I looked at the Psi Points for the UA Mystic and tried to use it for the homebrew mystic. I have to give up. Any idea?

Here's the UA mystic snippet for Psi Points

~ If we're disabled, do nothing
~ doneif (tagis[Helper.Disable] <> 0)
if (#levelcount[Mystic] >= 1) then
field[trkMax].value += 4

Something about the homebrew Mystic choke on that and keep insisting there's like 0 mystic level and display a blank where the pp total would go. I thought mebbe homebrew mystic cannot count the levelcount. I don't know enough about levelcount. Thanks

dungeonguru May 29th, 2021 08:29 AM

Jave you checked out all of the Editor help files? Have you looked at the wiki over on github?

#levelcount[NAME] is a macro that counts all the tags that match Classes.NAME where NAME is the name you typed in when you created your class. If you changed the NAME of 'Mystic" to something like 'Homebrew_Mystic' then you would need to call #levelcount[Homebrew_Mystic].

Macroes and a lot of stuff are dependent on timing. If you run your script too early in timing then the fields may contain zero values. Make sure you are counting you level at least Post-Levels.

If you're not sure what I'm talking about for timing, search the forums - I think the Pathfinder forum has a couple of articles on timing.

Dragon5e May 29th, 2021 11:44 AM

Thanks. I tried the Homebrew_Mystic and it didn't go. Next I tried was the class id like cHomeMys and levelcount took it. Well I learned levelcount can take class name and class id like cHomeMys. What I learned levelcount[Mystic] do is to look at the class id associated with that class Mystic and your new class may have the name but not the class id. If you use the class id it should work now.

Dragon5e May 29th, 2021 12:49 PM

All right. I have since extended the Psi points and pp limit to the homebrew lurk and psychic warrior in Psionics handbook. At least these were easier as I can do a levelcount on fighter and rogue.

Dami May 29th, 2021 09:14 PM

Quote:

Originally Posted by Dragon5e (Post 295242)
Thanks. I tried the Homebrew_Mystic and it didn't go. Next I tried was the class id like cHomeMys and levelcount took it.

Macros that aren't checking a number will be looking for an ID, not names. This is for classes, abilities, types, etc.


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

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