MickLee
  • MickLee
  • 50.25% (Neutral)
  • Private Topic Starter
9 years ago
I'm working on a script that when you starting a skirmish/multiplayer ,and you will start with your own Building/armies.

Was wondering is that possible? Please do guide me thanks. 😄
Sponsor
klingondragon
9 years ago
It is possible. When I get back from holiday I can upload a map which does this.
MickLee
  • MickLee
  • 50.25% (Neutral)
  • Private Topic Starter
9 years ago
Thanks for the head up, Much appreciated. Been struggle for long time on this. Does this mean the map will contain the scripts for them to work?
UTD^Force
9 years ago
Hey there!
Yes, it's possible.
I haven't scripted anything for a year now :D
This is what I remember, hope it helps :)
Go to scripts, actions if true.
Then search for something like (unit/player) and search for the one that says unit ??? is transferred to the control of player ???

The unit you want to be owned by a player has to have a name, and you fill the first 3 question marks with that name.
For the player names, player0 is the host (you in skirmish matches).
player1 is the second player, and so on to player7 who is the 8th player.
Good luck.
I can't make sure because I don't have CnC downloaded on my pc atm 😞
A Muslim, ask me anything about Islam if you want
UTD^Force
Moderator and former map reviewer
Big fan of C&C Labs
klingondragon
9 years ago
That's the gist however I will upload a map with all the scripts and teams you need to learn.
klingondragon
9 years ago
here it is   Example.zip (3kb) downloaded 35 time(s).
MickLee
  • MickLee
  • 50.25% (Neutral)
  • Private Topic Starter
9 years ago
Thanks for everything klingondragon and UTD^Force. Much appreciated. 😁 Learning now

EDIT: Hello can you teach me in more detail? Not really understand...do we need to create a team/player first?
klingondragon
9 years ago
Add the skirmish players as normal. Then add a civilian player for each player you want to transfer armies to. Place whatever objects you want to transfer on the map and assign them to the correct civilian player. Use the provided script with a modification for which team to transfer and who you want to transfer to.
LordWizz
9 years ago

Add the skirmish players as normal. Then add a civilian player for each player you want to transfer armies to. Place whatever objects you want to transfer on the map and assign them to the correct civilian player. Use the provided script with a modification for which team to transfer and who you want to transfer to.

Originally Posted by: Klingondragon 



Thanks for helping anyway, but uhmm is there another way to do this...

Cuz i have 2 problems =P

  • 1. Your solutions only works with units, not with structures.
UserPostedImage 

  • 2. We can't create more teams, you renamed PlyrBossGeneral to team "0" =P
UserPostedImage 

UserPostedImage 

I want it like this:
At the start of the game

Player0 getting some starting structures that are already theirs
and
Player1 too and Player2, Player3, till Player7

i want all players starting with 10 powerplants orso..

that is possible but i just dont know how to do it the easy way

Please tell me someone knows how to do it the easy way ^^


Thanks upfront =]



UserPostedImage 
acidbrain
9 years ago

Then add a civilian player for each player you want to transfer armies to

Klingondragon wrote:


Use my method

Klingondragon wrote:


Really, omg?

What about making one folder in the civilian folder called 'Transfers'.
UserPostedImage
Make subroutine spawn/transfer scripts called 'Transfer_player0_Pos1', 'Transfer_player0_Pos2' etc in the 'Transfers' folder.



[ns A D][E N H]Start_Transfers
*** IF ***
    True.
*** THEN ***
  Run Subroutine 'Transfer_player0_Pos1'.

[S A D][E N H]Transfer_player0_Pos1
*** IF ***
    [???] Player 'player0' starting position is  1  .
*** THEN ***
  Spawn Unit 'Transfer_player0_Avenger' of type 'AmericaTankAvenger' on Team 'teamPlyrCivilian' at waypoint Waypoint 'Pos1_Spawn<i><b>*censored*</b></i>Here'
  [???] Unit 'Transfer_player0_Avenger' is transferred to the command of Player 'player0'
*** ELSE ***
  Run Subroutine 'Transfer_player0_Pos2'.

[S A D][E N H]Transfer_player0_Pos2
*** IF ***
    [???] Player 'player0' starting position is  2  .
