Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

2 Pages12>
Options
Go to last post Go to first unread
Offline MickLee  
#1 Posted : Saturday, September 3, 2016 6:29:28 AM(UTC)
MickLee
Private
Joined: 9/3/2016(UTC)
Posts: 3
Malaysia
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. Smile
Sponsor
Offline klingondragon  
#2 Posted : Saturday, September 3, 2016 7:25:43 AM(UTC)
klingondragon
General
C&C Labs Staff: Labs Staff MemberMaps Staff: Maps Staff Member
Joined: 4/10/2014(UTC)
Posts: 1,591
United Kingdom
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.
Offline MickLee  
#3 Posted : Saturday, September 3, 2016 12:53:51 PM(UTC)
MickLee
Private
Joined: 9/3/2016(UTC)
Posts: 3
Malaysia
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?
Offline UTD^Force  
#4 Posted : Saturday, September 3, 2016 3:04:42 PM(UTC)
UTD^Force
Colonel
C&C Labs Staff: Labs Staff MemberMaps Staff: Maps Staff Member
Joined: 8/13/2013(UTC)
Posts: 817
Jordan
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
thanks 1 user thanked UTD^Force for this useful post.
MickLee on 9/4/2016(UTC)
Offline klingondragon  
#5 Posted : Saturday, September 3, 2016 4:03:37 PM(UTC)
klingondragon
General
C&C Labs Staff: Labs Staff MemberMaps Staff: Maps Staff Member
Joined: 4/10/2014(UTC)
Posts: 1,591
United Kingdom
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.
Offline klingondragon  
#6 Posted : Sunday, September 4, 2016 5:17:49 AM(UTC)
klingondragon
General
C&C Labs Staff: Labs Staff MemberMaps Staff: Maps Staff Member
Joined: 4/10/2014(UTC)
Posts: 1,591
United Kingdom
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)
here it is
File Attachment(s):
Example.zip (3kb) downloaded 33 time(s).
thanks 1 user thanked klingondragon for this useful post.
MickLee on 9/4/2016(UTC)
Offline MickLee  
#7 Posted : Sunday, September 4, 2016 9:23:21 AM(UTC)
MickLee
Private
Joined: 9/3/2016(UTC)
Posts: 3
Malaysia
Location: Melaka

Thanks: 2 times
Thanks for everything klingondragon and UTD^Force. Much appreciated. Big Smile 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

Offline klingondragon  
#8 Posted : Sunday, September 4, 2016 10:00:59 AM(UTC)
klingondragon
General
C&C Labs Staff: Labs Staff MemberMaps Staff: Maps Staff Member
Joined: 4/10/2014(UTC)
Posts: 1,591
United Kingdom
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.
Offline LordWizz  
#9 Posted : Friday, February 24, 2017 9:49:48 PM(UTC)
LordWizz
Private
Joined: 2/14/2017(UTC)
Posts: 19
Puerto Rico

Thanks: 8 times
Originally Posted by: Klingondragon Go to Quoted Post
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.


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
Offline acidbrain  
#10 Posted : Saturday, February 25, 2017 3:53:03 AM(UTC)
acidbrain
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'. Transfers_Sjit
Make subroutine spawn/transfer scripts called 'Transfer_player0_Pos1', 'Transfer_player0_Pos2' etc in the 'Transfers' folder.

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

File Attachment(s):
TransferShit.rar (4kb) downloaded 17 time(s).
Panem et kirkinses
thanks 1 user thanked acidbrain for this useful post.
LordWizz on 2/25/2017(UTC)
Offline klingondragon  
#11 Posted : Saturday, February 25, 2017 5:47:48 AM(UTC)
klingondragon
General
C&C Labs Staff: Labs Staff MemberMaps Staff: Maps Staff Member
Joined: 4/10/2014(UTC)
Posts: 1,591
United Kingdom
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).
Offline klingondragon  
#12 Posted : Saturday, February 25, 2017 8:34:23 AM(UTC)
klingondragon
General
C&C Labs Staff: Labs Staff MemberMaps Staff: Maps Staff Member
Joined: 4/10/2014(UTC)
Posts: 1,591
United Kingdom
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)
UserPostedImage
UserPostedImage
UserPostedImage

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

Offline acidbrain  
#13 Posted : Saturday, February 25, 2017 11:14:00 AM(UTC)
acidbrain
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
Offline klingondragon  
#14 Posted : Saturday, February 25, 2017 4:03:45 PM(UTC)
klingondragon
General
C&C Labs Staff: Labs Staff MemberMaps Staff: Maps Staff Member
Joined: 4/10/2014(UTC)
Posts: 1,591
United Kingdom
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.
Offline acidbrain  
#15 Posted : Saturday, February 25, 2017 4:32:04 PM(UTC)
acidbrain
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
Offline klingondragon  
#16 Posted : Saturday, February 25, 2017 4:39:42 PM(UTC)
klingondragon
General
C&C Labs Staff: Labs Staff MemberMaps Staff: Maps Staff Member
Joined: 4/10/2014(UTC)
Posts: 1,591
United Kingdom
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"?

UserPostedImage
UserPostedImage
UserPostedImage

Edited by user Saturday, February 25, 2017 4:40:15 PM(UTC)  | Reason: IMG URLs

Offline acidbrain  
#17 Posted : Saturday, February 25, 2017 4:42:11 PM(UTC)
acidbrain
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
Offline klingondragon  
#18 Posted : Saturday, February 25, 2017 4:44:18 PM(UTC)
klingondragon
General
C&C Labs Staff: Labs Staff MemberMaps Staff: Maps Staff Member
Joined: 4/10/2014(UTC)
Posts: 1,591
United Kingdom
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.
Offline acidbrain  
#19 Posted : Saturday, February 25, 2017 4:46:29 PM(UTC)
acidbrain
General
Joined: 12/30/2011(UTC)
Posts: 982

Thanks: 95 times
Was thanked: 574 time(s) in 364 post(s)
Originally Posted by: Klingondragon Go to Quoted Post
I see no reason to pander to your whims.


Told ya, just wiggle your way out of it ...hahah...you noob
Panem et kirkinses
Offline acidbrain  
#20 Posted : Sunday, February 26, 2017 6:35:52 AM(UTC)
acidbrain
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 Big Smile
Panem et kirkinses
Users browsing this topic
Guest
2 Pages12>
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.