Jump to content


Photo

Code for mod NPCs


81 replies to this topic

#76 Hoppy

Hoppy
  • Members
  • 30 posts
  • Location:New York. USA

Posted 29 September 2010 - 12:33 PM

Here we go with megamod NPC's list and their references/files. Also listed their current stock kits at installation. TS-BP or Tortured Souls in general has specific details about NPC's in dialogs about their kits so that could be a little more conceptually problematic.


The Darkest Day


Xzar: Necromancer/XZAR13.CRE

items: CLCK17, BRAC03, STAF07, SCRL10, SCRL1Q,SCRL72. SPL applied with WTAXZAR script:GiveItemCreate("POSC229a",Myself,1,0,0) // Thunderclap

Join dialog: XZARDD


Montaron: Swashbuckler/MONTAR13.CRE

item: none

Join Dialog: MONTARDD

Vesine: Aquatic Druid (her bio and avatar reflect this kit). VESINE8, VESINE11, VESINE13.

Item: Blade of Sandglass (ddves01.itm by VESINE.BCS)

Kagain: Trollslayer/KAGAIN11.CRE

items: Trollbane (applied by kit).

Item 0	Item: HELM12.ITM (Helmet),Unknown: 00 00 h,Quantity/Charges 1: 0,Quantity/Charges 2: 0,
Item 1	Item: CHAN04.ITM (Splint Mail),Unknown: 00 00 h,Quantity/Charges 1: 0,Quantity/Charges 2: 0,
Item 2	Item: SHLD03.ITM (Medium Shield),Unknown: 00 00 h,Quantity/Charges 1: 0,Quantity/Charges 2: 0,
Item 3	Item: BELT01.ITM (Girdle),Unknown: 00 00 h,Quantity/Charges 1: 0,Quantity/Charges 2: 0,
Item 4	Item: BOOT06.ITM (Worn Out Boots),Unknown: 00 00 h,Quantity/Charges 1: 0,Quantity/Charges 2: 0,
Item 5	Item: TROLSIND.ITM (Troll Cinder),Unknown: 00 00 h,Quantity/Charges 1: 0,Quantity/Charges 2: 0,
Item 6	Item: AX1H04.ITM (Throwing Axe),Unknown: 00 00 h,Quantity/Charges 1: 10,Quantity/Charges 2: 0,
Kivan: Feralan/KIVAN13

items:
Item 0	Item: BOW03.ITM (Long Bow),Unknown: 00 00 h,Quantity/Charges 1: 1,Quantity/Charges 2: 0,
Item 1	Item: SW1H04.ITM (Long Sword),Unknown: 00 00 h,Quantity/Charges 1: 1,Quantity/Charges 2: 0,
Item 2	Item: AROW01.ITM (Arrow),Unknown: 00 00 h,Quantity/Charges 1: 40,Quantity/Charges 2: 0,
Item 3	Item: AROW05.ITM (Arrow of Biting),Unknown: 00 00 h,Quantity/Charges 1: 5,Quantity/Charges 2: 0,
Item 4	Item: AROW04.ITM (Acid Arrow),Unknown: 00 00 h,Quantity/Charges 1: 20,Quantity/Charges 2: 0,
Item 5	Item: POTN52.ITM (Potion of Extra Healing),Unknown: 00 00 h,Quantity/Charges 1: 1,
Item 6	Item: LEAT04.ITM (Studded Leather Armor),Unknown: 00 00 h,Quantity/Charges 1: 0,

DIALOG:KIVANDD.DLG

Yeslick: Fighter-Cleric (multiclass)/YESLIC9

items:
Item 0	Item: HELM01.ITM (Helmet),Unknown: 00 00 h,Quantity/Charges 1: 0,Quantity/Charges 2: 0,
Item 1	Item: PLAT01.ITM (Plate Mail),Unknown: 00 00 h,Quantity/Charges 1: 0,Quantity/Charges 2: 0,
Item 2	Item: HAMM08.ITM (War Hammer +2),Unknown: 00 00 h,Quantity/Charges 1: 0,Quantity/Charges 2: 0,
Item 3	Item: POTN52.ITM (Potion of Extra Healing),Unknown: 00 00 h,Quantity/Charges 1: 5,
Item 4	Item: POTN04.ITM (Potion of Frost Giant Strength),Unknown: 00 00 h,Quantity/Charges 1: 2,

