I need to know what to do if i´m making a script to train only one player, and I don´t want to use the DeclarePlayers platform from SRL, how can I do it?
I need to know what to do if i´m making a script to train only one player, and I don´t want to use the DeclarePlayers platform from SRL, how can I do it?
You can still use the DeclarePlayers procedure in SRL, just only have one character declared. Simple as that.
Ex:
SCAR Code:procedure DeclarePlayers;
begin
NumberOfPlayers(1);
CurrentPlayer := 0;
Players[0].Name := 'yeahwoho'; // UserName
Players[0].Pass := 'password'; // Password
Players[0].Nick := 'hwoh'; //3-4 letters from username
Players[0].Active := True;
end;
if you want to fix the NextPlayer(False) 'bug' where it won't terminate the script after your character is done do something like
SCAR Code:if not LoggedIn then
begin
PlayersDone := PlayersDone + 1;
if (HowManyPlayers < PlayersDone) then TerminateScript;
NextPlayer(False);
end;
Thats actually something you can use in a script with any amount of players so it will terminate when out of players to use. You just have to be careful and set it up right.
K thanks
There are currently 1 users browsing this thread. (0 members and 1 guests)