Funkcja SaveCharacters

Wszystko o modach, patchach i błędach w OW oraz ogólnym programowaniu.
Аватара пользователя
stucuk
OWSupport.com Owner
Сообщения: 438
Зарегистрирован: Вт апр 18, 2006 12:10 am
Откуда: UK, Scotland

Сообщение stucuk »

AFAIK you can load characters saved from any previous mission without loading them in every level.
- Stu
OWSupport
Аватара пользователя
Moonstrider
Soldier level 4
Soldier level 4
Сообщения: 110
Зарегистрирован: Пт ноя 09, 2007 11:10 pm
Контактная информация:

Сообщение 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. :)
Аватара пользователя
stucuk
OWSupport.com Owner
Сообщения: 438
Зарегистрирован: Вт апр 18, 2006 12:10 am
Откуда: UK, Scotland

Сообщение stucuk »

Do you kill off the character before you reward characters exp?
- Stu
OWSupport
Аватара пользователя
Moonstrider
Soldier level 4
Soldier level 4
Сообщения: 110
Зарегистрирован: Пт ноя 09, 2007 11:10 pm
Контактная информация:

Сообщение 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.
Аватара пользователя
Gogeta103
Soldier level 5
Soldier level 5
Сообщения: 196
Зарегистрирован: Вт дек 18, 2007 4:57 pm

Сообщение 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.
Аватара пользователя
stucuk
OWSupport.com Owner
Сообщения: 438
Зарегистрирован: Вт апр 18, 2006 12:10 am
Откуда: UK, Scotland

Сообщение 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
Аватара пользователя
Antitheus
Kung Führer
Kung Führer
Korea North
Сообщения: 2526
Зарегистрирован: Чт янв 04, 2007 9:45 pm
Откуда: Gorzów Wlkp.
Контактная информация:

Сообщение 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?
Аватара пользователя
stucuk
OWSupport.com Owner
Сообщения: 438
Зарегистрирован: Вт апр 18, 2006 12:10 am
Откуда: UK, Scotland

Сообщение 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).

Код: Выделить всё

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
Ответить