Thread Rating:
  • 2 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Inserarea unui npc in Gothic 1
#1
Acesta este un tutorial simplu care va va arata cum puteti insera un NPC in joc.
Va trebuie gothic_mod_developmentkit si gothic1_playerkit-1.08k acestea le puteti lua de aici
Intrati in gothic_mod_developmentkit si ve-ti vedea un fisier cu numele gothic continutul acestui fisier va trebuie sa il puneti in Gothic 1 si iar gothic1_playerkit-1.08k il dezarhivati undeva iar fisierul system il puneti in fisierul cu gothic.
Sa incepem:
Intrati in gothic/_work/DATA/scripts/content/story/npc si deschideti un script de acolo cu Notepad.
Eu am ales scriptul -BAU_900_Ricelord.
Code:
instance [color=red]BAU_900_Ricelord[/color] (Npc_Default)
{
    //-------- primary data --------
    
    name         =    [color=red]"The Rice Lord"; // Pentru inceput dati numele personajului. In loc de The Rice Lord dati orice alt nume care nu mai exista in Gothic 1.
    npctype     =    NPCTYPE_GUARD; //Aici trebuie sa va alegeti modul de comportament al NPC-ului, cum sa se comporte cum sa stea etc.    
    guild         =    GIL_BAU; //Aici trebuie sa  puneti guildul NPC-ului, de exemplu pentru guard GRD (uitati-va prin celelalte scripturi daca vreti sa mai vedeti cum se zice si la alte gulde)    
    level         =    10;         //Aici scrieti ce lvl sa aiba personajul[/color]
    voice         =    12; //Aici vocea personajului daca nu vreti sa o modificati o lasati asa
    id             =    900; //aici trebuie sa-i dati un numar personajului, un numar pe care nu-l mai are nimeni ca de exemplu 999(daca numarul il mai are cineva va va da eroare)

    //-------- abilities --------//Abilitatile personajului
    attribute[ATR_STRENGTH]     = 50; //Cata forta sa aiba
    attribute[ATR_DEXTERITY]     = 10; //Cata dexteritate sa aiba
    attribute[ATR_MANA_MAX]     = 0;
    attribute[ATR_MANA]         = 0;
    attribute[ATR_HITPOINTS_MAX]= 170;
    attribute[ATR_HITPOINTS]     = 170;

    //-------- visuals --------
    //                 animations
    Mdl_SetVisual        (self,"HUMANS.MDS");
    Mdl_ApplyOverlayMds    (self,"Humans_Arrogance.mds");
    //            body mesh     ,bdytex,skin,head mesh     ,headtex,teethtex,ruestung    
    Mdl_SetVisualBody (self,"Hum_Body_CookSmith",1,1,"Hum_Head_FatBald",91 ,  0,-1);
    
    B_Scale (self);
    Mdl_SetModelFatness(self,2);
    
    fight_tactic    =    FAI_HUMAN_STRONG;

    //-------- Talente --------                                    
    Npc_SetTalentSkill    (self,NPC_TALENT_1H,1);    //de aici va puteti alege ce talente sa aiba acest personaj, sa fie maestru Two Handed sau orice alte talente pentru inceput nu e obligatoriu sa alegeti;    

    //-------- inventory --------//de aici pueti alege sa sa aiba NPC-ul in inventatory;                                    
        
        CreateInvItems (self, ItFoRice,10);
        CreateInvItem (self, ItFoWine);
        CreateInvItems(self, ItMiNugget,40);
        EquipItem  (self, Heerscherstab);         
        CreateInvItem (self, ItMi_Alchemy_Moleratlubric_01);
        //CreateInvItem (self,ItKey_RB_01);
        
        EquipItem (self, Ring_des_Lebens);
            
    //-------------Daily Routine-------------

//coordonatele NPC-ului

    daily_routine = Rtn_start_900;
    
};

