Hello there!
I tried to import one of the abilities from an entry in one of the hero contest, specifically this one: Swashbuckler Spellpack
The ability that I'm talking about is "Persecute".
I made sure to follow the instructions:
Then I gave the spell to one of my custom hero units, but the spell does not work correctly: It only takes effect when the hero is already attacking his target, and the buff doesn't wear off.
Since I don't know much about JASS (this is actually my first time trying to use a JASS trigger),
I thought that using already existing systems might be simple but to be frank, I am starting to lose my marbles over it (perhaps I should just stick to GUI
).
I don't want to upload my map here, since I have already put some work into it and I don't want it to be public yet, but what I could do, is send my map to one of the moderators so they can look into it (If one has time and willingness to do so of course
). Also, If you need any additional info, I will try to provide as best as I can.
Thanks in advance!
EDIT: Attached the map. If anyone wants to look into it, they should find the "Scripts" folder under the "SCRIPTS FOR SPELLS" comment and "WitchHunterSpells" right under that. All of those should be at the very bottom of the trigger list.
I tried to import one of the abilities from an entry in one of the hero contest, specifically this one: Swashbuckler Spellpack
The ability that I'm talking about is "Persecute".
I made sure to follow the instructions:
- I imported the "dummy caster" unit
- Imported the "missile dummy" unit
- Imported all the abilities (Persecute Buff, Mark and Main)
- Imported all the corresponding buffs (Persecute Mark and Buff) and made sure that they are in the Abilities' buffs
- Imported the required libraries and the "Persecute" spell trigger directly from the map
- I THINK I have configured anything that needed to be
Then I gave the spell to one of my custom hero units, but the spell does not work correctly: It only takes effect when the hero is already attacking his target, and the buff doesn't wear off.
Since I don't know much about JASS (this is actually my first time trying to use a JASS trigger),
I thought that using already existing systems might be simple but to be frank, I am starting to lose my marbles over it (perhaps I should just stick to GUI
I don't want to upload my map here, since I have already put some work into it and I don't want it to be public yet, but what I could do, is send my map to one of the moderators so they can look into it (If one has time and willingness to do so of course

Thanks in advance!
EDIT: Attached the map. If anyone wants to look into it, they should find the "Scripts" folder under the "SCRIPTS FOR SPELLS" comment and "WitchHunterSpells" right under that. All of those should be at the very bottom of the trigger list.
Attachments
Last edited: