[Log in / Register]
| News | Chat | Pastebin | Donations | Tutorials | Rules | Forums |
| Maps | Skins | Icons | Models | Spells | Tools | Jass | Packs | Hosted Projects | Starcraft II Modding | Starcraft II Resources | Galaxy Wiki |
(Keeps Hive Alive)
Go Back   The Hive Workshop > Warcraft III Modding > WarCraft III Tutorials > General Mapping Tutorials


General Mapping Tutorials This board contains tutorials that provide generic mapping information.
Read the Rules before posting.

Reply
 
Thread Tools
Old 03-04-2009, 08:34 PM   #1 (permalink)
Registered User Interceptor
Walking Ghost...
 
Interceptor's Avatar
 
Join Date: Feb 2009
Posts: 211
Interceptor is on a distinguished road (78)Interceptor is on a distinguished road (78)
How to: Create a Full-working Custom Race

How to:
Create a Full-working Custom Race



Okay, here we go.
You have played wc3 for very long, beaten 1vs8 insane blindfold and so on. You are just bored from the ordinary 4 races: Human, Orc, Night Elf and Undead.
Maybe what you need is to try another race? If that's right, this tutorial is for you.
Enough talk, let's go straight to the topic.


What does a race contain?

Each race in wc3 is unique by itself. However, there are things which are similar in all races:

♦ User Interface (UI)
This is the interface that surrounds the game environment for each race - the frames of the mini map and the game map, the background of the inventory slot, etc. Although you does not necessarily notice, a part of the UI are also the text messages, icon for Idle Workers (F8) and the very important sound theme. Why is this important? It does not affect gameplay. What then? Well, it's pretty annoying when you play a Demon race and the frames are tree branches and butterflies, right? Or, if you run out of food, you get a message and hear "Create more Moonwells" while your food is produced by some kind of portals, for example. And, of course, it is especially annoying to see a Wisp idle worker icon, when your workers are everything but not wisps! What is also important to know when you create a custom race is that it MUST replace an existing one, preferably the most similar one. However, this SHOULD NOT AFFECT other players who are choosing the same race! I will explain this later, but what you have to understand is that the UI cannot be modified via triggers so choose wisely what race to replace and be sure that there is no other human player that plays a non-custom race since computer players are not annoyed by the UI disorders. It is not recommended to base your race on undead unless your buildings use blight terrain.

***To solve the problem, you need to do the following***
- For Idle Worker Icon, open Advanced > Game Interface..., then select Use Custom Game Interface, find Icon - Idle Worker and change it from Peon to the desired one.
- For the Text Messages, open again Advanced > Game Interface..., then scroll down to Text - General - '|cffffcc00You will be revealed to your opponents until you build a [...]|' and change it, along with the other similar messages (A gold mine has collapsed, A gold mine is running low, Build more [...] to continue unit production, etc. What is important to know here is that commas in text fields sort the text messages in their normal race order. For example, if you have chosen to replace the Night Elf race, the custom text should be after the third comma.
- For the Sounds, in the same panel Advanced > Game Interface..., scroll to the Sound options and edit all, except Sound - Music - Defeat, Sound - Music - Victory and Sound - Place Building. If you have better ideas for the three unedited options, you can use them, but it's really not necessary to show such puritanism. In my map I have replaced all of them with the Naga equivalents used in the Sentinel campaign in The Frozen Throne. They really do work not only with Naga, but with most custom races, with the exception of the "Build more Coral Beds" which is too obvious. Anyway, since sounds are (almost) impossible to find, you can either use the naga ones, to record your own, or mute the volume (lol). Up to you ;)
- For the Frame (UI) in the Game Interface you must edit the two Image - Console Inventory options and the four Image - Console Textures. Hell, if you find textures for these, PLEASE write me an e-mail! Else, if you're unlucky, like me, the choises are either crying to a good friend to make you one (lucky you) or make one yourself. Again, your choise.


♦ 4 Heroes
Yeah... after trying to record a weird sound in the place of "Summon More Ziggurats" you realise that you don't have the 4 Heroes yet! Thinking of it as an easy part is a heavy delusion! You must very carefully design models, icons, stats and skills for your 4 Heroes, keeping the ballance between their skill strenght, unique role and being careful not to make them too weak or strong compared to the other races' heroes. How to design your Hero is entirely up to you and there are plenty of other tutorials about that. However, I would like to stress you the importance of these:
- DO NOT base your custom Hero on a TAVERN or CAMPAIGN Hero! This will cause a really bad bug when you train the Hero in the altar and will finally lead to the recreation of the Hero. NOTE: This was lately proved wrong. I still need to redo my tests. Until then, keep following the rule.
- Pay special attention to all Arts, Animations and Tooltips. Ignoring that may cause the really annoying green icons when pressing F10, the damn Tool tip missing! message, the really weird thing that your Hero is 3 times bigger than his shadow/selecting circle, or the stupid fact that he fires arrows from his legs while holding an axe. So, really, be careful. Also notice that all heroes use X0-Y1, X0-Y2, X1-Y2 and X2-Y2 buttons when they are trained in the Altar.


♦ 10-11 Buildings
Every race must contain:
- 3-level Town Hall,
- Basic War Unit Creation Building,
- Lumber Mill Type Building (Upgrader),
- Defensive Structure,
- Altar,
- Food Producer,
- Advanced War Unit Creation Building,
- Caster Creation Building,
- Item Seller Building and
- Ultimate War Unit Creation Building.
Orcs are a good example. Humans contain a Blacksmith for upgrades, which is separate from their Lumber Mill, Night Elves's Lumber Mill is not exactly a Lumber Mill since they do not cut trees, and Undead have a Haunted Gold Mine instead of Defensive Structure (they use their Ziggurats for defense) and have an additional Sacrifical Pit. It is good to add an original and exceptional structure to your race. If you also get the idea of another unique way to transport recourses, it will be excellent. However, always remember that you cannot have more than 11 buildings.


♦ Units
Each race has:
- minimum 1 worker,
- minimum 1 type of invisibility detection,
- 3 casters,
- 2-3 air units,
- minumum 2 siege units (one of them must be mechanical) and
- minimum 1 summoned unit.
Following this scheme keeps the ballance of the game or at least make its fragility less sensible. Note that there is strict table of tier levels and upgrades that unlock higher level units. And when we speak about upgrades...


♦ Upgrades
An upgrade building's presence is a must! It should contain 4 kinds of upgrades:
- A 3-level attack upgrade for the 1st kind of units (usually melee)
- A 3-level defense upgrade for the 1st kind of units
- A 3-level attack upgrade for the 2nd kind of units (usually ranged)
- A 3-level defense upgrade for the 2nd kind of units (usually ranged)
Again, adding one additional upgrade that does not ruin balance may be a good idea (like Ultravision, Spiked Barricades, Corpse Spawning in Graveyard, etc.)
Upgrades must also include the backpack upgrade (for inventory in the Town Hall) and the Town Hall upgrades themselves.
The Caster Trainer must contain basic and advanced training for each caster where is necessary (but at least 2 such upgrades).
Also there must be upgrades for units in the other war buildings (2-3 in the basic, 3-4 in the advanced, 1-2 in the ultimate). The upgrades must require the proper tier levels.


♦ Items
There is also a rule for the items that are contained in the Item Shop building. The 2nd row is available in tier 2 town hall and the 3rd row - in tier 3.
The 1st row should contain:
- Level 1 race-unique item (like regeneration ones for human/orc, skeleton summoner for undead and eclipser for elf)
- Lesser Clarity Potion
- Random level 1 item (mechanical critter for human, flag of speed for orc, blight creator for undead, detect-invisibility consumable for elf)
The 2nd row should contain:
- Healing Potion
- Mana Potion
- Scroll of Town Portal
- Optional: random level 2 item (similar to level 2 items in goblin shop)
The 3rd row should contain:
- Orb attack item
- Random level 3 item (similar to level 3 items in goblin shop)



Implementing the race

OK, you have finished the object stuff (finally!). What is next is how to make your race actually work.
The effects of UI edition in game interface apply to all races or at least to the race you have replaced. That's why it is NOT recommended to play other race than the custom one when using the map if you're not a computer player. Also, since it's a custom race, you have to make a lot changes here and there in order to make it a completely playable race. Here is the Step-by-Step guide.

1. Open Advanced > Gameplay Constants and scroll to the Techtree section. Add your Altar, Heroes and Tier Halls in the appropriate places (Techtree - Dependency Equivalents - Hero/Altar/Tier ... Hall) and modify the text tooltips (Techtree - Dependency Equivalents Text - Tier 1/2/3 Hall) adding the names of your custom race's Tier halls.
2. Make the Melee Initialization trigger look like this (do not add the functions in the -------- ... --------, they are comments to make understanding the trigger more easily):
Melee Initialization
Events
Map initialization
Contitions
Actions
-------- Remove the Victory/Defeat conditions --------
Melee Game - Use melee time of day (for all players)
Melee Game - Limit Heroes to 1 per Hero-type (for all players)
Melee Game - Give trained Heroes a Scroll of Town Portal (for all players)
Melee Game - Set starting resources (for all players)
Melee Game - Remove creeps and critters from used start locations (for all players)
Melee Game - Create starting units (for all players)
Melee Game - Run melee AI scripts (for computer players)
Player Group - Pick every player in (All players) and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Picked player) controller) Equal to User
-------- Add here the replaced race, in my case Orc --------
(Race of (Picked player)) Equal to Orc
Then - Actions
Unit Group - Pick every unit in (Units owned by (Picked player)) and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
-------- Here you add the unit type of the original race's town hall, in my case Great Hall --------
(Unit-type of (Picked unit)) Equal to Great Hall
Then - Actions
-------- Here you add the Town Hall of your race, here my race is goblin --------
Unit - Replace (Picked unit) with a Hall of Knowledge using The old unit's relative life and mana
Else - Actions
-------- Here you add the Worker units of your race --------
Unit - Replace (Picked unit) with a Engineer using The old unit's relative life and mana
Player - Limit training of Heroes to 3 for (Picked player)
-------- Here you add each of your custom heroes, and be sure that no one of them is based on tavern or campaign hero --------
-------- Some of mine may sound as if they are based on such heroes, but they're not --------
-------- I have based them on Blademaster and Far Seer and changed all animations --------
Player - Limit training of Tinker to 1 for (Picked player)
Player - Limit training of Alchemist to 1 for (Picked player)
Player - Limit training of Exterminator to 1 for (Picked player)
Player - Limit training of Goblin Miner to 1 for (Picked player)
Else - Actions
Do Nothing

POSSIBLE ISSUES:
- If at the beginning all town halls are at the center of the map, check player properties in scenario menu - usually it's starting location problem
- If you can train all heroes without upgrading town hall, you have not added tier requirements via the object editor or you have based them on tavern/campaign heroes <- This was proved wrong, but I still need to redo my tests on it, until then, keep following the rule.
- If you see blight and your buildings don't use it, you have based your race on undead and the blight is from their mine and town hall
- If you see weird animations like dying entangled gold mine, hide units before replacing them
- If you get a message that you will be revealed unless you build a ... you have not deleted victory/defeat conditions from the melee game actions
- If a problem still exists, send me the map or ask in the tutorial thread (this one) but avoid pm-ing me





What's to come?

OK, let's be fair. You should have noticed that there are no Victory/Defeat conditions. What does that mean? Simply:
- There won't be "revealings" if someone runs out of town halls;
- If you lose all your buildings you won't get a defeat message;
- If you kill all your enemy's buildings you won't get a victory message

The problem is that Melee V/D conditions consider only basic town hall units as real town halls, no matter what you have typed in gameplay constants. That means if you enable that function you will lose/win when you destroy/run out of buildings, but you will be also revealed 2 mins after the beginning of the game, getting unusual annoying messages.
So now, I'm working on a, unfortunately very complicated, trigger to enable players win/lose the game.
It is working (with very rare exceptions) but I'm looking for a better solution.
Any ideas would be greatly appreciated!
If you want a trigger to circumvent this issue, then see this post by Retera:
http://www.hiveworkshop.com/forums/2378104-post50.html
I hope I have helped you.


~Interceptor

Last edited by PurgeandFire; 10-21-2013 at 05:37 AM. Reason: Added post
Interceptor is offline   Reply With Quote
Old 03-08-2009, 11:41 AM   #2 (permalink)
Registered User xul1ganas
Love my Avatar <33 xD
 
xul1ganas's Avatar
 
Join Date: Feb 2009
Posts: 50
xul1ganas has little to show at this moment (5)
Thanks for nice tutorial. Very helpfull. I will add u reputation.
__________________
Current Project:
Vengeance For Suthi!
Strand of the Ancients #Closed.
xul1ganas is offline   Reply With Quote
Old 03-08-2009, 11:52 AM   #3 (permalink)
Registered User M4stah
┌∩┐(◕_◕)┌∩┐
 
M4stah's Avatar
 
Join Date: Feb 2009
Posts: 746
M4stah has a spectacular aura about (133)M4stah has a spectacular aura about (133)M4stah has a spectacular aura about (133)M4stah has a spectacular aura about (133)
For every main base type a player builds, add a number to a integer array and hwen it reaches zero use visibility and possible defeat triggers.
__________________
Blades of Honour My melee-style map with unique gameplay in development! Any ideas or help can be posted here I also ned a skinner.
Hey RPG makers! need a easy system to add triggered bonuses to item sets? try this!
Want your map reviewed?My tutorial will help you make it attractive to review!
M4stah is offline   Reply With Quote
Old 03-08-2009, 12:56 PM   #4 (permalink)
Registered User Interceptor
Walking Ghost...
 
Interceptor's Avatar
 
Join Date: Feb 2009
Posts: 211
Interceptor is on a distinguished road (78)Interceptor is on a distinguished road (78)
A player is defeated when s/he loses all his/her buildings. That's why current triggers watch the number of buildings via variables that change when a building is began or canceled/destroyed.
__________________
In nomine Patris, et Filii, et Spiritūs Sancti.
Naga UI skin
How to: Create a Full-Working Custom Race
Interceptor is offline   Reply With Quote
Old 03-08-2009, 08:47 PM   #5 (permalink)
Registered User Element of Water
He has beautiful eyes...
 
Element of Water's Avatar
 
Join Date: Aug 2008
Posts: 2,333
Element of Water is just really nice (351)Element of Water is just really nice (351)Element of Water is just really nice (351)
It is not possible to make the proper melee Victory/Defeat conditions with altered races in GUI (without lots of custom script). You can have a good attempt, but it will never be perfect.
Element of Water is offline   Reply With Quote
Old 03-08-2009, 08:51 PM   #6 (permalink)
Registered User Super-Sheep
Inactive.
 
Super-Sheep's Avatar
 
Join Date: Oct 2006
Posts: 2,881
Super-Sheep is just really nice (391)Super-Sheep is just really nice (391)Super-Sheep is just really nice (391)Super-Sheep is just really nice (391)Super-Sheep is just really nice (391)
"Shop should have
- ...
- Lesser Clarity Potion
- ..."

Undeads dont have this. :p
Super-Sheep is offline   Reply With Quote
Old 03-18-2009, 09:11 PM   #7 (permalink)
Registered User LN.Angel
User
 
LN.Angel's Avatar
 
Join Date: Jun 2008
Posts: 36
LN.Angel has little to show at this moment (2)
i like it :)
i tryed it myself to crate a naga race :D

but i got a better project now
__________________
Working on "Outland Custom hero Arena (light)^^"

Work done 60%
Im searching 4 testers :) i prefer german but in english it works too :D

Nag Defense 40%
LN.Angel is offline   Reply With Quote
Old 03-20-2009, 03:18 AM   #8 (permalink)
Registered User Traxamillion
WTF is this nerd shit?
 
Traxamillion's Avatar
 
Join Date: Sep 2007
Posts: 1,507
Traxamillion has disabled reputation
PayPal Donor: This user has donated at least $20 to The Hive. Short Story Contest #3 - Winner: A Family Torn Asunder Former Staff Member: This user used to be on the Hive Workshop staff. 
Very useful.

+rep
__________________
[22-45-54] Hakeem: Traxamillion, if it were me and my site, you'd still have ML access even if you weren't on staff.


Traxamillion is offline   Reply With Quote
Old 03-21-2009, 09:05 PM   #9 (permalink)
Registered User 3rgytr54
Your talking to a klutz.
 
3rgytr54's Avatar
 
Join Date: Apr 2008
Posts: 495
3rgytr54 has little to show at this moment (59)
About the town halls, there is a condition in the object editor called classified as:(right?) and it works.
__________________
3rgytr54 is offline   Reply With Quote
Old 03-22-2009, 05:22 AM   #10 (permalink)
Registered User Interceptor
Walking Ghost...
 
Interceptor's Avatar
 
Join Date: Feb 2009
Posts: 211
Interceptor is on a distinguished road (78)Interceptor is on a distinguished road (78)
It does not. Don't think I haven't tried. Gameplay constants, classifications, etc. do not help.
__________________
In nomine Patris, et Filii, et Spiritūs Sancti.
Naga UI skin
How to: Create a Full-Working Custom Race
Interceptor is offline   Reply With Quote
Old 03-22-2009, 12:37 PM   #11 (permalink)
Registered User 3rgytr54
Your talking to a klutz.
 
3rgytr54's Avatar
 
Join Date: Apr 2008
Posts: 495
3rgytr54 has little to show at this moment (59)
Ok, just making sure you didn't over look anything. I have used them before with a unit based off a regular town hall and it worked. I'm going to make sure that I remember what I think I remember is that it worked. If it works I'll attach a map that it works on.
__________________
3rgytr54 is offline   Reply With Quote
Old 03-22-2009, 04:59 PM   #12 (permalink)
Registered User Interceptor
Walking Ghost...
 
Interceptor's Avatar
 
Join Date: Feb 2009
Posts: 211
Interceptor is on a distinguished road (78)Interceptor is on a distinguished road (78)
It works if you modify an existing town hall, but not if you create a new, add the classification, add it in gameplay constants, don't delete the V/D conditions melee action and use it in your map like that.
__________________
In nomine Patris, et Filii, et Spiritūs Sancti.
Naga UI skin
How to: Create a Full-Working Custom Race
Interceptor is offline   Reply With Quote
Old 03-22-2009, 05:27 PM   #13 (permalink)
Registered User Deathcom3s
Insert Title Here
 
Deathcom3s's Avatar
 
Join Date: Dec 2007
Posts: 1,066
Deathcom3s is a jewel in the rough (182)Deathcom3s is a jewel in the rough (182)
PayPal Donor: This user has donated to The Hive. Former Staff Member: This user used to be on the Hive Workshop staff. 
Nice tutorial. I see no reason for it to not be approved.

+rep.
__________________

Last edited by Deathcom3s; 03-26-2009 at 01:59 AM.
Deathcom3s is offline   Reply With Quote
Old 03-25-2009, 02:10 PM   #14 (permalink)
Registered User utror12
MasterHoasis biggest fan
 
utror12's Avatar
 
Join Date: Nov 2008
Posts: 121
utror12 has little to show at this moment (33)utror12 has little to show at this moment (33)utror12 has little to show at this moment (33)utror12 has little to show at this moment (33)
very nice thank you so god damm much i + rep XD
utror12 is offline   Reply With Quote
Old 03-28-2009, 08:52 PM   #15 (permalink)
Registered User Pyritie
Gone
 
Pyritie's Avatar
 
Join Date: Nov 2006
Posts: 11,657
Pyritie has been here far too long (2563)Pyritie has been here far too long (2563)Pyritie has been here far too long (2563)
Former Staff Member: This user used to be on the Hive Workshop staff. User of the Year: 2009 Super Donor: This user has donated at least $100 to The Hive. Hero Contest #1 - Winner: Slatie 
Approved lol
__________________
I'm out of here. If you need me, you know where to find me.
Pyritie is offline   Reply With Quote
Reply

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Create custom tileset Cyrax86 Recycle Bin 0 10-08-2008 01:23 PM
Making a custom race(anything custom) ironmyr Requests 21 08-26-2008 01:01 PM
How to create custom ubersplat Borax World Editor Help Zone 2 05-19-2008 07:32 PM
Custom Race SoulDaemon World Editor Help Zone 3 08-16-2007 09:31 AM

All times are GMT. The time now is 12:57 PM.





Powered by vBulletin
Copyright 2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.5.1 PL2
Copyright © Ralle