FUNC VOID Rtn_start_900 ()
{
    TA_Boss            (07,00,20,00,"NC_RICELORD");
    TA_SitAround    (20,00,24,00,"NC_RICELORD_SIT");
    TA_Sleep        (24,00,07,00,"NC_RICEBUNKER_10");
};
Code:
Lucrurile principale care trebuie schimbate la acest npc sunt:
name         =    "Legend";
id         =    999;
//Si nu uitati sa schimbati de jos de la Daily Routine acele 2 numere in loc de 900 sa puneti numarul vostru de la id si anume in cazul meu 999 de exemplu:
//ATENTIE daca dupmneavoastra completati acest script ca mine trebuie sa dati save as si sa il salvati sub numele asta
BAU_999_Legend
------------Daily Routine-------------
    daily_routine = Rtn_start_999;
    
};

FUNC VOID Rtn_start_999()
{
    TA_Boss            (07,00,20,00,"NC_RICELORD");
    TA_SitAround    (20,00,24,00,"NC_RICELORD_SIT");
    TA_Sleep        (24,00,07,00,"NC_RICEBUNKER_10");
};
//Am terminat cu scriptul personajului acum intrati in startup gothic\_work_data\scripts\contetnt\story/StartUp deschideti-l cu un editor si dati bara in jos usor pana ajungeti la
//----------------Bauern--------------------------------- (akolo sunt in randuri toate personajele din NewCamp) Dati ENTER dupa
Code:
Wld_InsertNpc                (BAU_900_Ricelord,"NC_DAM"); //Im Ricebunker
si adaugati
Code:
Wld_InsertNpc                (BAU_999_Legend,"NC_DAM"); //Im Ricebunker
//Acum intrati in GothicStarted click pe Reparse All Scripts si va duceti langa Rice Lord si ar trebuie sa va apara perosnajul daca ati completat totul cum e aici.






Pentru gothic 2 faci aproape la fel ca la gothic 2....Salvezi scriptu in \Gothic Gothic2\_work\Data\Scripts\Content\Story\NPC

Un exemplu de script din gothic 2 :
Code:
instance Pal_200_Hagen (Npc_Default)
{
    // ------ NSC ------
    name         = "Lord Hagen";
    guild         = GIL_PAL;
    id             = 200;
    voice         = 4;
    flags       = NPC_FLAG_IMMORTAL;    //Joly: NPC_FLAG_IMMORTAL                                                                
    npctype        = NPCTYPE_MAIN;
    
    // ------ AIVARS ------
    aivar[AIV_ToughGuy]             = TRUE;
    aivar[AIV_ToughGuyNewsOverride] = TRUE;
    aivar[AIV_IGNORE_Murder]        = TRUE;
    aivar[AIV_IGNORE_Theft]         = TRUE;
    aivar[AIV_IGNORE_Sheepkiller]     = TRUE;
    
    // ------ Attribute ------
    B_SetAttributesToChapter (self, 6);                                                                    
        
    // ------ Kampf-Taktik ------
    fight_tactic        = FAI_HUMAN_MASTER;    
    
    // ------ Equippte Waffen ------                                                                    
    EquipItem            (self, ItMw_2h_Pal_Sword);
    
    // ------ Inventory ------
    B_CreateAmbientInv     (self);

        
    // ------ visuals ------                                                                            
    B_SetNpcVisual         (self, MALE, "Hum_Head_Fighter", Face_N_Tough_Okyl, BodyTex_N, ITAR_PAL_H);    
    Mdl_SetModelFatness    (self, 1.5);
    Mdl_ApplyOverlayMds    (self, "Humans_Militia.mds");

    // ------ NSC-relevante Talente vergeben ------
    B_GiveNpcTalents (self);
    
    // ------ Kampf-Talente ------                                                                        
    B_SetFightSkills (self, 80);

    // ------ TA anmelden ------
    daily_routine         = Rtn_Start_200;
};
FUNC VOID Rtn_Start_200 ()
{    
    TA_Stand_ArmsCrossed    (08,00,20,00,"NW_CITY_HAGEN");
    TA_Stand_ArmsCrossed    (20,00,08,00,"NW_CITY_HAGEN");
};
FUNC VOID Rtn_ShipFree_200 ()
{
    TA_Stand_Guarding    (08,00,23,00,"NW_CITY_UPTOWNPARADE_HAGEN");
    TA_Stand_Guarding    (23,00,08,00,"NW_CITY_UPTOWNPARADE_HAGEN");    
};
....dar poate te ajuta un program....vezi aici programu se numeste NSCScriptGenerator.zip


