Question about making NCPs attack the player

Post » Thu Sep 09, 2010 10:24 pm

Hi all.

I’m continuing to learn quest writing. I’ve now got quite a complex quest set up…its similar to the main quest, when the player joins the Mythic Dawn.

The quest I’ve written sees the player walking through a cave full of friendly NCPs. Once the player talks with their leader all the NCPs become hostile and attack the player.

This bit is working..I’ve placed all the NCPs into a faction, then, once the quest stage updates I’ve changed the NPC / Player disposition to –100.

Here’s the bit I need help on…

I want to turn the entire faction against the player if the player attacks any of the member NCPs before talking with the leader. I’d also like this action to change the quest stage adding a journal entry of ‘I must now find another way to get my information’.

I’ve been trying to work out how to do this with a script attached to each NCP, however my scripting knowledge is very limited..(normally limited to examples I can pull from other vanilla quests)

My idea was to have a script attached to the NCPS that says:

If the player attacks set quest stage to 60

Then have quest stage 60 modify the factions disposition to player and produce the relevant journal update.

Would this work? Would anyone be able to assist me with the script??
User avatar
Danel
 
Posts: 3417
Joined: Tue Feb 27, 2007 8:35 pm

Post » Fri Sep 10, 2010 5:25 am

I've been rooting around online and think I have found a script that would advance the quest should one of the target NCPs get killed prematurely ..I've already adapted it to fit within the quest I've written

scn 1BHQ2MarauderScript

begin OnDeath

if ( GetStage 1BHQ2 < 50 )
setstage 1BHQ2 60
endif

end


I'll give this a try tonight.. however, is there a way of adapting it so the script only runs if the player attacks the NCP and not kills them?
User avatar
saxon
 
Posts: 3376
Joined: Wed Sep 19, 2007 2:45 am

Post » Thu Sep 09, 2010 11:45 pm

scn 1BHQ2MarauderScriptbegin OnHit Playerif ( GetStage 1BHQ2 < 50 )setstage 1BHQ2 60endifend

User avatar
Averielle Garcia
 
Posts: 3491
Joined: Fri Aug 24, 2007 3:41 pm


Return to IV - Oblivion