*** THEN ***
  Spawn Unit 'Transfer_player0_Avenger' of type 'AmericaTankAvenger' on Team 'teamPlyrCivilian' at waypoint Waypoint 'Pos2_Spawn<i><b>*censored*</b></i>Here'
  [???] Unit 'Transfer_player0_Avenger' is transferred to the command of Player 'player0'
*** ELSE ***
  Run Subroutine 'Transfer_player0_Pos3'.

[S A D][E N H]Transfer_player0_Pos3
*** IF ***
    [???] Player 'player0' starting position is  3  .
*** THEN ***
  Spawn Unit 'Transfer_player0_Avenger' of type 'AmericaTankAvenger' on Team 'teamPlyrCivilian' at waypoint Waypoint 'Pos3_Spawn<i><b>*censored*</b></i>Here'
  [???] Unit 'Transfer_player0_Avenger' is transferred to the command of Player 'player0'
*** ELSE ***
  Run Subroutine 'Transfer_player0_Pos4'.

[S A D][E N H]Transfer_player0_Pos4
*** IF ***
    [???] Player 'player0' starting position is  4  .
*** THEN ***
  Spawn Unit 'Transfer_player0_Avenger' of type 'AmericaTankAvenger' on Team 'teamPlyrCivilian' at waypoint Waypoint 'Pos4_Spawn<i><b>*censored*</b></i>Here'
  [???] Unit 'Transfer_player0_Avenger' is transferred to the command of Player 'player0'

Took player0 as example, attached a map with 4 players.
I spawned a single unit for testing purposes but you can spawn as many as you want.
It is not possible to transfer buildings to a skirmish player, they will sell it instantly, good way to test if a player is ai though if you catch my drift...

Greetz   TransferShit.rar (4kb) downloaded 18 time(s).
Panem et kirkinses
klingondragon
9 years ago
My method does work for structures. And, unlike all the other methods, requires just one line of script per player. On the dropdown change the structures to the extra civilian player, then use a script to transfer all a player's assets.
It's really simple (that's why I'm suggesting my method over the others).
klingondragon
9 years ago
UserPostedImage
UserPostedImage
UserPostedImage

I would upload a picture of it working, but, I couldn't get a screenshot.
acidbrain
9 years ago

Then add a civilian player for each player you want to transfer armies to

Klingondragon wrote:


You dont need multiple civilian players, just spawn the objects on the extra civilian player, transfer all assets to target player and start over again for other players if needed.
If you want the spawns to be starting point related you have to create more scripts though and thats why i made those scripts because in skirmish matches you kinda have starting points...
In your example you use tech buildings, try it with faction buildings and see how they are sold when they are tranferred to a skirmish player...


I want it like this:
At the start of the game

Player0 getting some starting structures that are already theirs
and
Player1 too and Player2, Player3, till Player7

i want all players starting with 10 powerplants orso..

that is possible but i just dont know how to do it the easy way

Please tell me someone knows how to do it the easy way ^^

LordWizz wrote:



Read klingon, your method doesnt work with faction buildings, they are sold as soon as they are transfered...
Transfering faction buildings to skirmish players doesnt work...

Greetz
Panem et kirkinses
klingondragon
9 years ago
1. It's always worked for me.
2. Your method requires doing exactly what the original question said they didn't want (a script for each power plant). My method condenses it considerably.
acidbrain
9 years ago
k then, provide a map in which you transfer factionbuildings to a skirmish player and make the skirmish player use the buildings...
And dont wiggle your way out of it like you usually do
Panem et kirkinses
klingondragon
9 years ago
How do I "wiggle my way out of it"?

UserPostedImage
UserPostedImage
UserPostedImage
acidbrain
9 years ago
Just provide the map in which you transfer faction buildings to a skirmish ai player, prove me wrong so i can learn...Screenshots are worth sjit to me, neutral team now? thought you used a civilian player for the transfer?
Panem et kirkinses
klingondragon
9 years ago
I see no reason to pander to your whims.
acidbrain
9 years ago

I see no reason to pander to your whims.

Originally Posted by: Klingondragon 



Told ya, just wiggle your way out of it ...hahah...you noob
Panem et kirkinses
acidbrain
9 years ago
Where is the map klingon, am still waiting

It's always worked for me.

Klingondragon wrote:


If it did then it wouldnt be a problem to upload a map in which you transfer faction buildings to a skirmish ai player...
I think the silence treatment will be executed just like in that new tank threat were you were convinced you were right while you were not and it was proven that you were wrong...
So much 😁
Panem et kirkinses