Dialog: YESLICDD

Adario Kalvaras: Assassin/ADARIO12

items:
Item 0	Item: LEAT03.ITM (Protector of the Second +2),Unknown: 00 00 h,Quantity/Charges 1: 0,
Item 1	Item: SW1H07.ITM (Short Sword),Unknown: 00 00 h,Quantity/Charges 1: 0,Quantity/Charges 2: 0,
Item 2	Item: ADARIOBC.ITM (Bracers Of Dual Malice),Unknown: 00 00 h,Quantity/Charges 1: 1,
Item 3	Item: ADARIOSW.ITM (Dark Feeder),Unknown: 00 00 h,Quantity/Charges 1: 1,Quantity/Charges 2: 0,
Item 4	Item: DAGG05.ITM (Throwing Dagger),Unknown: 00 00 h,Quantity/Charges 1: 40,Quantity/Charges 2: 0,
Item 5	Item: DAGG05.ITM (Throwing Dagger),Unknown: 00 00 h,Quantity/Charges 1: 40,Quantity/Charges 2: 0,

Dialog:KALVARAS.DLG

SharTeel: Blademaster/SHARTE12

items: Blademaster armor (restricted to that kit). Added by script with BGT installed

Item 0	Item: SHAR20.ITM (Blade Master Leather),Unknown: 00 00 h,Quantity/Charges 1: 0,Quantity/Charges 2: 0,
Item 1	Item: SW2H11.ITM (Two Handed Sword +2),Unknown: 00 00 h,Quantity/Charges 1: 0,Quantity/Charges 2: 0,
Item 2	Item: TTPOT.ITM (Potion of Extra Healing),Unknown: 00 00 h,Quantity/Charges 1: 3,
Item 3	Item: POTN46.ITM (Potion of Stone Form),Unknown: 00 00 h,Quantity/Charges 1: 4,Quantity/Charges 2: 0,
Item 4	Item: POTN05.ITM (Potion of Fire Giant Strength),Unknown: 00 00 h,Quantity/Charges 1: 2,

Dialog:SHARTEDD.DLG

Robillard: Enchanter/ROBILARD.CRE

items:
Item 0	Item: CLCK11.ITM (Mage Robe of Electric Resistance),Unknown: 00 00 h,Quantity/Charges 1: 0,
Item 1	Item: RINGROB.ITM (Ring of the Water Sphere),Unknown: 00 00 h,Quantity/Charges 1: 0,
Item 2	Item: DART02.ITM (Dart +1),Unknown: 00 00 h,Quantity/Charges 1: 20,Quantity/Charges 2: 0,
Item 3	Item: DART02.ITM (Dart +1),Unknown: 00 00 h,Quantity/Charges 1: 20,Quantity/Charges 2: 0,
Item 4	Item: POTN20.ITM (Antidote),Unknown: 00 00 h,Quantity/Charges 1: 2,Quantity/Charges 2: 0,
Item 5	Item: DAGG15.ITM (Dagger +2),Unknown: 00 00 h,Quantity/Charges 1: 1,Quantity/Charges 2: 0,

Dialog:ROBILARD.DLG

Avaunis Adelez: Cerebral Knight/AVAUN9, AVAUN11, AVAUN13

items:

Item 0	Item: HELM01.ITM (Helmet),Unknown: 00 00 h,Quantity/Charges 1: 0,Quantity/Charges 2: 0,
Item 1	Item: CHAN04.ITM (Splint Mail),Unknown: 00 00 h,Quantity/Charges 1: 0,Quantity/Charges 2: 0,
Item 2	Item: SW2H01.ITM (Two Handed Sword),Unknown: 00 00 h,Quantity/Charges 1: 0,Quantity/Charges 2: 0,
Item 3	Item: POTN08.ITM (Potion of Healing),Unknown: 00 00 h,Quantity/Charges 1: 2,Quantity/Charges 2: 0,

