crashdodgers
12 years ago
Hi, can some please take a look at these scripts and tell what I did wrong, as the the 3 teams do not enter the required building.

** IF ***
True.
*AND* Player 'player0002' has entered building named Unit 'WatchTower01'
*AND* Player 'player0002' has entered building named Unit 'WatchTower02'
*AND* Player 'player0002' has entered building named Unit 'WatchTower03'
*** THEN ***
Unit 'Team 1' garrison building Unit 'WatchTower01'
Unit 'Team2' garrison building Unit 'WatchTower02'
Unit 'Team3' garrison building Unit 'WatchTower03'
Sponsor
acidbrain
12 years ago
You have to create the team first in the edit dropdown menu from wb, same place where the playerlist is at, create new team for the player and give it a name, now place the units for the team on the map, select them and go to the section where you name a unit usually, the section below is for the teams, scroll to find the team you created in the teamlist and select it.


** IF ***
    True.
*** THEN ***
   Team 'Team 1' garrison building Unit 'WatchTower01'
   Team 'Team2' garrison building Unit 'WatchTower02'
   Team 'Team3' garrison building Unit 'WatchTower03'


Panem et kirkinses
crashdodgers
12 years ago
Well I have done everything, but still no movement of the teams.
*** IF ***
True.
*** THEN ***
Unit 'Team01' garrison building Unit 'WatchTower01'
Unit 'Team02' garrison building Unit 'WatchTower02'
Unit 'Team03' garrison building Unit 'WatchTower03'
acidbrain
12 years ago
Upload your map somewhere so i can make an example for you, you can upload it Here  if you have an account.
Panem et kirkinses
acidbrain
12 years ago
Ok, i took a look at your map.
The problem is that you want to garrison a building with the PLAYER and that is the player who plays the game, it's not computer controlled.
The script is ok but use it for a computer controlled player.
I emailed you new map with only a guardtower and a team in it, the team garrisones the tower, take a look at the team in 'Edit Teams' the team is from the COMPUTER.
This method is frequently used in missions, if you want to use the garrisonstuff in skirmish maps you can do it with subroutines.
Here  is the worldbuilder manual btw all the basic stuff is in there.
Panem et kirkinses