Everyone in module going hostile when they shouldn't
sarevok57
Member Posts: 6,002
so i'm having some frustrating results with my scripts here;
for some weird reason when i tell an NPC to go hostile after when the dialogue is finished EVERY single NPC with the same faction goes hostile throughout the entire module ( which is just down right bizarre and annoying )
is there a way, to make it so the NPC starts off blue ( not hostile ) has a conversation with the PC then after the conversation is done, the NPC ( and ONLY the NPC ) goes hostile and attacks the PC, and doing this WITHOUT making everyone else with the same faction in the module hostile as well?
for some weird reason when i tell an NPC to go hostile after when the dialogue is finished EVERY single NPC with the same faction goes hostile throughout the entire module ( which is just down right bizarre and annoying )
is there a way, to make it so the NPC starts off blue ( not hostile ) has a conversation with the PC then after the conversation is done, the NPC ( and ONLY the NPC ) goes hostile and attacks the PC, and doing this WITHOUT making everyone else with the same faction in the module hostile as well?
0
Comments
Next, I'd check the method by which you cause the NPC to become hostile and attack. The game contains a script named nw_c2_go_hostile that can do this; it changes the NPC's faction to Hostile, which is a good idea.
You could also just create a unique faction for the NPC, neutral to every other faction (and vice versa). Then there shouldn't be any chance of anything strange happening.
can't use the nw script since it is done through dialogue
and im going to also set custom factions for each npc and hopefully that works
thanks for the tips
If you choose a different parent, your new faction should mostly have 50s, as the initial values are inherited.
When you export custom faction resources, their faction resets to the parent - otherwise, I don't think parent has any other official purpose.
Caveat - some builders think that using a parent other than Hostile can be buggy - not sure whether that's true.
so as long as it works that way, without having the rest of the module hostile towards the player then good enough for me