Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
I wonder is there a way to make any morphing abiltiy when cast to morph the unit into its other form without inheriting any abilities/items sold/units sold?? is there a way without triggers??
I wonder is there a way to make any morphing abiltiy when cast to morph the unit into its other form without inheriting any abilities/items sold/units sold?? is there a way without triggers??
After morphing you can save only such abilities as abilities added in world editor. Other abilities though add ability trigger would be removed, but you may create a dummy with targeted spell and give to this dummy all abilities you need to share.
When dummy cast targeted spell on the unit, you just need to add triggers to give all abilities back.
If you want more adequate way - use HASH tables
EDIT: Do you want an example with HASH?
After morphing you can save only such abilities as abilities added in world editor. Other abilities though add ability trigger would be removed, but you may create a dummy with targeted spell and give to this dummy all abilities you need to share.
When dummy cast targeted spell on the unit, you just need to add triggers to give all abilities back.
If you want more adequate way - use HASH tables
EDIT: Do you want an example with HASH?
This is exceptionally overcomplicated. There's a GUI action "Unit - Make <ABILITY> permanent" which will cause it to keep the ability between transformations. This just needs to be called whenever an ability is added to the unit.
This is exceptionally overcomplicated. There's a GUI action "Unit - Make <ABILITY> permanent" which will cause it to keep the ability between transformations. This just needs to be called whenever an ability is added to the unit.
Right, forgot that's only JASS. It is in WEU afaik, but I'm not using that. native UnitMakeAbilityPermanent takes unit whichUnit, boolean permanent, integer abilityId returns boolean
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.