Private Joined: 9/3/2016(UTC) Posts: 3 Location: Melaka Thanks: 2 times
|
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.
|
|
|
|
General Joined: 4/10/2014(UTC) Posts: 1,591 Location: Laniakea; Virgo Supercluster; Local Sheet; Local Group; Milky Way Galaxy; Orion–Cygnus Arm; Gould Belt; Local Bubble; Local Interstellar Cloud; Sol System; Sol III; Europe; United Kingdom of Great Britain and Northen Ireland; Great Britain; England; Essex Thanks: 16 times Was thanked: 247 time(s) in 217 post(s)
|
It is possible. When I get back from holiday I can upload a map which does this. |
|
|
|
|
Private Joined: 9/3/2016(UTC) Posts: 3 Location: Melaka Thanks: 2 times
|
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?
|
|
|
|
Colonel Joined: 8/13/2013(UTC) Posts: 817 Location: Middle east Thanks: 430 times Was thanked: 184 time(s) in 168 post(s)
|
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 :( |
Proud Muslim
UTD^Force
Moderator and former map reviewer CnC Labs |
1 user thanked UTD^Force for this useful post.
|
|
|
General Joined: 4/10/2014(UTC) Posts: 1,591 Location: Laniakea; Virgo Supercluster; Local Sheet; Local Group; Milky Way Galaxy; Orion–Cygnus Arm; Gould Belt; Local Bubble; Local Interstellar Cloud; Sol System; Sol III; Europe; United Kingdom of Great Britain and Northen Ireland; Great Britain; England; Essex Thanks: 16 times Was thanked: 247 time(s) in 217 post(s)
|
That's the gist however I will upload a map with all the scripts and teams you need to learn. |
|
|
|
|
General Joined: 4/10/2014(UTC) Posts: 1,591 Location: Laniakea; Virgo Supercluster; Local Sheet; Local Group; Milky Way Galaxy; Orion–Cygnus Arm; Gould Belt; Local Bubble; Local Interstellar Cloud; Sol System; Sol III; Europe; United Kingdom of Great Britain and Northen Ireland; Great Britain; England; Essex Thanks: 16 times Was thanked: 247 time(s) in 217 post(s)
|
|
|
1 user thanked klingondragon for this useful post.
|
|
|
Private Joined: 9/3/2016(UTC) Posts: 3 Location: Melaka Thanks: 2 times
|
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? Edited by user Sunday, September 4, 2016 9:50:29 AM(UTC)
| Reason: Not specified
|
|
|
|
General Joined: 4/10/2014(UTC) Posts: 1,591 Location: Laniakea; Virgo Supercluster; Local Sheet; Local Group; Milky Way Galaxy; Orion–Cygnus Arm; Gould Belt; Local Bubble; Local Interstellar Cloud; Sol System; Sol III; Europe; United Kingdom of Great Britain and Northen Ireland; Great Britain; England; Essex Thanks: 16 times Was thanked: 247 time(s) in 217 post(s)
|
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. |
|
|
|
|
Private Joined: 2/14/2017(UTC) Posts: 19 Thanks: 8 times
|
|
|
|
|
|
General Joined: 12/30/2011(UTC) Posts: 982
Thanks: 95 times Was thanked: 574 time(s) in 364 post(s)
|
Klingondragon wrote:Then add a civilian player for each player you want to transfer armies to Klingondragon wrote:Use my method Really, omg?
What about making one folder in the civilian folder called 'Transfers'.
Make subroutine spawn/transfer scripts called 'Transfer_player0_Pos1', 'Transfer_player0_Pos2' etc in the 'Transfers' folder.
Code:
[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*censored*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*censored*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*censored*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*censored*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 Edited by user Saturday, February 25, 2017 4:06:03 AM(UTC)
| Reason: Secret |
Panem et kirkinses |
1 user thanked acidbrain for this useful post.
|
|
|
General Joined: 4/10/2014(UTC) Posts: 1,591 Location: Laniakea; Virgo Supercluster; Local Sheet; Local Group; Milky Way Galaxy; Orion–Cygnus Arm; Gould Belt; Local Bubble; Local Interstellar Cloud; Sol System; Sol III; Europe; United Kingdom of Great Britain and Northen Ireland; Great Britain; England; Essex Thanks: 16 times Was thanked: 247 time(s) in 217 post(s)
|
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). |
|
|
|
|
General Joined: 4/10/2014(UTC) Posts: 1,591 Location: Laniakea; Virgo Supercluster; Local Sheet; Local Group; Milky Way Galaxy; Orion–Cygnus Arm; Gould Belt; Local Bubble; Local Interstellar Cloud; Sol System; Sol III; Europe; United Kingdom of Great Britain and Northen Ireland; Great Britain; England; Essex Thanks: 16 times Was thanked: 247 time(s) in 217 post(s)
|
I would upload a picture of it working, but, I couldn't get a screenshot. Edited by user Saturday, February 25, 2017 8:51:08 AM(UTC)
| Reason: Made Another Point |
|
|
|
|
General Joined: 12/30/2011(UTC) Posts: 982
Thanks: 95 times Was thanked: 574 time(s) in 364 post(s)
|
Klingondragon wrote:Then add a civilian player for each player you want to transfer armies to 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... LordWizz wrote: 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 ^^
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 Edited by user Saturday, February 25, 2017 11:45:59 AM(UTC)
| Reason: Secret |
Panem et kirkinses |
|
|
|
General Joined: 4/10/2014(UTC) Posts: 1,591 Location: Laniakea; Virgo Supercluster; Local Sheet; Local Group; Milky Way Galaxy; Orion–Cygnus Arm; Gould Belt; Local Bubble; Local Interstellar Cloud; Sol System; Sol III; Europe; United Kingdom of Great Britain and Northen Ireland; Great Britain; England; Essex Thanks: 16 times Was thanked: 247 time(s) in 217 post(s)
|
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. |
|
|
|
|
General Joined: 12/30/2011(UTC) Posts: 982
Thanks: 95 times Was thanked: 574 time(s) in 364 post(s)
|
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 Edited by user Saturday, February 25, 2017 4:35:24 PM(UTC)
| Reason: Secret |
Panem et kirkinses |
|
|
|
General Joined: 4/10/2014(UTC) Posts: 1,591 Location: Laniakea; Virgo Supercluster; Local Sheet; Local Group; Milky Way Galaxy; Orion–Cygnus Arm; Gould Belt; Local Bubble; Local Interstellar Cloud; Sol System; Sol III; Europe; United Kingdom of Great Britain and Northen Ireland; Great Britain; England; Essex Thanks: 16 times Was thanked: 247 time(s) in 217 post(s)
|
How do I "wiggle my way out of it"? Edited by user Saturday, February 25, 2017 4:40:15 PM(UTC)
| Reason: IMG URLs |
|
|
|
|
General Joined: 12/30/2011(UTC) Posts: 982
Thanks: 95 times Was thanked: 574 time(s) in 364 post(s)
|
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? Edited by user Saturday, February 25, 2017 4:44:11 PM(UTC)
| Reason: Secret |
Panem et kirkinses |
|
|
|
General Joined: 4/10/2014(UTC) Posts: 1,591 Location: Laniakea; Virgo Supercluster; Local Sheet; Local Group; Milky Way Galaxy; Orion–Cygnus Arm; Gould Belt; Local Bubble; Local Interstellar Cloud; Sol System; Sol III; Europe; United Kingdom of Great Britain and Northen Ireland; Great Britain; England; Essex Thanks: 16 times Was thanked: 247 time(s) in 217 post(s)
|
I see no reason to pander to your whims. |
|
|
|
|
General Joined: 12/30/2011(UTC) Posts: 982
Thanks: 95 times Was thanked: 574 time(s) in 364 post(s)
|
Originally Posted by: Klingondragon I see no reason to pander to your whims. Told ya, just wiggle your way out of it ...hahah...you noob |
Panem et kirkinses |
|
|
|
General Joined: 12/30/2011(UTC) Posts: 982
Thanks: 95 times Was thanked: 574 time(s) in 364 post(s)
|
Where is the map klingon, am still waiting Klingondragon wrote:It's always worked for me. 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 |
|
|
|
Users browsing this topic |
Guest (2)
|
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.