PDA

View Full Version : Help


Andromeda
01-13-2008, 02:52 PM
Hi
First of all, I apologize for my English...
I create a skirmish map (me against 3 AI players) so far everything alright, but the problem is I want to start a game having a few buildings and units, that what I do? I need a script?

thanks:)

apple23
01-13-2008, 10:06 PM
as far as i know, you cannot do this with a script, because there is no reference to any of the human players in a game, therefore, you cannot refer a script that creates/transfers control of a building or unit to another player.

Delta-4
01-13-2008, 10:48 PM
You could always make neutral, capturable structures near a starting position and unmanned vehicles. Train some basic infantry, capture the buildings, then send them into the vehicles.
If you're trying to get starting infantry, though...well, simply put, you're screwed.

Me Myself & Pi
01-14-2008, 11:25 AM
as far as i know, you cannot do this with a script, because there is no reference to any of the human players in a game, therefore, you cannot refer a script that creates/transfers control of a building or unit to another player.


Actually, there is a player to refer to the Host of the game, but no other players that refer to other humans in a multiplayer game. Note, after you follow my steps below no music will play. You can add some of your own music using the action, "Player a music track." in the Multimedia\Music folders.

Since this map is just for you & other skirmish players, you shouldn't have any problem.

1) Name the buildings/unit you want to start with & put "Player N" in the beginning, Where "N" is the number of the start position. So if you place buildings around Player_3_Start, put "Player 3" in front of the names of the units & buildings to be transferred to the player there. Do this for all 4 positions.

2) Open up the scripts & create a new one in the PlyrCivilian folder.

3) For the condition, choose, "Player\Start position."

4) For the player in this action, choose <This Player's Enemy>. (This player refers to the Host of the game. Not entirely sure why it works though.) Now choose 1 for the start position.

5) For the action of script, choose, "Player\Transfer\Transfer a specific unit to the control of a player."

6) Choose <This Player's Enemy> again for the player, & Choose the first unit on the unit list that starts with "Player 1"

7) Copy this action & choose the unit on the list. Repeat this until you've got all the units in each action.

8) Close the script (by hitting OK & not Cancel!) & copy it. (You may want to rename the copied script to stay organized.)

9) In the copied script change the start position in the condition to "2", & Change the action to the units that start with "Player 2". Repeat this for the next two start positions.

10) Now you may want to test the map. Play the map in Sand Box mode (Sand Box mode is just playing by yourself, no enemies or allies.) & place your self in each of the 4 positions & check to see if the buildings are transferred to you correctly. Undoughtedly, you'll have errors (which happens to everyone) so fix them & test your map repeatably until it's perfect.

11) Now Copy the 4 scripts & change the players to, <This Player> in all of them. (This may take some time... Have Fun!)(<This Player> will refer to the skirmish player at which you put the script in. So if you put it into the SkirmishAmerica folder, <This Player> will be, SkirmishAmerica. Same goes with the other skirmish Players.)

12) Test the map again & check to see if the USA player will get his stuff accordinaly. You may want to create a new script in the PlyrCivilian folder that will reveal the map for you. Note, the player won't build anything yet.

13) Move the copied scripts to the first skirmish player's folder. (Which will probably be Skirmish America.)

14) Copy the moved scripts & move those copies to the next folder. Do this until you have the scripts in all of folders except the Neutral folder.

15) Now test your map to see if the buildings will be transferred correctly. They should be if the initial scripts for the USA player worked alright.

16) Now to get the AI to build stuff again, you'll need to import the skirmish scripts. (Putting any scripts into skirmish folder or the Neutral folder disallows the map from using them. So you'll have to import them.) Make sure you're almost done with your map before this because after you import the hundreds of the scripts that run the skirmish players, it will take almost a minute to load up the script window each time.
So that you won't have to hunt for the scripts in the game directory, you can download them from this forum site: http://cncmaps.net/index.php?showtopic=648

17) In the script window, uncheck Auto Verify, click on Import, browse for the place you downloaded & extracted the ZIP folder, & import. Every thing should work now!

Don't hesitate to ask any questions about this post. it's so long that some things probably won't make sense to you.

Andromeda
01-15-2008, 08:04 AM
Thank you very much for your valuable assistance :)

Me Myself & Pi
01-15-2008, 04:58 PM
Wow! You accually did understand every!