Dialog: AVAUNIS.DLG

Shadows Over Soubar

Charlotte: Begins as Fallen Stalker. Through SoS quests with her in tow, she will gain Stalker status again.

Tomas Tomalson: Swashbuckler/TOMAST11, TOMAST16, TOMAST19

items:



Selence Hillstar: Fence (quests and dialogs reflect this)

items: Selence's Knapsack (acts as a store)

Bolivar: Fighter


Check the Bodies

Rynn: Fighter/RYNNPC06. RYNNPC11, RYNNPC15, RYNNPC19


items:
Item 0	Item: CHAN02.ITM (Chain Mail +1),Unknown: 00 00 h,Quantity/Charges 1: 0,Quantity/Charges 2: 0,
Item 1	Item: DAGG03.ITM (Dagger +2),Unknown: 00 00 h,Quantity/Charges 1: 0,Quantity/Charges 2: 0,
Item 2	Item: RING09.ITM (Ring of Free Action),Unknown: 00 00 h,Quantity/Charges 1: 0,Quantity/Charges 2: 0,
Item 3	Item: SW1H07.ITM (Short Sword),Unknown: 00 00 h,Quantity/Charges 1: 0,Quantity/Charges 2: 0,
Item 4	Item: POTN17.ITM (Elixir of Health),Unknown: 00 00 h,Quantity/Charges 1: 3,Quantity/Charges 2: 0,
Item 5	Item: PLAT01.ITM (Plate Mail),Unknown: 00 00 h,Quantity/Charges 1: 0,Quantity/Charges 2: 0,
Item 6	Item: SCRL5B.ITM (Defensive Harmony),Unknown: 00 00 h,Quantity/Charges 1: 1,Quantity/Charges 2: 0,

Dialog: RYNN.DLG


I will add Soubar's stuff later.

Edited by Hoppy, 29 September 2010 - 01:04 PM.


#77 Miloch

Miloch

    Barbarian

  • Modders
  • 4715 posts
  • Gender:Male
  • Location:At Large

Posted 29 September 2010 - 07:41 PM

Here we go with megamod NPC's list and their references/files. Also listed their current stock kits at installation. TS-BP or Tortured Souls in general has specific details about NPC's in dialogs about their kits so that could be a little more conceptually problematic.

Cheers, mate. I actually looked at and added most of these already, though I did not get around to TS. Also I probably missed a few RoT NPCs as I added only the ones it had in common with Drizzt Saga (which was a pain, because I did not want to do multiple components for the same NPC names, as there are way too many already).

It shouldn't matter what generic gear they have, or even specific gear - if they have it in inventory already on their .cre files, it'll get handled automatically for the most part. It's the quest-type of stuff that only they can use and that they can get later that needs to be addressed - so stuff like ddves01.itm I already caught, but I don't know if I caught everything. Also any NPC-specific items look like they need to be added to another routine, even if they come pre-equipped. There are about 3 or 4 different spots in the code where specific NPCs need to be addressed (not just the specific NPC components). Probably more I've missed. Nythrun seemed to imply Valen was difficult, but her items were fairly straightforward, so maybe it's in innate spells or something I dunno. If I have to mess with that sort of thing it could get ugly :).

I'll admit it probably doesn't make sense to change some of these kits but that goes for vanilla NPCs too. Still, folks can use it to tweak proficiencies. I added a function that prints out the existing NPC's class, kit, stats and proficiencies, so maybe that helps people decide what to give them.

Also added all other NPCs in this thread and a few others. These G3 NPCs haven't been added (the others have):
- Amber
- Auren Aseph
- Mur'Neth
- Sarah
- Tyris Flare

