How to Make an NPC Attack?

Post » Sat May 28, 2011 8:44 am

The title pretty much says it all. How do I make a npc attack a player when the player enters a cell only if it is a certain time? I thought about forcing a dialogue and then causing it from there, but I was wondering if there is some other, smoother way.
User avatar
Chloe Yarnall
 
Posts: 3461
Joined: Sun Oct 08, 2006 3:26 am

Post » Sat May 28, 2011 6:33 am

You mean certain time of a day? Then it might be something like this:
Begin AttackAt1PMshort doOnceif ( doOnce <> 0 )    returnendifif ( GameHour < 13 )    ; 1 p.m    returnendifif ( GameHour >= 14 )  ; 2 p.m.    returnendifset doOnce to 1SetFight 100StartCombat Playerend

User avatar
Chloe Yarnall
 
Posts: 3461
Joined: Sun Oct 08, 2006 3:26 am


Return to III - Morrowind