Ice
  • Ice
  • 50.25% (Neutral)
  • Private Topic Starter
12 years ago
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
UTD^Force
12 years ago
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 

A Muslim, ask me anything about Islam if you want
UTD^Force
Moderator and former map reviewer
Big fan of C&C Labs
i^love^mixery
12 years ago
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...
Ice
  • Ice
  • 50.25% (Neutral)
  • Private Topic Starter
12 years ago
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?
i^love^mixery
12 years ago

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

Originally Posted by: Ice 



Correct.


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

Originally Posted by: Ice 



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.


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?

Originally Posted by: Ice 



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