Funkcja SaveCharacters
- Moonstrider
- Soldier level 4
- Posts: 110
- Joined: Fri Nov 09, 2007 11:10 pm
- Contact:
Yeah, but as Gogeta said his chars get their exp increased when he loads them after few missions passed without them and I suppose that it happens because they are made in the editor, not definded in Start.txt so don't have LAST_MISSION parameter which is somewhere said to determine how many missions will pass unti the exp wil start to increase spontaneously. And I want to load my chars with exactly same exp as I saved them with. 

- Moonstrider
- Soldier level 4
- Posts: 110
- Joined: Fri Nov 09, 2007 11:10 pm
- Contact:
but the question is:
If I had an character used in eg. 1st mission and I dont use him in 2nd but 3rd, would the exp reset and would the game load him from starts.txt once again?
If I had an character used in eg. 1st mission and I dont use him in 2nd but 3rd, would the exp reset and would the game load him from starts.txt once again?
-- [FAQ] [Forum rules] [Arabian Campaign Project] [Multiplayer rules] [OWN on Facebook] --
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).
So if you have any saved characters then it should(AFAIK) bring them back exactly as they were.
Example:
Stucuk := LoadCharacter('stucuk',0,0);
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;
Example:
Stucuk := LoadCharacter('stucuk',0,0);
- Stu
OWSupport
OWSupport