• Please note: In an effort to ensure that all of our users feel welcome on our forums, we’ve updated our forum rules. You can review the updated rules here: http://forums.wolflair.com/showthread.php?t=5528.

    If a fellow Community member is not following the forum rules, please report the post by clicking the Report button (the red yield sign on the left) located on every post. This will notify the moderators directly. If you have any questions about these new rules, please contact support@wolflair.com.

    - The Lone Wolf Development Team

Level/HD dependant racial abilities

TobyFox2002

Well-known member
Hello I'm a new user who as just started playing around with Hero Labs Editor functions and I really love it. That being said I am having some issues races.

I am trying to make it so that a racial special ability only shows itself if the the total number of levels is greater than or equal to 5. I've tried for about a day and a half and while the code compiles and doesnt give any errors it doesn't really seem to work. (I took the example from the Bardic Music and adapted it from checking levels of perform.)
Code:
     ~ Do we have at least 5 HD, If so apply the tag to show ourselves.
     doneif (herofield[tHitDice].value > 5)
     perform assign[Helper.ShowSpec]
     perform hero.childfound[xEQPonCan].assign[Helper.ShowSpec]
xPonyCan is Short for Pony Cannonball.
I originally thought the 'perform' was unique to a performance skill check and tried to remove them but apparently that gave me an error so I placed them back. I have experimented with other was of doing it, including full if else and using the requirement syntax from feats like leadership. A great deal of trial and error that seems to bringing me round in circles.

From what I have been able to read on the forums, this method wont remove the special ability so much as remove it from being displayed, which at the moment is as big of a project as my limited programing skills allow, though I would love a more complete way of doing it.
Any help would be appreciated as would any links to more comprehensive scripting guides, (the html tutorials were, limited)
 
Last edited:
Timing is very important in scripting work, so when showing your code, its important to also show the timing you chose. For something like this, you want to make sure you are running it post-levels or later.

That said, there is another way. When you bootstrap this ability to the race, you can set a condition to only bootstrap it if the character has 5 class levels. I believe the condition would look like this:

Code:
count:Classes.? >= 5

I believe the default timing of First/10000 should be fine.

Incidentally, the following code:

Code:
perform assign[Helper.ShowSpec]

"perform" is a function that basically means "do this". "assign[Helper.ShowSpec]" assigns the tag Helper.ShowSpec to the thing the script is on. This tag tells HL to show the special in the specials tab in your portfolio. You can reverse this with "perform delete[Helper.ShowSpec]". This also works with other tags.
 
Last edited:
Where exactly in the code does that bit of script go? I tried replacing the if statement with it didnt work I've replacing the if statement with and that didn't work either.

I even tried going to the race page and clicking on the bootstrap button and adding it to the condition button, and that didnt work. With that hero labs just gave me a warning that that function doesnt work properly at this time.

Code:
count:Classes.? >= 5
 
Placing it in the condition is correct. I tested this out, and it worked on my end. I don't know why you would get an error, especially one so ambiguous. Would it be possible to attach the .user file to this thread so I can take a look? (you can use the advanced reply feature to do this).
 
Last edited:
I placed this in my data folder and loaded it. I figured out the race in question is MLP, Pegasi and selected it. Pony Cannonball only appears with 5 or more class levels. I am not getting any errors of any kind, and the behavior is as expected. I would suggest closing and re-opening HL if you haven't already. Assuming everything compiles ok, this should work. It it still doesn't, maybe there's a problem with the portfolio.

Edit: Whoops. It appears that the special disappears when you have more than 5 class levels. That is very strange. I'll try to figure it out.

Edit #2: Ok. Delete the eval script on Pony Cannonball and check "Show in Specials List?". That should do the trick. I noticed some weird behavior, so you should probably do a quick reload of the files by pressing CTRL+R in the portfolio screen (or "switching" game systems) after you save the changes. That worked for me.
 
Last edited:
Is my little Pony flavored Role-playing catching on? I have some friends who are running a pony-flavored game using Pathfinder rules. They call it Ponyfinder, which I find hilarious.
 
I've looked at the ponyfinder setting, it is actually the name of it.. The full version is only available through Drivethrurpg. I'm sure there is nothing wrong with it, I just wanted to make my own.

The system is nearly complete on paper with over 100 spells (core classes), 50 feats in three categories. Four Complete races, working on changelings but man they are tricky.

Have three semi-functional classes that I haven't finished balancing and I am NOT looking forward to putting them into this since they well hard to explain but I'm sure the coding will be a nightmare, if its even possible at all.

But yeah, if you haven't been able to tell I am one of those wierdos.
 
Back
Top