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

How do i make an item that turns you into something?

Status
Not open for further replies.
Level 3
Joined
May 17, 2005
Messages
30
Hi i wanted to know, How do i make a item that turns you into something for example : your a melee hero and then when you click the item it turns you into a archer or something how do i do that?
 
Level 3
Joined
May 17, 2005
Messages
30
umm would it be possible for it to be a item so that when you click the item you stay as it for however long you want and it can be permenant until you click the item again (turning you back into wat you were before) Please post a picture on how to do it because im not too good with words :D
 
Level 3
Joined
May 17, 2005
Messages
30
Well since i suck to i guess could you show me how to do the When the unit picks up a item he gets a skill.
 
Level 12
Joined
Mar 10, 2008
Messages
869
Ok ill look into it... this will be tricky if you don't know much about World Editor

Copy and paste in custom buffs, the Buff Unholy Aura (object editor > buffs/effects > undead) and rename it "Morph" (near the bottom of the list of things) and rename the extended tooltip "This unit can morph" (the very bottom of the list)

Copy and paste in custom abilities, the ability Unholy aura and edit the stats of movement increase and hp regen to 0 then rename it "Morphing ability" and then find "stats - levels" then make the levels 1, then find "Level 1 - buff" then change that to the buff "Morph" that you made.

Make an item (Object editor > Items > Right click on custom items at bottom of list > create new item) in creating a new item, find the icon of "unholy aura" - the item name is helm of battle thirst then put the name up on the top something like "Helm of Morphing" then delete all the ability's of the helm then add "Morph" ability.

There's one problem with the next part, is there going to be a certain unit getting an item or multiple units? You will need to do some triggers if its multiple units.

(For single unit)Now, copy the ability "Destroyer Form" (Object editor > Abilities) Change the name to "Morph", change the icon to what you want. Change the "Normal form unit" to whichever the unit holding the item is, change alternate form unit to the unit you want it to turn into and then delete all morphing flags.
Create a unit that the ability lets it morph into, then make another ability, edit the same things to the opposite way round so it can morph back to the first unit.

If it is for multiple units i would not know how to do that, well, i do know how to do it but it will contain variables that can leak, sorry... you will need to ask someone else.

To give unit the ability when it gets picked up:
New Trigger
New event > Unit > Generic Unit Event > Unit acquires item

New condition > Boolean Comparison > ((Triggering unit) has buff Morph) equal to True

New action > Unit > Add ability > Add Morph to (Triggering unit)

To turn it off when unit drops:
New Trigger
New event > Unit > Generic Unit Event > Unit drops item

New condition > Boolean Comparison ((Triggering unit) has buff Morph) equal to False

New action > Unit > Remove ability > Remove "Morph" from (triggering unit)

Uh, got a bit lazy at the end
i wouldn't have needed to HAVE SO MUCH if you knew a DECENT AMOUNT of stuff about WORLD EDITOR

*Falls to sleep*

I may as well turn this in to a tutorial now...
 
Last edited:
Level 3
Joined
Jul 6, 2008
Messages
42
I gave a try by using spell : orc>chaos(editor surfix)
Note that you need to remove the technique requirement of this ability.

Effect of chaos(editor surfix) :
When this ability added to unit , it will automatically tranform.
Weird issue is , it will multiply the unit damage if u keep adding this ability into same unit ..

Hence , in this map , once u acquire the item , u can no longer take it off.
And no more than 1 of the 2 types of item can reain in a same inventory.

Erm , funny thing , footman can transform into hero by wielding the item , haha.
 

Attachments

  • morphing item.w3x
    20.9 KB · Views: 57
Level 8
Joined
Nov 9, 2008
Messages
502
I can't believe how many times this is asked xD

Anyway I gave someone a little example map before which uses chaos ability to transform unarmed into soldier when unit uses 'equip' ability on item. It's easy to make it auto when unit picks item up though.

Take a gander.
 

Attachments

  • equiping a weapon.w3x
    14.2 KB · Views: 58
Level 12
Joined
Aug 22, 2008
Messages
911
Make two seperate items and two seperate trigges.
First trigger -
  • Events - Unit - A unit uses an item
  • Conditions - (Item type of (Item being manipulated)) equal to FirstItemType
  • Actions
    • Unit - Replace (Triggering Unit) with a YourUnitType
    • Unit - Give (replaced unit) a SecondItemType
And such for the second, just otherwise.
And of course, you'll need to store the unit values in variables.
 
Level 8
Joined
Nov 9, 2008
Messages
502
Triggering that is a messy business. What if the unit u turned into gains some exp then u turn him back, u have to add then also the exp difference etc.
I found using chaos ability is best option.
 
Status
Not open for further replies.
Top