Only Iylos, Xulaye and Ninde are added from SHS (not counting megamods, which will be covered). I think we have all PPG NPCs (major ones anyway - not really worth IMO adding one-day NPCs). Nothing from CoM or other forums. If anyone wants support for any NPCs not covered currently, please get the modder to post here or post something that indicates the mod is public domain, open license or what-have-you. I don't really plan on chasing down a bunch of modders (apart from the few I know and asked - I don't really feel it should be necessary any more than modders have felt it necessary to ask the original game authors for their approval, but nor do I feel like dealing with any "imprecations" either :beer:).
Mod Contributions
Aurora (new release!) * BG1 NPC * Gnomes * Haiass * Level 1 NPCs * Lost Items * P5Tweaks
PnP Free Action * Thrown Hammers * Unique Containers * In Progress: Adjusted Portraits * DSotSC (Tutu)
================================================================
Player & Modder Resources
BAM Batcher * Creature Lister * PSPad Highlighters * Tutu/BGT Area Map & List * Tutu Mod List
================================================================
"Wherefore do ye toil; is it not that ye may live and be happy? And if ye toil only that ye may toil more,
when shall happiness find you?" -H.P. Lovecraft, The Quest of Iranon

#78 Azazello

Azazello

    The Anti-Spammer

  • Members
  • 555 posts
  • Gender:Male
  • Location:Orlando (via Nairobi, Kenya {via New York City})

Posted 31 December 2011 - 06:04 AM

The primary moder I believe is still Azazello

Eh... what? He never modded anything, as I'm sure he'd be quick to tell you if he were around (and not just perma-ghost-logged into SHS for the past several months). I think he was just the one to suggest "hey wouldn't it be cool if someone updated Blucher's Level 1 NPCs mod?" And the person who did that of course was Nythrun. But yeah, erik has been doing recent updates. I added most of the existing NPCs in this thread locally but may have done so with an earlier edit of erik's so I'll have to dig it up on whichever backup device it's on and diff it.


Despite his snarkiness (and who here is really surprised by that? :p), Miloch is for-the-most-part correct.

And I assure you all, my "perma-ghost-log[ins]" on any forum was not by design, or nefarious purposes. :D


Here publicly, I'm calling Miloch out: Let's all encourage him to accept a Modder label under his profile--he more than deserves it.


I do hope all major contributors to the mod have been added to both the ReadMe and mod's project page. If it hasn't yet been done, I hope in the coming year (haha) I can put in that update.

I sincerely thank everyone for maintaining, expanding, playing and recommending L1NPC, and hope you're enjoying it immensely.

Edited by Azazello, 01 January 2012 - 05:44 AM.

Der Tag beginnt in der Mittel am Nacht, immer. -- Peter Wendl
================================================================
Community Contributions
a directory of Mega-Installation Guides * Level 1 NPCs * gMinion: expanded TP2 for MegaInstalls * PSM (PSQM): expanded scripts for Melanthium * Weimer's-Tactics: revised TP2 for MegaInstalls * non-detectable Cloak of Non-Detection ?? * Shar Nadal (DSotSC-BGT) revision

#79 Kulyok

Kulyok
  • Members
  • 5552 posts
  • Gender:Female
  • Location:Moscow, Russia

Posted 01 February 2013 - 04:01 AM

I just checked the latest version, 1.9, and I wanted to give my thanks for including Coran for BG2. Will try him in the game soonish.

Here's another thing(or five): I understand that Level1NPCs works for BG2/Tutu/BGT, not IWD, but can Level1NPCs work for IWD-in-BG2? Because - yes, you guessed it, I'd really like to be able to choose any class/proficiency for Icewind Dale NPCs, such as Holvir, Korin, Nella, Severn and Teri. Maybe it will become possible in one of the next versions?

Basic info is below(no custom items whatsoever): .cre, override, dialogue and death variable, just in case.

COPY ~IWDNPC/Characters/O#Holvir.cre~ ~override/O#Holvir.cre~
WRITE_ASCII 0x248 ~O#Holvir~ #8 // override
WRITE_ASCII 0x2cc ~O#HStart~ #8 // dialogue
WRITE_ASCII 0x280 ~O#Holvir~ #32 // death variable

COPY ~IWDNPC/Characters/O#Korin.cre~ ~override/O#Korin.cre~
WRITE_ASCII 0x248 ~O#Korin~ #8 // override
WRITE_ASCII 0x2cc ~O#KStart~ #8 // dialogue
WRITE_ASCII 0x280 ~O#Korin~ #32 // death variable

COPY ~IWDNPC/Characters/O#Nella.cre~ ~override/O#Nella.cre~
WRITE_ASCII 0x248 ~O#Nella~ #8 // override
WRITE_ASCII 0x2cc ~O#NStart~ #8 // dialogue
WRITE_ASCII 0x280 ~O#Nella~ #32 // death variable

COPY ~IWDNPC/Characters/O#Severn.cre~ ~override/O#Severn.cre~
WRITE_ASCII 0x248 ~O#Severn~ #8 // override
WRITE_ASCII 0x2cc ~O#SStart~ #8 // dialogue
WRITE_ASCII 0x280 ~O#Severn~ #32 // death variable

COPY ~IWDNPC/Characters/O#Teri.cre~ ~override/O#Teri.cre~
WRITE_ASCII 0x248 ~O#Teri~ #8 // override
WRITE_ASCII 0x2cc ~O#TStart~ #8 // dialogue
WRITE_ASCII 0x280 ~O#Teri~ #32 // death variable

#80 Azazello

Azazello

    The Anti-Spammer

  • Members
  • 555 posts
  • Gender:Male
  • Location:Orlando (via Nairobi, Kenya {via New York City})

Posted 03 February 2013 - 07:40 AM

Thanks Kulyok, we'll explore getting this option into a future release. Hope there's no rush!

#81 Miloch

Miloch

    Barbarian

  • Modders
  • 4715 posts
  • Gender:Male
  • Location:At Large

Posted 20 February 2013 - 03:17 PM

I understand that Level1NPCs works for BG2/Tutu/BGT, not IWD, but can Level1NPCs work for IWD-in-BG2?

Yes, it should be possible in theory since they would be BG2 format whereas IWD(2) creatures use a different format than L1NPCs currently supports. All we need is the CRE file names (and their actual names), joining/kickout dialogue file names, any custom items particularly including unique quest items they're not initially equipped with, and I guess you've provided all that so we'll add it to the list for the next release.
Mod Contributions
Aurora (new release!) * BG1 NPC * Gnomes * Haiass * Level 1 NPCs * Lost Items * P5Tweaks
PnP Free Action * Thrown Hammers * Unique Containers * In Progress: Adjusted Portraits * DSotSC (Tutu)
================================================================
Player & Modder Resources
BAM Batcher * Creature Lister * PSPad Highlighters * Tutu/BGT Area Map & List * Tutu Mod List
================================================================
"Wherefore do ye toil; is it not that ye may live and be happy? And if ye toil only that ye may toil more,
when shall happiness find you?" -H.P. Lovecraft, The Quest of Iranon

#82 Kulyok

Kulyok
  • Members
  • 5552 posts
  • Gender:Female
  • Location:Moscow, Russia

Posted 05 September 2013 - 11:13 PM

// Branwen, no custom items

BEGIN
DESIGNATED
REQUIRE_COMPONENT ~level1npcs.tp2~ "0" @110600
REQUIRE_COMPONENT ~Setup-Branwen.tp2~ "0" ~~ // Note: .tp2 is inside the mod's folder

LAUNCH_ACTION_MACRO ~fj_install_component~
COPY_EXISTING ~o#bran.cre~ ~override~
PATCH_IF (SOURCE_SIZE > 0x2d3) THEN BEGIN
LAUNCH_PATCH_MACRO ~fj_modify_cre~
END
BUT_ONLY
ACTION_IF (FILE_EXISTS_IN_GAME ~o#bran25.cre~) THEN BEGIN
COPY_EXISTING ~o#bran25.cre~ ~override~
PATCH_IF (SOURCE_SIZE > 0x2d3) THEN BEGIN
LAUNCH_PATCH_MACRO ~fj_modify_cre~
END
BUT_ONLY
END



Reply to this topic



  


0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users