vaskata09
  • vaskata09
  • 51.5% (Neutral)
  • Private Topic Starter
14 years ago
Hey guys,
I am a huge fan o f this community and i decided to join it!
The Command and Conquer:Generals along with the Expansion Zero Hoyr are my alltime favourites of the series and i am working on some maps and missions in world builder and i have a couple of questions, i hope you can help!

1:
There is a problem i have in my Script writing: When i decied to add a script in the game such as :
*** IF ***
     Player 'player_1' has units in  area 'Carbomb'.
*** THEN ***
   Unit 'Bomb' attacks anything in  area 'Carbomb'
"player_1" Should be the player which is in game, but the Script dosn't recognize the Player and the script dosent work and the Unit 'Bomb' Does nothing. How can i make the scripts recognize the player(s)?
2:
How Can i make a unit, like 'AmericaVehicleHumvee' or other units, from one team/player change sides and be under the command of another player? Like you enter an Area and you gain control of a battalion or somthing else? ❓
3:
Same as 2, but in the Begining how can you start the game with a dozen of units? Who are on your side as you begin the game?
4:
And i wonder is Necesery the "CombatZone" to be connected with inner perrimiter of the Player base to make the AI attack from there? And also those say 'Center1" have to be for Player 1? Or can it be for player2 but named 'Center1' or is it necesery for them to be named acordingly?

Thank you In advance! 😉
,Vasko
"At some point they all break and fall..."
Sponsor
stefandeath
14 years ago
Player 1 = "player0"
Player 2 = "player1"
Player 3 = "player2"
Player 4 = "player3"
Player 5 = "player4"
Player 6 = "player5"
Player 7 = "player6"
Player 8 = "player7"

The Player IDs are the slot you put them in.

*** IF ***
     Player 'player0' has units in  area 'Carbomb'.
*** THEN ***
   Unit 'Bomb' attacks anything in  area 'Carbomb'

That should be the script.

2 and 3:
Player -> Transfer -> Transfer a specific unit to the control of a player
*** IF ***
     True (or take an area of effect
*** THEN ***
   'Unit' is transferred to the control of 'player0'


My self made CCG Zero Hour Maps can be downloaded from here . Readme files are included.
My Uploaded Race Maps: Race map v3.1  | Race Map v2.5 
vaskata09
  • vaskata09
  • 51.5% (Neutral)
  • Private Topic Starter
14 years ago
Cheers! 👍
Thanks alot mate!
"At some point they all break and fall..."
NOP
  • NOP
  • 100% (Exalted)
  • Major
14 years ago
4:
AFAIK no, it doesn't need to be connected, the combat zone can be a tiny area anywhere on the map, and I recommend not connecting them... For a standard map Center1 is always player 1...