In this tutorial you will learn how to set up your players in a script so that it is ready for autoing.
Setting up players
First of all you want to try and find a procedure like this one.
Simba Code:
procedure DeclarePlayers;
begin
HowManyPlayers := 2;
NumberOfPlayers(HowManyPlayers);
CurrentPlayer := 0;
with Players[0] do
begin
Name := 'user';
Pass := 'pass';
Nick := 'nick';
Strings[0] := 've'; // Player location (letters must be lowercase)
Integers[0]:= 15; // Break after how many mins
Active := True;
end;
with Players[1] do
begin
Name := 'user';
Pass := 'pass';
Nick := 'nick';
Strings[0] := 've'; // Player location (letters must be lowercase)
Integers[0]:= 15; // Break after how many mins
Active := True;
end;
end;
Now as you can see, this is only for 2 people, player[0] and player[1]
Filling in the players is straight forward, see below.
- Username in Name
- Password in Pass.
- Nickname in Nick (i will come back to this one)
- Active is whether you want the script to use this account. This can be useful if you want to use more than one account on this script, but you dont want it to use one of the accounts for some reason. This can only be True or False.
- Other things such as Strings, Integers and Booleans should have a comment beside them to let you know what to type.
- Nick names are 3-4 lowercase characters of your username. So if my username was zezima, i could use zima, ezi or zim, but i could not use zez or zezi.
Adding a player
If you have more players to add than there are places. You'll have to add another player. You just copy the last section of players.
Simba Code:
with Players[1] do
begin
Name := 'user';
Pass := 'pass';
Nick := 'nick';
Strings[0] := 've'; // Player location (letters must be lowercase)
Integers[0]:= 15; // Break after how many mins
Active := True;
end;
Then paste it below to make 2 the same
Simba Code:
procedure DeclarePlayers;
begin
HowManyPlayers := 2;
NumberOfPlayers(HowManyPlayers);
CurrentPlayer := 0;
with Players[0] do
begin
Name := 'user';
Pass := 'pass';
Nick := 'nick';
Strings[0] := 've'; // Player location (letters must be lowercase)
Integers[0]:= 15; // Break after how many mins
Active := True;
end;
with Players[1] do
begin
Name := 'user';
Pass := 'pass';
Nick := 'nick';
Strings[0] := 've'; // Player location (letters must be lowercase)
Integers[0]:= 15; // Break after how many mins
Active := True;
end;
with Players[1] do
begin
Name := 'user';
Pass := 'pass';
Nick := 'nick';
Strings[0] := 've'; // Player location (letters must be lowercase)
Integers[0]:= 15; // Break after how many mins
Active := True;
end;
end;
Nearly there, now we increase the number in Players[1] by one.
Simba Code:
procedure DeclarePlayers;
begin
HowManyPlayers := 2;
NumberOfPlayers(HowManyPlayers);
CurrentPlayer := 0;
with Players[0] do
begin
Name := 'user';
Pass := 'pass';
Nick := 'nick';
Strings[0] := 've'; // Player location (letters must be lowercase)
Integers[0]:= 15; // Break after how many mins
Active := True;
end;
with Players[1] do
begin
Name := 'user';
Pass := 'pass';
Nick := 'nick';
Strings[0] := 've'; // Player location (letters must be lowercase)
Integers[0]:= 15; // Break after how many mins
Active := True;
end;
with Players[2] do
begin
Name := 'user';
Pass := 'pass';
Nick := 'nick';
Strings[0] := 've'; // Player location (letters must be lowercase)
Integers[0]:= 15; // Break after how many mins
Active := True;
end;
end;
And we increase the variable HowManyPlayers by one.
Simba Code:
procedure DeclarePlayers;
begin
HowManyPlayers := 3;
NumberOfPlayers(HowManyPlayers);
CurrentPlayer := 0;
with Players[0] do
begin
Name := 'user';
Pass := 'pass';
Nick := 'nick';
Strings[0] := 've'; // Player location (letters must be lowercase)
Integers[0]:= 15; // Break after how many mins
Active := True;
end;
with Players[1] do
begin
Name := 'user';
Pass := 'pass';
Nick := 'nick';
Strings[0] := 've'; // Player location (letters must be lowercase)
Integers[0]:= 15; // Break after how many mins
Active := True;
end;
with Players[2] do
begin
Name := 'user';
Pass := 'pass';
Nick := 'nick';
Strings[0] := 've'; // Player location (letters must be lowercase)
Integers[0]:= 15; // Break after how many mins
Active := True;
end;
end;
Then you can fill in the details and your done.
For a simple rule of how to fill in HowManyPlayers, look at the last number in the square brackets (in this case 2 (Players[2])) then increase it by one (which gives 3) and use that number.
Deleting a player
If you want to delete a player simply select a section and delete it, so I will will delete the last player.
Simba Code:
procedure DeclarePlayers;
begin
HowManyPlayers := 3;
NumberOfPlayers(HowManyPlayers);
CurrentPlayer := 0;
with Players[0] do
begin
Name := 'user';
Pass := 'pass';
Nick := 'nick';
Strings[0] := 've'; // Player location (letters must be lowercase)
Integers[0]:= 15; // Break after how many mins
Active := True;
end;
with Players[1] do
begin
Name := 'user';
Pass := 'pass';
Nick := 'nick';
Strings[0] := 've'; // Player location (letters must be lowercase)
Integers[0]:= 15; // Break after how many mins
Active := True;
end;
end;
and by following the rule, the highests number in the square brackets now is 1, increase that by 1 is 2 and that is what I put for NumberOfPlayers.
Simba Code:
procedure DeclarePlayers;
begin
HowManyPlayers := 2;
NumberOfPlayers(HowManyPlayers);
CurrentPlayer := 0;
with Players[0] do
begin
Name := 'user';
Pass := 'pass';
Nick := 'nick';
Strings[0] := 've'; // Player location (letters must be lowercase)
Integers[0]:= 15; // Break after how many mins
Active := True;
end;
with Players[1] do
begin
Name := 'user';
Pass := 'pass';
Nick := 'nick';
Strings[0] := 've'; // Player location (letters must be lowercase)
Integers[0]:= 15; // Break after how many mins
Active := True;
end;
end;
I hope I have given you enough information how how to set up your players so when you launch a script, you will know exactly what to do.
~shut