| 02-28-2003, 09:33 AM | #1 |
I was playing around with the demon hunter metamorphis ability and this is what I want it to do: I want a unit to have the ability and when it is click I want the current unit to morph into a custom made unit of mine. The problem is when editing the ability it ask for a 4 digit code and I don't know what my custom unit code would be where do I fine that?emote_sweat |
| 02-28-2003, 09:42 AM | #2 |
I always do so: make a new map, load my unit data, make only one trigger which is: Events Player selects a unit Trigger: Display text message: (Convert Unit-Type of Triggering Unit to string). Then if you run the map and select the unit a text message should say custom_XXXX where the XXXX will be your unit's 4-digit code. MartinezTG |
| 02-28-2003, 10:39 AM | #3 |
You can also place that custom unit on the map, then create a blank trigger and use an event like "Unit - unit within range of <select the custom unit on map>". Then go to Edit->Convert to Custom Text in your Trigger Editor menu. Look at the function used for this event, and in there will be a match for your unit in the 4 digit code. This at least helps eliviate the need to fire up WC3 and run your map. |
| 02-28-2003, 11:37 AM | #4 |
Its the four letter code of what unit you use as the base code. Just look in the unitdata.slk for the the code. |
| 02-28-2003, 04:49 PM | #5 |
Cool! Thanks this was lots of help. Now my dwarf can turn red and go berserker lol :dance: Actually once my dwarven berserkers turns enrage and morphs in to a red dwarf when he changes back to normal his still red lol. |
