Jump to content

Code for mod NPCs


Recommended Posts

I am opening this topic to contribute code for various mod NPCs for Level1NPCs - in my case, my own. Please, feel free to add yours(either the ready code, or just their names).

 

For comments: This topic can be used for comments and adding mod NPCs names, too.

 

// Xan for BG2

 

BEGIN

DESIGNATED

REQUIRE_COMPONENT ~level1npcs.tp2~ "0" @110600

REQUIRE_COMPONENT ~Setup-Xan.tp2~ "0" ~~ // Note: .tp2 is inside the mod's folder

 

LAUNCH_ACTION_MACRO ~fj_install_component~

COPY_EXISTING ~o#xan09.cre~ ~override~

~o#xan11.cre~ ~override~

~o#xan12.cre~ ~override~

~o#xan13.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#xan25.cre~) THEN BEGIN

COPY_EXISTING ~o#xan25.cre~ ~override~

PATCH_IF (SOURCE_SIZE > 0x2d3) THEN BEGIN

LAUNCH_PATCH_MACRO ~fj_modify_cre~

END

BUT_ONLY

END

 

 

Xan's custom items for the future fj_replace_item_usability:

O#XanIMB.itm (improved moonblade, dagger)

O#XanIMS.itm (improved moonblade, long sword)

O#XanMB.itm (moonblade, dagger)

O#XanMS.itm (moonblade, long sword)

 

// Tiax for BG2

 

BEGIN

DESIGNATED

REQUIRE_COMPONENT ~level1npcs.tp2~ "0" @110600

REQUIRE_COMPONENT ~Setup-Tiax.tp2~ "0" ~~ // Note: .tp2 is inside the mod's folder

 

LAUNCH_ACTION_MACRO ~fj_install_component~

COPY_EXISTING ~o#tiax.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#tiax25.cre~) THEN BEGIN

COPY_EXISTING ~o#tiax25.cre~ ~override~

PATCH_IF (SOURCE_SIZE > 0x2d3) THEN BEGIN

LAUNCH_PATCH_MACRO ~fj_modify_cre~

END

BUT_ONLY

END

 

 

Tiax's custom items for the future fj_replace_item_usability:

O#CyrSym.itm (Cyric's Holy Symbol, ToB only)

Link to comment

// Iylos for BGII: ToB
BEGIN
 DESIGNATED
 REQUIRE_COMPONENT ~level1npcs.tp2~ "0" @110600
 REQUIRE_COMPONENT ~iylos.tp2~ "0" ~~ // Note: .tp2 is inside the mod's folder

LAUNCH_ACTION_MACRO ~fj_install_component~
 COPY_EXISTING ~lk#iylo.cre~ ~override~
PATCH_IF (SOURCE_SIZE > 0x2d3) THEN BEGIN
  LAUNCH_PATCH_MACRO ~fj_modify_cre~
END
 BUT_ONLY
END

 

Iylos' custom items for the future fj_replace_item_usability:

lk#iamul.itm (Amulet of Tranquillity)

lk#ibelt.itm (Belt of Storage)

lk#iboot.itm (Boots of the Nomad)

lk#ibrac.itm (Bracers of the Coiling Serpent)

lk#iclck.itm (Cloak of the Deserts)

lk#ihood.itm (Aegis of the Deserts)

lk#iring.itm (Sandstone Ring)

lk#irobe.itm (Monastic Robe)

Edited by Kaeloree
Link to comment

Listing the salient .cre and .itm files is all I'd really need if anyone else wants to jump in - signature item usabilities were sorted ages ago. Though if there's any wacky scripting that checks for your own character's class, that's always good to know.

 

I'll add these posthaste; thank you both :suspect:

Link to comment

I'd like to extend the above request for information to include the NPC's script name and the name of their initial dialogue file (the one that would contain their first JoinParty() action). I have this already for the above mods and the half-dozen others that will be included in V1; it's just reference for future additions.

Link to comment

I can help test a little, though I won't be able to read the code, I'm afraid.

 

Aaand I asked jcompton to take a look at this very thread(to, basically, tell you that yes, please, uncomment your code for Keto/Kelsey/Sola/Valen), but from looking at this thread, it seems that it's really unnecessary. :suspect:

Link to comment

Gavin:

 

CRE: B!GAVIN

BCS: B!GAVIN

DLG: B!GAVIN

ITM: B!GAVRNG, b!hand

 

Don't know if somebody would want to give him a different class, but you never know. I wouldn't want somebody saying "This mod would be cool if only he was a fighter/cleric instead."

Link to comment

And Gavin has joined the pyre :suspect:

 

Based on the feedback I've had thus far, people are using this mod in more of a tweaky spirit to nudge weapon proficiencies and the like into more agreeable configurations rather than to make silly apes of their favorite NPCs.

Link to comment

Yes, I agree. I'm actually going to make Gavin or Finch a fighter/cleric, when I play BG1 Tutu again, because straight clerics, like Viccy or Branwen, never seem to work as well for me. (Hence Nella the figher->cleric(druid) or a fighter/cleric(druid) in IWD NPC).

Link to comment

Join the conversation

You are posting as a guest. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...