Page 2 of 2

Posted: Mon Mar 02, 2009 11:19 am
by stucuk
AFAIK you can load characters saved from any previous mission without loading them in every level.

Posted: Mon Mar 02, 2009 3:59 pm
by Moonstrider
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. :)

Posted: Mon Mar 02, 2009 4:51 pm
by stucuk
Do you kill off the character before you reward characters exp?

Posted: Mon Mar 02, 2009 5:00 pm
by Moonstrider
What do you mean by this? ; d

edit: Can you write on my ICQ? I don't have your number and I want to talk over few things. I tried to create msm account to talk to you but I had some problems and I abandoned this.

Posted: Mon Mar 02, 2009 6:53 pm
by Gogeta103
Najlepiej gdybyś sam sprawdził mogę się mylić, lecz to nie jest pewne. Exp nie powinien się zwiększyć. Nie w każdym przypadku się zwiększył (co do mojego moda) . Uważam, że wszystko zostało wyjaśnione.

Posted: Tue Mar 03, 2009 3:09 pm
by stucuk
I don't have ICQ. What i mean is, the reward players function should only reward players that are placed in the map.

Posted: Tue Mar 03, 2009 3:58 pm
by Antitheus
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?

Posted: Tue Mar 03, 2009 4:53 pm
by stucuk
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);