• 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.

Type Morphing

Status
Not open for further replies.
Level 33
Joined
Mar 27, 2008
Messages
8,035
If you are using Bear Form or any other form-based spell, you cannot, I repeat, you cannot change its attributes (since they are from the same unit)
It's the same problem occur even you use the trick of "passive hero transformation" (tested)

Although, you can use this function to properly change attribute of a Hero;
  • Unit - Replace YourBaseHero with a YourNewHero(AttributeDifferent) using The old unit's relative life and mana
This function basically replaces the unit;
Remove Unit A from the game and say hello to Unit B (basically they are 2 different units)
 
Level 13
Joined
Jan 30, 2012
Messages
1,298
But if I replace Unit A. When I want to revert back again, i should replace Unit B to Unit A again, right? doesn't it complicated? and If my Unit A pick Tome of Strength +1. Then I replace Unit A into Unit B, who has bonus attribute, when i revert it(replace again), the Tome of Strength's effect is disappear, right?
 
you can pretty much change anything for HERO B using Passive Transformation like what I did here >>> http://www.hiveworkshop.com/forums/requests-341/couple-spells-needed-o-o-214514/
in your case, it just needs triggering, check if the id of the unit if it matches the saved id from an array integer using 'GetPlayerId',
if that's ok then transform and change the attributes when typing something, if you dont understand I can make it tonight
coz Im going to work...
 
Level 33
Joined
Mar 27, 2008
Messages
8,035
As I stated, mckill, you cannot change the Hero's Attribute even if you use the trick of passive transformation.

You MUST use a trick that relates to Removing Unit A from sight/whatever, Create Unit B method.

Then, after Unit B uses transform back, Unit B is removed from sight and say hello back to Unit A (same unit as initial transformation).

So, each unit has its own (transform-to) unit.
 
Level 33
Joined
Mar 27, 2008
Messages
8,035
He didnt say Atribute, but attributes or bonus attributes, from what I understand, add/sub the strength, agility & intelligence...

I want to create Morphing Trigger using GUI. When I type, ex: Morph. My Hero will turn into Alternate Form and at the same time change hero attributes. when i type revert, My Hero will turn into Normal Form and substract the bonus attributes. Can anyone give me the example, please? thanks

I think of this.

Yeah at the end of the line he said "subtract the bonus attribute", could be bonus STR/AGI/INT.

What a person... unclear.
 
Status
Not open for further replies.
Top