• 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!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[General] How to morph unit without inheriting anythimng?

Status
Not open for further replies.
Level 11
Joined
May 16, 2016
Messages
730
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?
 
Level 45
Joined
Feb 27, 2007
Messages
5,578
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.
 
Status
Not open for further replies.
Top