SAIL - Load Character

Free modding tutorials and source codes.

Moderators: zoNE, Antitheus

Post Reply
User avatar

Topic author
zoNE
The Great Uniter & Site Administrator
The Great Uniter & Site Administrator
Posts: 1436
Joined: Fri Feb 17, 2006 3:44 pm
Location: Poland
Contact:

SAIL - Load Character

#1

Post by zoNE » Sun Jun 14, 2015 10:13 pm

stucuk wrote:if you are using the LoadCharacter function (Which was designed by Radzio) then it does the following (Below is the sail version, you do not need to have the SAIL version in your code as LoadCharacter was made into an actual command).

Code: Select all

export function LoadCharacter(ident,klasa,number); 
  begin
   if TestCharacters(ident) then
   begin
    if CheckCharacterSet(ident)>1 then
    begin
     if number>0 then
     if klasa>0 then
      CreateOneCharacterFromSetWithClass(ident,number,klasa)
     else
      CreateOneCharacterFromSet(ident,number)
     else
      CreateCharacterSet(ident);
    end
    else
     if klasa>0 then
      CreateCharacterWithClass(ident,klasa)
     else
      CreateCharacter(ident);
   end
   else
    NewCharacter(ident);
  end;
So if you have any saved characters then it should(AFAIK) bring them back exactly as they were.

Example:
Stucuk := LoadCharacter('stucuk',0,0);
Author: Stucuk
Topic: http://forum.original-war.net/viewtopic ... c&start=15
PC MB: MSI Z97-G43 | CPU: Intel Xeon E3-1231v3 3.4GHz + Raijintek EreBoss | RAM: HyperX 2x8GB 1866MHz DDR3 CL9 | GPU: MSI GeForce GTX 970 100ME 4GB GDDR5 (256bit) | SSD: Crucial BX100 250GB | HDD: 4TB | LCD: EIZO FlexScan 22" S2243W Black | AUDIO: Asus Xonar D2 + KODA DRA-660 + KODA AV-701 + SW-550 v2 + Sennheiser HD 595 | OS: Windows 10 Pro
Laptop DELL Precision M6500 CPU: i5-520M RAM: 8GB DDR3 SSD: 128GB HDD: 500GB GPU: ATI FirePro M7740 1GB DDR5 OS: Windows 7 Ultimate 64-bit

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests