Example
Code:
instance BAU_900_Onar (Npc_Default){
// ------ NSC ------
name = "Onar";
guild = GIL_BAU;
id = 900;
voice = 14;
flags = NPC_FLAG_IMMORTAL; //NPC_FLAG_IMMORTAL oder 0
npctype = NPCTYPE_MAIN;
// ------ Attribute ------
B_SetAttributesToChapter (self, 4); //setzt Attribute und LEVEL entsprechend dem angegebenen Kapitel (1-6)
// ------ Kampf-Taktik ------
fight_tactic = FAI_HUMAN_STRONG; // MASTER / STRONG / COWARD
// ------ Equippte Waffen ------ //Munition wird automatisch generiert, darf aber angegeben werden
EquipItem (self, ItMw_1h_Bau_Mace);
// ------ Inventory ------
B_CreateAmbientInv (self);
// ------ visuals ------ //Muss NACH Attributen kommen, weil in B_SetNpcVisual die Breite abh. v. STR skaliert wird
B_SetNpcVisual (self, MALE, "Hum_Head_FatBald", Face_N_OldBald_Jeremiah, BodyTex_N, ITAR_Vlk_H);
Mdl_SetModelFatness (self, 2);
Mdl_ApplyOverlayMds (self, "Humans_Arrogance.mds"); // Tired / Militia / Mage / Arrogance / Relaxed
// ------ NSC-relevante Talente vergeben ------
B_GiveNpcTalents (self);
// ------ Kampf-Talente ------ //Der enthaltene B_AddFightSkill setzt Talent-Ani abhдngig von TrefferChance% - alle Kampftalente werden gleichhoch gesetzt
B_SetFightSkills (self, 70); //Grenzen fьr Talent-Level liegen bei 30 und 60i
// ------ TA anmelden ------
daily_routine = Rtn_Start_900;
};
B_GiveNpcTalents (self); ->
Code:
func void B_GiveNpcTalents (var C_NPC slf){
// ------ Magierkreis 6 bei allen NSCs (potentiell wichtig fьrs Runen-Equippen) -------
Npc_SetTalentSkill (slf, NPC_TALENT_MAGE, 6);
// ------ Kampf-Talente ------
//werden ьber B_AddFightSkill gesetzt
// ------ Sonstige Talente ------
Npc_SetTalentSkill (slf, NPC_TALENT_PICKLOCK, 1); //hдngt ab von DEX (auf Programmebene)
Npc_SetTalentSkill (slf, NPC_TALENT_SNEAK, 1);
Npc_SetTalentSkill (slf, NPC_TALENT_ACROBAT, 0);
Npc_SetTalentSkill (slf, NPC_TALENT_PICKPOCKET, 0); //hдngt ab von DEX (auf Scriptebene)
Npc_SetTalentSkill (slf, NPC_TALENT_SMITH, 1);
Npc_SetTalentSkill (slf, NPC_TALENT_RUNES, 1);
Npc_SetTalentSkill (slf, NPC_TALENT_ALCHEMY, 1);
Npc_SetTalentSkill (slf, NPC_TALENT_TAKEANIMALTROPHY, 0);
};
Edits
Code:
// ------ Magierkreis 6 bei allen NSCs (potentiell wichtig fьrs Runen-Equippen) -------
Npc_SetTalentSkill (slf, NPC_TALENT_MAGE, 6);