Jump to content

L1NPC for Gavin (or Haldamir)


berelinde

Recommended Posts

If you want L1NPC for Gavin (or Haldamir), you can edit setup-l1npc.tp2 and insert this code at the end of the file. Please make sure that you're editing setup-l1npc.tp2 and not any other tp2, or it won't work.

 

////\\\\////\\\\////\\\\////\\\\////\\\\////\\\\////\\\\////\\\\////\\\\
//////\\\\\\//////\\\\\\//////\\\\\\//////\\\\\\//////\\\\\\//////\\\\\\
//																	\\
//   Gavin   Gavin   Gavin   Gavin   Gavin   Gavin   Gavin   Gavin	\\
//																	\\
//////\\\\\\//////\\\\\\//////\\\\\\//////\\\\\\//////\\\\\\//////\\\\\\
////\\\\////\\\\////\\\\////\\\\////\\\\////\\\\////\\\\////\\\\////\\\\

/* BG1 */
BEGIN ~Gavin for Tutu/BGT~ 
DESIGNATED 2010
REQUIRE_COMPONENT ~level1npcs.tp2~ "0"  @110600
REQUIRE_PREDICATE (FILE_CONTAINS ~override/pdialog.2da~ ~b!gavinj~) ~Gavin for Tutu/BGT must be installed~ 

LAUNCH_ACTION_MACRO ~fj_install_component_variables~
COPY_EXISTING ~b!gavin.cre~  ~override~
 PATCH_IF (SOURCE_SIZE > 0x2d3) THEN BEGIN
LAUNCH_PATCH_MACRO ~fj_modify_cre~
 END
BUT_ONLY

/* BG2 */ 
BEGIN ~Gavin for BG2~
DESIGNATED 2020 
REQUIRE_COMPONENT ~level1npcs.tp2~ "0"  @110600
REQUIRE_PREDICATE (FILE_CONTAINS ~override/pdialog.2da~ ~b!gavj~) ~Gavin for BG2 must be installed~ 

LAUNCH_ACTION_MACRO ~fj_install_component_variables~
COPY_EXISTING ~b!gav08.cre~  ~override~
		  ~b!gav13.cre~  ~override~
 PATCH_IF (SOURCE_SIZE > 0x2d3) THEN BEGIN
LAUNCH_PATCH_MACRO ~fj_modify_cre~
 END
BUT_ONLY

////\\\\////\\\\////\\\\////\\\\////\\\\////\\\\////\\\\////\\\\////\\\\
//////\\\\\\//////\\\\\\//////\\\\\\//////\\\\\\//////\\\\\\//////\\\\\\
//																	\\
//	 Haldamir  Haldamir  Haldamir  Haldamir  Haldamir  Haldamir	 \\
//																	\\
//////\\\\\\//////\\\\\\//////\\\\\\//////\\\\\\//////\\\\\\//////\\\\\\
////\\\\////\\\\////\\\\////\\\\////\\\\////\\\\////\\\\////\\\\////\\\\

BEGIN ~Haldamir~ 
DESIGNATED 3000
REQUIRE_COMPONENT ~level1npcs.tp2~ "0"  @110600
REQUIRE_PREDICATE (FILE_CONTAINS ~override/pdialog.2da~ ~b!halj~) ~Haldamir must be installed~ 

LAUNCH_ACTION_MACRO ~fj_install_component_variables~
COPY_EXISTING ~b!hal.cre~  ~override~
 PATCH_IF (SOURCE_SIZE > 0x2d3) THEN BEGIN
LAUNCH_PATCH_MACRO ~fj_modify_cre~
 END
BUT_ONLY

Save and install, and you're good to go. Tested it myself just now. This will change their starting equipment, but the starting equipment is nothing special, so it's no big deal.

 

Edit: Combined SoA and ToB. Initially, there was some confusion on my part whether I had appended pdialog.2da to include ToB and made up the ToB CRE but investigation reveals that I have, so why pick everything twice?

Link to comment

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...