Jump to content

No minHP-belt in BG1... How do I prevent my NPC from dying?


jastey

Recommended Posts

Shoal in BG1 has the script:

 

IF

HitBy([PC],CRUSHING)

THEN

RESPONSE #100

SetGlobal("ShoalHit","GLOBAL",1)

Dialogue([PC])

END

 

 

As far as I recall, the quest worked in my BG1 runthrow(s). Now I want to use this for a custom quest - and my PC and the quest NPC keep fighting, no matter which weapon my PC is using or how hard the NPC get hit. Does anyone have a better idea?

Link to comment

Is this a Tutu/BGT/BG2 game, or a BG1/TotSC game+your mod ?

The fact that Shoal doesn't die might be that it's part of the tutorial and the PC doesn't have the best weapons etc... and the fact that he is set to talk right after the first hit... following the tutorials ideal.

 

So let's assume it's for BG1 mod. What are you trying to archive ? Without as much spoilers as possible.

As in, you could summon the harmed/almost dead NPC in the dialog/script action, while using HPLT(myself,999) in the script to launch the dialog, if the NPC has say 1050 HPs, as the PC is unlikely to cause the 1000 HP damage before your top script is ran once.

 

PS: The Global("Hitme","GLOBAL",1) is set to 1 before the start of the fight... and then.

 

IF
HPLT(Myself,999)
Global("Hitme","GLOBAL",1)
THEN
RESPONSE #100
SetGlobal("Hitme","GLOBAL",2)
Dialogue([PC])
END

Link to comment

Archived

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

×
×
  • Create New...