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.)
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)
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]
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: