This little group is for players who want to play with real oppomnets! If the game dosen't allow you to go online, this place is for you!

Forum Thread
  Posts  
TUTORIAL: Creating a defense map (Groups : Hamachi Servers Group : Forum : Mapping : TUTORIAL: Creating a defense map) Locked
Thread Options
XAttus
XAttus Group Leader
Jan 28 2009 Anchor

In this tutorial I try to write the steps of creating your own defense map.
Note: This is not a beginner tutorial, at least basic mapping skills are required!

STEP 1
Creating a basic map

First of all, you need to create the design and the skin of your map. While ZH is not designed for many gametypes,
don't create hills or mountains - because the units have slow path finding and the game will lagg if you try to block their way somehow.
Use the Place Object tool to set the building such as supply dock's, oil dericks and artilerry platforms.
Supply dock are located under the Civilian group.

Tip: probably the battles will be very big, so your Tech buildings will not stay for too long, unless you raise their Hitpoints.
In WB you will allways see a window called OBJECT PROPERTIES.
In that window you will find a cell named max HP , select the unit or building and write the HP number in the cell.
(A normal tank shell does 60 HP damage per shot.)

STEP 2
Making important things

We need to create starting points, and make the computer to be in the game.

Now select the Waypoint tool and click on the ground where you want to start. The Obejct properties window changes to
Waypoint options. you have to rename the waypoint, so write Player_1_Start in the upper cell. (you will see the name green on the battlefield above the waypoint.) Do this again to create a second (Player_2_start) ... starting point for human players.

However, you need a Starting point for the computer too. The process is the same, the only tricky thing you need to do is to set the starting point OUTSIDE OF THE MAP. (the border is shown by an orange line)
(Your silly friend will probably destroy the enemy command center before you can defeat the final wave if you place it on the map - this is the reason :)

The next thing is setting the computer in the game. Go to Edit > Player List . A table appears. You will find a button named: Set Skirmish Players. Click on that button, then click on OK. Done... :)

STEP 3
Building the attack waves

There's another tool for this, the Team builder tool. Open it.
In this tutorial, we will create attack squads for GLA. In the left panel you can see all generals. Click on SkirmishGLA, then click
Add New Team
.
A complicated window appears. Don't worry, we will use only a couple of the possibilities. Name your team, for ex. Wave1.
You will see a line something like this: Min. Max. Unit type
A chart should look like this: 5 10 GLAscorpion (for example)

There are 7 charts under it. Each has a button with three dots. (...) << Click on this button to add a unit to your team.
Then write a number under the Min. Max. If you write a different number to each box, the unit ammount will be set randomly between the numbers when the team spawns.
When you finished adding your attacking units, you have to check tree boxes:
Automatically Reinforce whenever possibe (check!)
team is AI recruitable (check!)
Team is created once and only once (check!)

Then click OK. Repeat this step to create a second attacking team.

STEP 4
Scripting

Have you ever used scripts? they are something like programming the AI for tasks. These tasks will control the computer during the game.

Open the Waypoint tool again. You have teams now, but where do they come from? The anwer is that they come from nothing :D
You need to set spawn points where you want the enemy units to spawn to the battlefield.
Click on the ground where you want a point, then rename it to Spawn 1 or to something like that.
Create 5 spawn points!

Now open Edit Scripts tool. A window appears with folders. Click on SkirmishGLA, then click New Script.
In this case, we will set the time before the 1st wave to 4 mins, and there will be 2 mins between each wave.

1. name your script to Wave timers and settings for example.
2. You will see 4 slides: Scipt Properties, Script Conditions, Actions if True, Actions if False
3. Click on Actions if true slide. Then click on New...
4. You will now see all the avaiable commands in C&C Generlas Zero Hour. (yes, there are lot of them :D)
5. go to:
Scripting >> Timer > Seconds Countdown Timer Set >> and the command is: Set Timer Enter a name here to expire in 240 seconds
6. Click OK everywhere.

Now create a second script:

1. Name it to Wave 1.
2. under the Script conditions slide, delete the True command. Then click on New...
3. Go to: Scripting/Timer Exipred the command is: timer enter the timer name has expired.
4. Under the Actions if True tab click on new...
5. Go to Team >> Create > Spawn a reinforcement team

I'll continue here....

Edited by: XAttus

Reply to thread
click to sign in and post

Only registered members can share their thoughts. So come on! Join the community today (totally free - or sign in with your social account on the right) and join in the conversation.