CNC_Mapper
  • CNC_Mapper
  • 64.25% (Friendly)
  • Private Topic Starter
13 years ago
Hey again. I've tried the;

*** IF ***
Player '' starting position is 2 .
*** THEN ***
Spawn Unit 'B_2_01' of type 'AmericaFireBase' on Team 'teamSkirmishAmerica' at waypoint Waypoint 'B_2_01'

But it hasnt seemed to work


i^love^mixery
13 years ago
it works (but only for skirmish players). ive built a test map and it worked perfectly so there must be a mistake in your scripts.
CNC_Mapper
  • CNC_Mapper
  • 64.25% (Friendly)
  • Private Topic Starter
13 years ago
oh.. So how would I get it to work for the actual player?
i^love^mixery
13 years ago

oh.. So how would I get it to work for the actual player?

Originally Posted by: CNC_Mapper 



that one will be tricky but it is possible if you know what you are doing.

the scripts will have to be in PlyrCivilian folder.

you will need 3 things:
- timer scripts
- Spawn scripts for each faction and base in folder PlyrCivilian -> SPAWN (create that folder and make it disabled by default)
- transfer scripts for each player in folder PlyrCivilian -> TRANSFER (create that folder and make it disabled by default)


timer scripts:

*** IF ***
true
*** THEN ***
set timer 'spawn' to expire in 0.10 seconds.
set timer 'transfer' to expire in 0.20 seconds.
set timer 'stop' to expire in 0.30 seconds.


*** IF ***
spawn expired
*** THEN ***
enable script SPAWN


*** IF ***
transfer expired
*** THEN ***
enable script TRANSFER



*** IF ***
stop expired
*** THEN ***
disable script TRANSFER
disable script SPAWN

spawn scripts (for each faction and start position, so up to 8x12=96 scripts on an 8 players map), all of them in SPAWN script folder
Condition:
Player -> Area -> Player has comparison unit type in area

'player0' has Equal To  1  structure of type 'AmericaCommandCenter' in the  area 'InnerPerimeter1'
or
'player1' has Equal To  1  structure of type 'AmericaCommandCenter' in the  area 'InnerPerimeter1'
or
'player2' has Equal To  1  structure of type 'AmericaCommandCenter' in the  area 'InnerPerimeter1'
or
'player3' has Equal To  1  structure of type 'AmericaCommandCenter' in the  area 'InnerPerimeter1'
or
'player4' has Equal To  1  structure of type 'AmericaCommandCenter' in the  area 'InnerPerimeter1'
or
'player5' has Equal To  1  structure of type 'AmericaCommandCenter' in the  area 'InnerPerimeter1'
or
'player6' has Equal To  1  structure of type 'AmericaCommandCenter' in the  area 'InnerPerimeter1'
or
'player7' has Equal To  1  structure of type 'AmericaCommandCenter' in the  area 'InnerPerimeter1'
*** THEN ***
Spawn unit base_01_def_01 of type "USA patriot whatever" for player PlyrCivilian at area base_01_def_01
Spawn unit base_01_def_02 of type "USA patriot whatever" for player PlyrCivilian at area base_01_def_02
Spawn unit base_01_def_03 of type "USA patriot whatever" for player PlyrCivilian at area base_01_def_03


transfer scripts, all of them in TANSFER script folder, needed for every base and every player, so up to 8x8=64 scripts.
this are ALL the transfer scripts needed for base 1, you will need the same scripts for EVERY base. all you have to change is the base_0X_def_01 and the starting position according to each possible base.


*** IF ***
Player 'player0' starting position is  1  .
*** THEN ***
Unit 'base_01_def_01' is transferred to the command of Player 'player0'
Unit 'base_01_def_02' is transferred to the command of Player 'player0'
Unit 'base_01_def_03' is transferred to the command of Player 'player0'


*** IF ***
Player 'player1' starting position is  1  .
*** THEN ***
Unit 'base_01_def_01' is transferred to the command of Player 'player1'
Unit 'base_01_def_02' is transferred to the command of Player 'player1'
Unit 'base_01_def_03' is transferred to the command of Player 'player1'



*** IF ***
Player 'player2' starting position is  1  .
*** THEN ***
Unit 'base_01_def_01' is transferred to the command of Player 'player2'
Unit 'base_01_def_02' is transferred to the command of Player 'player2'
Unit 'base_01_def_03' is transferred to the command of Player 'player2'



*** IF ***
Player 'player3' starting position is  1  .
*** THEN ***
Unit 'base_01_def_01' is transferred to the command of Player 'player3'
Unit 'base_01_def_02' is transferred to the command of Player 'player3'
Unit 'base_01_def_03' is transferred to the command of Player 'player3'



*** IF ***
Player 'player4' starting position is  1  .
*** THEN ***
Unit 'base_01_def_01' is transferred to the command of Player 'player4'
Unit 'base_01_def_02' is transferred to the command of Player 'player4'
Unit 'base_01_def_03' is transferred to the command of Player 'player4'



*** IF ***
Player 'player5' starting position is  1  .
*** THEN ***
Unit 'base_01_def_01' is transferred to the command of Player 'player5'
Unit 'base_01_def_02' is transferred to the command of Player 'player5'
Unit 'base_01_def_03' is transferred to the command of Player 'player5'



*** IF ***
Player 'player6' starting position is  1  .
*** THEN ***
Unit 'base_01_def_01' is transferred to the command of Player 'player6'
Unit 'base_01_def_02' is transferred to the command of Player 'player6'
Unit 'base_01_def_03' is transferred to the command of Player 'player6'



*** IF ***
Player 'player7' starting position is  1  .
*** THEN ***
Unit 'base_01_def_01' is transferred to the command of Player 'player7'
Unit 'base_01_def_02' is transferred to the command of Player 'player7'
Unit 'base_01_def_03' is transferred to the command of Player 'player7'

REMEMBER: this way will ONLY work for human players. if you want to get ONLY human players to work then THIS is all you need.

if you want to enable both, human and comp players then you will need to use BOTH methods.

this might look like too much but that are only ~164 scripts. (+96 more scripts if you want skirmish to work too). its a lot but still nothing compared to the 2.000 (or even more) scripts in that one map you have found.