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

Notification

Icon
Error

Options
Go to last post Go to first unread
Offline Ice  
#1 Posted : Monday, February 24, 2014 1:21:53 PM(UTC)
Ice
Private
Joined: 2/24/2014(UTC)
Posts: 2
Montenegro
Location: Bar

Hey everyone, i would like to make a map (mainly to have fun with friends)
Im new to "modding" or maybe i shall say making maps but im experienced with a scripting a bit so i expect it to be easy to learn/understand.

First i want to note that these is Skirmish/Multiplayer map (2vs2, lets say 2players vs 2AI, or 2vs2 Players)

Now the questions :D

How i can build buildings and units and allow players to start with them (For example how i can assign a few tanks to a player at start)

How i can assign airport to a player with aircrafts on it?(I want aircrafts sit on airport at round start...)

Next question would be reinforcement, how is it possible to make it for each team to come on different location?


Id like to see some useful documentation/tutorials (not the official PDF for World Builder) so if you have something please drop me a link.
Thx
Sponsor
Offline UTD^Force  
#2 Posted : Monday, February 24, 2014 4:19:43 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)
Q#1:
You
can make a team and name it or you can name units one by one.
I prefer to make a team.
Name by example : R1
And place the units you want to be transferred.
Afterthat make all them be in team R1.
Now lets go to scripting.
In script 1
Make a timer.
Go to actions if true -> Scripting -> Timer. And choose a seconds
timer.
For example make it expire in 5 Sec.
In Script 2
***IF***
Timer "Example:1" has expired.
***Then***
Team "R1" is transferred to the control of player "player0".
Notes:
player0 in worldbuilder is player 1 in game.
player1 in WORLDBUILDER is player 2 in game.
And so on till player7 in worldbuilder who is player 8 in game.
***COPY word "player0" and then PASTE it in the player's name when you
want to transfer units to player 1 (or the host) or it won't work.

Q#2:
You can do the same steps up there.
You can put planes on the airport.
They will fly and then land at the airport again in 3-7 Seconds.

Q#3:
The same thing in the first question.
But add at script 2
Team "R1" Begins following Waypoint path "Reinforcements path".
For more info visit
This
Tutorial

Edited by user Monday, February 24, 2014 4:42:41 PM(UTC)  | Reason: Not specified

Proud Muslim

UTD^Force

Moderator and former map reviewer
CnC Labs
Offline i^love^mixery  
#3 Posted : Monday, February 24, 2014 5:31:18 PM(UTC)
i^love^mixery
Colonel
Joined: 10/13/2008(UTC)
Posts: 782

Thanks: 7 times
Was thanked: 201 time(s) in 147 post(s)
You can't transfer teams in skirmish/multiplayer maps. That function only works in mission maps.


You have to do Player -> Transfer -> Unit for each individual unit to be transfered. Every unit needs an unique name.

If you want to spawn "teams", then you have to spawn all the units of the "team" one by one with the script unit -> spawn -> spawn named unit at waypoint. Spawn them for PlyrCivilian, later use the same script to transfer these individual units to the players player0 to player3.

player0 is the host of the game, or the human player in singleplayer.
player1 is the player in the second game slot, be it a comp or a human player, regardless of the start position.
and so on...

Edited by user Monday, February 24, 2014 5:32:01 PM(UTC)  | Reason: Not specified

Offline Ice  
#4 Posted : Monday, February 24, 2014 6:51:05 PM(UTC)
Ice
Private
Joined: 2/24/2014(UTC)
Posts: 2
Montenegro
Location: Bar

Guys thx for reply's

I want to make things clear in my head, so... basically we use playerID (ID starting from 0) to "detect/recognize" player or AI.
Ex: 4 players map, 2 players vs 2 AI, player0 and Player1 can be players while player2 and player3 are AI's (Depending on setup in lobby)
Please correct me if im wrong as these is most important thing :D

I^Love^Mixery how can i know which functions will work in Skirmish/Multiplayer and which wont?
Is there any list or documentation?

Also what about custom functions...how we define and use them?
I want to create function that will spawn and assign units to given player, how is it done?
In languages i know it would be something like

function ReinforcePlayer(playerID)
{
//Here i would do all the stuff to reinforce given player
}

And later i would call it like ReinforcePlayer(player0);//For player 1
How is it done here?
Offline i^love^mixery  
#5 Posted : Tuesday, February 25, 2014 1:38:53 AM(UTC)
i^love^mixery
Colonel
Joined: 10/13/2008(UTC)
Posts: 782

Thanks: 7 times
Was thanked: 201 time(s) in 147 post(s)
Originally Posted by: Ice Go to Quoted Post
Guys thx for reply's

I want to make things clear in my head, so... basically we use playerID (ID starting from 0) to "detect/recognize" player or AI.
Ex: 4 players map, 2 players vs 2 AI, player0 and Player1 can be players while player2 and player3 are AI's (Depending on setup in lobby)
Please correct me if im wrong as these is most important thing :D


Correct.

Originally Posted by: Ice Go to Quoted Post

I^Love^Mixery how can i know which functions will work in Skirmish/Multiplayer and which wont?
Is there any list or documentation?


I don't think there is any list concerning this. I have it all in my mind..
If in doubt, test the scripts first.

In multiplayer games you can't modify the visual game time for example. You also can't assign a unit to a player directly from the Unit Properties window.

Originally Posted by: Ice Go to Quoted Post

Also what about custom functions...how we define and use them?
I want to create function that will spawn and assign units to given player, how is it done?
In languages i know it would be something like

function ReinforcePlayer(playerID)
{
//Here i would do all the stuff to reinforce given player
}

And later i would call it like ReinforcePlayer(player0);//For player 1
How is it done here?


You can't create custom script conditions or actions. The scripting of the worldbuilder is kinda.. very limited.

Edited by user Tuesday, February 25, 2014 1:40:18 AM(UTC)  | Reason: Not specified

Users browsing this topic
Guest
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.