Funkcja SaveCharacters

Wszystko o modach, patchach i błędach w OW oraz ogólnym programowaniu.
User avatar
stucuk
OWSupport.com Owner
Posts: 438
Joined: Tue Apr 18, 2006 12:10 am
Location: UK, Scotland

Post by stucuk »

AFAIK you can load characters saved from any previous mission without loading them in every level.
- Stu
OWSupport
User avatar
Moonstrider
Soldier level 4
Soldier level 4
Posts: 110
Joined: Fri Nov 09, 2007 11:10 pm
Contact:

Post 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. :)
User avatar
stucuk
OWSupport.com Owner
Posts: 438
Joined: Tue Apr 18, 2006 12:10 am
Location: UK, Scotland

Post by stucuk »

Do you kill off the character before you reward characters exp?
- Stu
OWSupport
User avatar
Moonstrider
Soldier level 4
Soldier level 4
Posts: 110
Joined: Fri Nov 09, 2007 11:10 pm
Contact:

Post 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.
User avatar
Gogeta103
Soldier level 5
Soldier level 5
Posts: 196
Joined: Tue Dec 18, 2007 4:57 pm

Post 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.
User avatar
stucuk
OWSupport.com Owner
Posts: 438
Joined: Tue Apr 18, 2006 12:10 am
Location: UK, Scotland

Post 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.
- Stu
OWSupport
User avatar
Antitheus
Kung Führer
Kung Führer
Korea North
Posts: 2526
Joined: Thu Jan 04, 2007 9:45 pm
Location: Gorzów Wlkp.
Contact:

Post 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?
User avatar
stucuk
OWSupport.com Owner
Posts: 438
Joined: Tue Apr 18, 2006 12:10 am
Location: UK, Scotland

Post 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);
- Stu
OWSupport
Post Reply