NPC ForceGreeting and StartCombat

Post » Sat Dec 12, 2009 1:57 pm

I was having problems with a ForceGreeting on an NPC. I had 'ForceGreeting' in the Remarks section of the only dialog, and a script that was supposed to get the NPC to attack once the greeting was through, but it doesn't seem to be working. The NPC gives the greeting then nothing. Any help?
User avatar
Timara White
 
Posts: 3464
Joined: Mon Aug 27, 2007 7:39 am

Post » Sat Dec 12, 2009 10:16 pm

Well what does your script look like?
What exactly are you trying to do? StartCombat from dialog, or a script?

If dialog, use this in the Results Box:
Goodbye
StartCombat Player

User avatar
Rhiannon Jones
 
Posts: 3423
Joined: Thu Sep 21, 2006 3:18 pm

Post » Sat Dec 12, 2009 10:14 pm

I was using a script made for a lich originally that looks like this:

Begin Piratelich

short doonce
If ( Menumode == 1 )
Return
endIf

If ( doonce == 1 )
Return
endIf

if ( GetDistance Player <=256 )
ForceGreeting
set doonce to 1


endif

end Piratelich


I was told to attach that script to the monster, and put ForceGreeting in the Remarks section of the dialog. I figured it would be the same for NPC's.
User avatar
Antonio Gigliotta
 
Posts: 3439
Joined: Fri Jul 06, 2007 1:39 pm

Post » Sat Dec 12, 2009 9:39 pm

As Pluto mentioned, you need to tell the NPC to start combat with the player in the dialog results box. I would also use SetFight 100 between Goodbye and StartCombat Player.
User avatar
Prue
 
Posts: 3425
Joined: Sun Feb 11, 2007 4:27 am

Post » Sat Dec 12, 2009 7:59 pm

Ahh ok. I tested it out and it did the trick. Thanks.
User avatar
[Bounty][Ben]
 
Posts: 3352
Joined: Mon Jul 30, 2007 2:11 pm


Return to III - Morrowind