Goto https://www.stucuk.netGoto https://www.atlanticaonlinewiki.comGoto https://www.game-requirements.com


Menu


It is currently Wed Dec 12, 2018 2:46 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 8 posts ] 
Author Message
 Post subject: Multiplayer - Players Name
PostPosted: Sat Sep 02, 2006 5:06 pm 
Offline
OW Support Owner
OW Support Owner
User avatar

Joined: Wed Dec 28, 2005 11:13 pm
Posts: 5001
Location: UK, Scotland
This is an example of how to get players names for each side. (This is for multplayer games)

Code:
function MultiplayerName(Side);
begin
Result := mp_sides_players_names[Side];
end;


Example:
Code:
function MultiplayerName(Side);
begin
Result := mp_sides_players_names[Side];
end;

starting
begin
display_strings: = MultiplayerName(1); // Displays player 1's side
end;

_________________
Image
Free Map Editor - Game Requirements - Stucuk.Net
-Stu


Top
 Profile  
 
 Post subject:
PostPosted: Sun Oct 21, 2007 12:50 pm 
Offline
Soldier level 1
Soldier level 1
User avatar

Joined: Wed May 10, 2006 5:00 pm
Posts: 72
Quote:
function MultiplayerName(Side);
begin
Result := mp_sides_players_names[Side];
end;


with [Side] you will get the players side right?
and if you put something in ( ) you will declare something right?
and when you use [ ] you call something back right?


Top
 Profile  
 
 Post subject:
PostPosted: Sun Oct 21, 2007 3:30 pm 
Offline
OW Support Owner
OW Support Owner
User avatar

Joined: Wed Dec 28, 2005 11:13 pm
Posts: 5001
Location: UK, Scotland
No. mp_sides_players_names is an array which holds players names.

Code:
function MultiplayerName(Side);


When you declare functions, anything in () is declared as a local varible between that functions begin and end (as in it exists between them only). It also means you have to pass it a value when you call the function.

You should read the SAIL tutorials on ows. For example SAIL Syntax.

_________________
Image
Free Map Editor - Game Requirements - Stucuk.Net
-Stu


Top
 Profile  
 
 Post subject: Re: Multiplayer - Players Name
PostPosted: Mon Mar 08, 2010 5:58 pm 
Offline
Soldier level 4
Soldier level 4
User avatar

Joined: Thu Dec 25, 2008 7:55 pm
Posts: 400
Location: Czech Republic / Karlovy Vary / Horní Slavkov
I have in throwback mode. Games against the computer. How do to make him take the game statistically as a player and how to assign a name?

I managed to do that, he points counted as players. but I did not come out how to assign a name. And to be counted in the statistics.


Top
 Profile  
 
 Post subject: Re: Multiplayer - Players Name
PostPosted: Mon Mar 08, 2010 7:09 pm 
Offline
OW Support Owner
OW Support Owner
User avatar

Joined: Wed Dec 28, 2005 11:13 pm
Posts: 5001
Location: UK, Scotland
I don't know if that is possible.

_________________
Image
Free Map Editor - Game Requirements - Stucuk.Net
-Stu


Top
 Profile  
 
 Post subject: Re: Multiplayer - Players Name
PostPosted: Mon Mar 08, 2010 7:28 pm 
Offline
Soldier level 4
Soldier level 4
User avatar

Joined: Thu Dec 25, 2008 7:55 pm
Posts: 400
Location: Czech Republic / Karlovy Vary / Horní Slavkov
At least the name, please. Did you mp_sides_players_names are the names of players, but when I want to give a name to the side, which is occupied by a computer, nothing happens.

Here is a script that I tried to use but I still can not.
mp_sides_players_names := Replace(mp_sides_players_names,am,'Charlie');

am is number side PC and Charlie is Name PC


Top
 Profile  
 
 Post subject: Re: Multiplayer - Players Name
PostPosted: Mon Mar 08, 2010 9:19 pm 
Offline
OW Support Owner
OW Support Owner
User avatar

Joined: Wed Dec 28, 2005 11:13 pm
Posts: 5001
Location: UK, Scotland
That would be proberly because its a constant (I think). You can't set the player names in multiplayer games via the map as they are given to each player by each other player. AI in maps (At least when its not setup as a Computer Player) are not actually a "player".

_________________
Image
Free Map Editor - Game Requirements - Stucuk.Net
-Stu


Top
 Profile  
 
 Post subject: Re: Multiplayer - Players Name
PostPosted: Tue Mar 09, 2010 8:59 am 
Offline
Soldier level 4
Soldier level 4
User avatar

Joined: Thu Dec 25, 2008 7:55 pm
Posts: 400
Location: Czech Republic / Karlovy Vary / Horní Slavkov
That is true. The computer player is not, but it is against players.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group

Original War is an RTS / RPG game by Altar Games
Original War Support is not part of Altar Games but is maintaining Original War for Altar Games

Privacy Policy