Custom feature question
Hello everyone,
I'm trying to figure out how to go about setting the duration of this custom class feature to a value based on whether or not a different ability was choosen. Please advise. if (#hasability[pngEleEBea] <> 0) then duration = field[xTotalLev].value else duration = field[xTotalLev].value / 2 endif |
Quote:
|
I'm not receiving any errors but the text is not updating as expected. If it helps I'll include everything below:
Code:
Phase: Post-levels Result: Elemental Body: Air (4 mins) Expected Result: Elemental Body: Air (8 mins) |
Quote:
to this: if (hero.childfound[pngEleEBea].tagis[Helper.ShowSpec] <> 0) then It looks like the #hasability is returning a 0, which could be due to it not working properly or the timing, which can vary depending on the thing in question. I don't use it myself. This new check should work assuming you don't have a script that removes the ShowSpec tag for some reason, and ultimately performs the same function. An alternative idea is to have the pngEleEBea thing assign a tag to the hero (such as User.EleBea) then you can check for the user tag on the hero. I would try the above method first though. |
That did it, thanks for the help!
I saw something that in my searches but didn't realize it worked quite that way. |
Quote:
|
All times are GMT -8. The time now is 12:28 AM. |
Powered by vBulletin® - Copyright ©2000 - 2024, vBulletin Solutions, Inc.
wolflair.com copyright ©1998-2016 Lone Wolf Development, Inc. View our Privacy Policy here.