OK, the only thing you're going to do on the Object Properties window is name the building.
Now to make scripts, go to Edit/Edit Scripts. You should see the list of folders for the Skirmish players. (IF NOT, go to Edit/Edit Player List and click the button that says, "Add Skirmish Players". Back in the script section, Click PlyrCivilian. I would create a new folder naming it something like, "BuildingsPlayer0" the inside make a script for 'player0' in position1.
Script PropertiesYou'll notice when you click "New Script" you open a window showing the "Script Properties" tab. This is where you name the script and set general parameters.
Script ConditionsYou'll see "Script Conditions" is the next tab. By default it will say "IF True", but we want our script to check for a players start location, so click on the word "True" and then the "Edit" button. Click on the "Plus Sign" (+) by "Skirmish" and you should see "Start Position". Selecting "Start Position" will bring the actual script line into view in the window below. It should read.
Player '???' starting position is 0 .[/code]As we are working with 'player0' to start with, this is what you would type in where the three question marks are. AND we'll check if this person is in the first start location so we will enter "1" for that parameter. [code]Player 'player0' starting position is 1 .
Actions If TrueThe next tab at the top of the script editor is the
Actions If True tab, meaning if the conditions have been met, then the actions listed in this section will be performed. Again, you'll see the default line saying, "Null operation. (Does nothing.)", which we definitely don't want so again, select it then click edit.
This will bring into view a similar type of menu tree with the "Plus Signs" opening folders inside. You are wanting to transfer a named building to a player so go to "Player" then "Transfer" then select the script line to "Transfer a specific unit to the control of a player." Just like for the conditions, by selecting this script, the script line is shown below where you edit the variables adding the (Unit or Building name) and the player (player0).
Now I assume you have a whole list of buildings for start position 1, so copy this script line and edit the building name and repeat until you've got all buildings listed for this position.
Once done, click OK on all the windows and save your work. You will notice that when viewing the script that the "IF", "THEN" and "ELSE" (if used) are shown on your completed script. You should be able to test your map in the start location you just scripted for.
If when testing and all buildings transferred to you as expected, great. Go back and copy this script in the same folder and edit the "Start Position" in the condition of the script, and the building names in the "Actions if true" section of the script and save and test again. Repeat.
Edited by user
15 years ago |
Reason: Not specified