Messages In This Thread
Inserarea unui npc in Gothic 1 - by Raducu' - 05-01-2008, 05:29 PM
RE: Cum bagi un NPC in joc! - by Szekemri - 03-04-2011, 02:36 AM
RE: Cum bagi un NPC in joc! - by kelokata - 03-04-2011, 08:17 AM
RE: Cum bagi un NPC in joc! - by Raducu' - 03-04-2011, 12:33 PM
RE: Cum bagi un NPC in joc! - by kelokata - 03-04-2011, 02:35 PM
RE: Cum bagi un NPC in joc! - by Raducu' - 03-04-2011, 06:03 PM
RE: Cum bagi un NPC in joc! - by kelokata - 03-05-2011, 12:02 AM
RE: Cum bagi un NPC in joc! - by Raducu' - 03-05-2011, 12:10 AM
RE: Cum bagi un NPC in joc! - by kelokata - 03-05-2011, 12:21 AM
RE: Cum bagi un NPC in joc! - by Szekemri - 03-05-2011, 01:42 PM
RE: Cum bagi un NPC in joc! - by Raducu' - 03-05-2011, 01:53 PM
RE: Cum bagi un NPC in joc! - by kelokata - 03-05-2011, 02:00 PM
RE: Cum bagi un NPC in joc! - by Szekemri - 03-05-2011, 02:18 PM
RE: Cum bagi un NPC in joc! - by Raducu' - 03-05-2011, 02:20 PM
RE: Cum bagi un NPC in joc! - by kelokata - 03-06-2011, 12:43 AM
RE: Cum bagi un NPC in joc! - by kelokata - 03-06-2011, 10:37 PM
RE: Cum bagi un NPC in joc! - by Zamolxis1 - 09-14-2011, 04:05 PM
RE: Cum bagi un NPC in joc! - by Szekemri - 09-14-2011, 04:09 PM
RE: Cum bagi un NPC in joc! - by Zamolxis1 - 09-14-2011, 04:12 PM
RE: Cum bagi un NPC in joc! - by Szekemri - 09-14-2011, 04:19 PM
RE: Cum bagi un NPC in joc! - by Zamolxis1 - 09-14-2011, 04:31 PM
RE: Cum bagi un NPC in joc! - by old nick - 09-14-2011, 05:26 PM
RE: Cum bagi un NPC in joc! - by Robi - 11-12-2011, 09:02 PM
RE: Cum bagi un NPC in joc! - by Szekemri - 11-12-2011, 09:06 PM
RE: Cum bagi un NPC in joc! - by Robi - 11-12-2011, 09:26 PM
RE: Cum bagi un NPC in joc! - by Szekemri - 11-12-2011, 11:11 PM
RE: Cum bagi un NPC in joc! - by Robi - 11-13-2011, 03:03 PM
RE: Cum bagi un NPC in joc! - by old nick - 11-13-2011, 03:26 PM
RE: Cum bagi un NPC in joc! - by g3orge13 - 11-13-2011, 05:00 PM
RE: Cum bagi un NPC in joc! - by old nick - 11-13-2011, 05:07 PM
RE: Cum bagi un NPC in joc! - by Szekemri - 11-13-2011, 05:39 PM
RE: Cum bagi un NPC in joc! - by old nick - 11-13-2011, 05:58 PM
RE: Cum bagi un NPC in joc! - by Robi - 11-13-2011, 06:29 PM
RE: Cum bagi un NPC in joc! - by old nick - 11-13-2011, 08:45 PM
RE: Cum bagi un NPC in joc! - by g3orge13 - 11-13-2011, 08:15 PM
RE: Cum bagi un NPC in joc! - by Robi - 11-14-2011, 07:15 AM
RE: Cum bagi un NPC in joc! - by Szekemri - 11-14-2011, 10:27 AM
RE: Cum bagi un NPC in joc! - by Robi - 11-14-2011, 04:06 PM
RE: Cum bagi un NPC in joc! - by old nick - 11-14-2011, 04:54 PM
RE: Cum bagi un NPC in joc! - by Robi - 11-14-2011, 05:16 PM
RE: Cum bagi un NPC in joc! - by old nick - 11-14-2011, 09:11 PM
RE: Cum bagi un NPC in joc! - by Robi - 11-15-2011, 06:09 PM
RE: Cum bagi un NPC in joc! - by old nick - 11-15-2011, 06:26 PM
RE: Cum bagi un NPC in joc! - by Carnage - 11-15-2011, 07:34 PM
RE: Cum bagi un NPC in joc! - by Robi - 11-15-2011, 08:39 PM
RE: Cum bagi un NPC in joc! - by old nick - 11-15-2011, 09:14 PM
RE: Cum bagi un NPC in joc! - by Robi - 11-16-2011, 12:13 PM
RE: Cum bagi un NPC in joc! - by Szekemri - 11-16-2011, 12:20 PM
RE: Cum bagi un NPC in joc! - by Robi - 11-16-2011, 03:03 PM
RE: Cum bagi un NPC in joc! - by Szekemri - 11-16-2011, 03:07 PM
RE: Cum bagi un NPC in joc! - by Robi - 11-16-2011, 04:03 PM
RE: Cum bagi un NPC in joc! - by old nick - 11-16-2011, 06:56 PM
RE: Cum bagi un NPC in joc! - by Robi - 11-16-2011, 07:08 PM
RE: Cum bagi un NPC in joc! - by old nick - 11-16-2011, 07:22 PM
RE: Cum bagi un NPC in joc! - by Robi - 11-16-2011, 07:32 PM
RE: Cum bagi un NPC in joc! - by old nick - 11-16-2011, 07:57 PM
RE: Cum bagi un NPC in joc! - by Robi - 11-16-2011, 08:03 PM
RE: Cum bagi un NPC in joc! - by old nick - 11-16-2011, 08:10 PM
RE: Cum bagi un NPC in joc! - by Robi - 11-16-2011, 08:13 PM
RE: Cum bagi un NPC in joc! - by old nick - 11-16-2011, 09:04 PM
RE: Cum bagi un NPC in joc! - by Robi - 11-16-2011, 09:15 PM
RE: Cum bagi un NPC in joc! - by old nick - 11-16-2011, 09:18 PM
RE: Cum bagi un NPC in joc! - by Robi - 11-16-2011, 09:29 PM
RE: Cum bagi un NPC in joc! - by old nick - 11-16-2011, 09:36 PM
RE: Cum bagi un NPC in joc! - by Robi - 11-16-2011, 09:38 PM
RE: Cum bagi un NPC in joc! - by old nick - 11-16-2011, 10:02 PM
RE: Cum bagi un NPC in joc! - by Robi - 11-16-2011, 10:29 PM
RE: Cum bagi un NPC in joc! - by old nick - 11-16-2011, 10:36 PM
RE: Cum bagi un NPC in joc! - by Robi - 11-16-2011, 10:38 PM
RE: Cum bagi un NPC in joc! - by old nick - 11-17-2011, 12:17 AM
RE: Cum bagi un NPC in joc! - by Robi - 11-17-2011, 01:02 PM
RE: Cum bagi un NPC in joc! - by Robi - 11-17-2011, 04:05 PM
RE: Cum bagi un NPC in joc! - by old nick - 11-17-2011, 04:14 PM
RE: Cum bagi un NPC in joc! - by Robi - 11-17-2011, 04:31 PM
RE: Cum bagi un NPC in joc! - by old nick - 11-17-2011, 04:48 PM
RE: Cum bagi un NPC in joc! - by Robi - 11-17-2011, 05:00 PM
RE: Cum bagi un NPC in joc! - by old nick - 11-17-2011, 05:02 PM
RE: Cum bagi un NPC in joc! - by Robi - 11-17-2011, 05:05 PM
RE: Cum bagi un NPC in joc! - by old nick - 11-17-2011, 05:30 PM
RE: Cum bagi un NPC in joc! - by Robi - 11-17-2011, 05:40 PM
RE: Cum bagi un NPC in joc! - by old nick - 11-17-2011, 05:43 PM
RE: Cum bagi un NPC in joc! - by Robi - 11-17-2011, 05:49 PM
RE: Cum bagi un NPC in joc! - by old nick - 11-17-2011, 06:14 PM
RE: Cum bagi un NPC in joc! - by old nick - 11-17-2011, 07:40 PM
RE: Cum bagi un NPC in joc! - by Robi - 11-17-2011, 07:57 PM
RE: Cum bagi un NPC in joc! - by old nick - 11-17-2011, 08:13 PM
RE: Cum bagi un NPC in joc! - by Robi - 11-17-2011, 08:16 PM
RE: Cum bagi un NPC in joc! - by old nick - 11-17-2011, 09:01 PM
RE: Cum bagi un NPC in joc! - by Robi - 11-17-2011, 10:08 PM
RE: Cum bagi un NPC in joc! - by old nick - 11-17-2011, 10:16 PM
RE: Cum bagi un NPC in joc! - by Robi - 11-17-2011, 10:18 PM
RE: Cum bagi un NPC in joc! - by old nick - 11-17-2011, 10:34 PM
RE: Cum bagi un NPC in joc! - by Robi - 11-17-2011, 10:37 PM
RE: Cum bagi un NPC in joc! - by old nick - 11-19-2011, 09:40 PM
RE: Cum bagi un NPC in joc! - by Robi - 11-19-2011, 09:52 PM
RE: Cum bagi un NPC in joc! - by old nick - 11-19-2011, 10:26 PM
RE: Cum bagi un NPC in joc! - by Robi - 11-20-2011, 03:16 PM
RE: Cum bagi un NPC in joc! - by Carnage - 11-20-2011, 03:34 PM
RE: Cum bagi un NPC in joc! - by old nick - 11-20-2011, 04:41 PM
RE: Cum bagi un NPC in joc! - by Robi - 11-20-2011, 03:41 PM
RE: Cum bagi un NPC in joc! - by Robi - 11-20-2011, 05:05 PM
RE: Cum bagi un NPC in joc! - by old nick - 11-20-2011, 05:28 PM
RE: Cum bagi un NPC in joc! - by Robi - 11-20-2011, 05:30 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Gothic Multiplayer Moderation 1 2,140 07-13-2014, 10:22 AM
Last Post: Szekemri
  Proiect:Seria Gothic in romana ajerk 3 2,655 06-29-2014, 12:52 PM
Last Post: Szekemri
  Gothic 3 Unknown Land Cryssalis 22 10,227 02-05-2014, 04:12 PM
Last Post: Cryssalis
  Gothic Multiplayer Video/Pics BeoWulf 30 14,263 09-08-2013, 01:27 PM
Last Post: Edd
  Project Destiny Gothic Multiplayer daniels 11 6,995 08-28-2013, 04:28 PM
Last Post: cornel
  Gothic 2 night of the raven returning mod english sleeperoldman 1 2,711 08-13-2013, 07:39 PM
Last Post: Szekemri
  Gothic 3 english version Deneky 5 3,698 06-11-2013, 01:34 AM
Last Post: Deneky
  Gothic Multiplayer: Intrebari & Raspunsuri HeRoNaMeLeSs 52 21,776 05-30-2013, 04:22 PM
Last Post: Edd
  Ai mai juca Gothic daca... ? Edg 758 264,474 05-27-2013, 07:08 PM
Last Post: Bogdan
Wink Maxima-Gothic.RO HeRoNaMeLeSs 13 6,615 05-07-2013, 03:56 PM
Last Post: HeRoNaMeLeSs

Forum Jump:


Users browsing this thread: 1 Guest(s)