Funkcja SaveCharacters

Wszystko o modach, patchach i błędach w OW oraz ogólnym programowaniu.
Awatar użytkownika
stucuk
OWSupport.com Owner
Messages : 438
Inscription : wt kwie 18, 2006 12:10 am
Lokalizacja : UK, Scotland

Post par stucuk »

AFAIK you can load characters saved from any previous mission without loading them in every level.
- Stu
OWSupport
Awatar użytkownika
Moonstrider
Soldier level 4
Soldier level 4
Messages : 110
Inscription : pt lis 09, 2007 11:10 pm
Contact :

Post par 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. :)
Awatar użytkownika
stucuk
OWSupport.com Owner
Messages : 438
Inscription : wt kwie 18, 2006 12:10 am
Lokalizacja : UK, Scotland

Post par stucuk »

Do you kill off the character before you reward characters exp?
- Stu
OWSupport
Awatar użytkownika
Moonstrider
Soldier level 4
Soldier level 4
Messages : 110
Inscription : pt lis 09, 2007 11:10 pm
Contact :

Post par 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.
Awatar użytkownika
Gogeta103
Soldier level 5
Soldier level 5
Messages : 196
Inscription : wt gru 18, 2007 4:57 pm

Post par 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.
Awatar użytkownika
stucuk
OWSupport.com Owner
Messages : 438
Inscription : wt kwie 18, 2006 12:10 am
Lokalizacja : UK, Scotland

Post par 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
Awatar użytkownika
Antitheus
Kung Führer
Kung Führer
Korea North
Messages : 2526
Inscription : czw sty 04, 2007 9:45 pm
Lokalizacja : Gorzów Wlkp.
Contact :

Post par 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?
Awatar użytkownika
stucuk
OWSupport.com Owner
Messages : 438
Inscription : wt kwie 18, 2006 12:10 am
Lokalizacja : UK, Scotland

Post par 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).

Kod: Zaznacz cały

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
Répondre