Not all units have all animations though. For example if you use a Peasant model and add the word "gold" then the peasant will always look like he is carrying gold. They change which animations are displayed, depending on the model of the unit. What do the "Art - Required Animation Names" entries do? If this is empty (which it is by default for all units), the hero can revive at any building which has the "Techtree - Revives Dead Heroes" field turned on. The "Techtree - Hero Revival Locations" field can be used to limit the places where the hero can revive to specific buildings. How do I change where my heroes can be revived? Limit training as above, but use the number "-1". How do I let players build multiples of standard heroes? Simply add your custom hero to the list under Techtree - Dependency Equivalents - Hero. These special equivalents can be modified from the Advanced->Gameplay Constants dialog in the main window.
Warcraft 3 world editor gameplay constants code#
It needs to be considered a dependency equivalent of the special hero code ('HERO'). To make the custom hero count as a hero for use with the action To limit training to one per hero type, specify the limit explicitly for each hero type with the trigger action How do I make my custom heroes build like standard ones? In the main editor window go to "File->Preferences->General" and check "Allow negative real values in object editor". Then set your attack type to "msplash" or "artillery". Make sure you have all of the "Area of Effect" entries for your attack filled in, including targets. How do I give a unit an area of effect attack? This includes boots of speed, bloodlust, and other such effects. I changed the movement speed to 1000, why isn't my unit moving really fast? You can't make a unit lighter using tint values. You can set the values lower to remove color from a unit, making it darker. What do the "Art - Tinting Color" values do? Also make sure both attacks are enabled and have range. For example many units have different attacks for units and buildings. Make sure the two attacks have different kinds of targets.
Some doodads, like rocks or flowers, have variations. How do I make another object look like a doodad? To use the old version of a model unset all options in "Art - Model File - Extra Versions". Some models changed with the Frozen Throne. For example if a unit has a Ghoul model and you set the "Art - Required Animation Names" to "lumber", then you will turn the Ghoul into a mini-Tauren. For some unit and destructible models there may be different animations you can play. How do I change what an object looks like?Ĭhange the "Art - Model File" entry. How do I find an object or a field for the object? Go to "Module->Object Editor" and click on the tab that you want. They can have abilities, but they only apply while in a hero's inventory. Items can be created, destroyed, picked up, and used.They cannot be changed in any way during the game. Bushes, flowers, and rocks are doodads.Some special purpose doodas have other functions as well. You they can be created or destroyed during the map, but they can't be moved. They can have abilities, upgrades, and attacks. You can do pretty much anything to a unit. Buildings, troops and heroes are units.They will be covered in the abilities section of the FAQ. Abilities, upgrades, buffs, and effects are objects too, even though they can't be placed on the map. They are all objects, they can all be modified with the object editor, and they can all be placed on the map with the terrain editor. What are units, items, destructibles, and doodads?