• 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

Helper.RemoveCast

Frodie

Well-known member
Ok, a difficult one, but it should be the last one.

I have a Custom Ability that grants a spell list. I have that working fine.
The base class, (modern hero), is set up as a spell caster to with many various archetypes that some have spell casting and some don't, (i.e. Helper.RemoveCast). Works great, NP.

Well this Custom Ability will also be available to non-spell casting archetypes. Well it still works, but the "non-spellcasting" archetypes do not revert back in the UI to show spells.

So I tried to remove the "Helper.RemoveCast" tag, but no luck. So I though maybe I'll just make all archetypes spellcasters. Works fine, but HL gives a error that you must chose spells, even if none are available. Can easily just ignore the error message but can I do one of two things:

1) Somehow get rid of the Helper.RemoveCast tag. My script on the Custom Ability (tried at various timing) is:

perform delete[Helper.RemoveCast]

or

2) If I just make all archetypes spellcasters, is there a way to get HL to ignore the chose spells error if there is nothing to chose from.

I know it's crazy, but it's the archetype and last Custom Ability in the series.
 
1) What is that script running on? The custom ability? Since I don't see any transitions, it is trying to delete the tag from itself, and Helper.RemoveCast wouldn't be present on the custom ability (I think it'd be on the archetype, and then transferred to the class helper at an early phase/priority).

2) I don't think there is.
 
It's running on the Custom Ability. Yea the tag is on the archetype. I think that is the issue. I think it could be done with something like:

First 500
perform hero.childfound[arxyz].delete[Helper.RemoveCast]

But it would have to add 20+ archetype tags.
 
It looks like the tag carries out its effects at GlobalTest 10000.

You could mark each of the archetypes with a tag, and then foreach through all archetypes with that tag to delete Helper.RemoveCast.
 
Ok, let me look around and see if I can find something similar that I can mod to work. Any ideas what would already be in HL that might be close?
 
BTW - I did a test with

perform hero.childfound[arMPSensit].delete[Helper.RemoveCast]

At GlobalTest 20000, what would be a better timing?

Ah, never mind, it worked at GlobalTest 10000.

So unless I added all the archetypes, (as above), how would I have it search all the archetypes to remove the tag.
 
Last edited:
I don't think there is anything equivalent already in HL.

Since the tag operates at GlobalTest 10000, you want to delete it BEFORE then.
 
And as I said, to remove it from all the archetypes, you could make a new Custom tag, assign that to the various archetypes you want to cycle through, and then do

foreach pick in hero from BaseVary where "Custom.WHATEVER"
perform eachpick.delete[Helper.RemoveCast]
nexteach
 
Cool, Thank You. I think I will do as above and just add each archetype. Once it's done, I can just copy the ability and change the spell list easily.

Thank you!
 
Back
Top