Pavlos Posted December 21, 2005 Share Posted December 21, 2005 Is there a simple script which can be used to check if a certain sabre style or something to that effect is being used? Link to comment Share on other sites More sharing options...
stoffe Posted December 21, 2005 Share Posted December 21, 2005 Is there a simple script which can be used to check if a certain sabre style or something to that effect is being used? You can check which saber- or force-form an NPC currently has selected with the IsFormActive() scripting function. Set the first parameter to the NPC you wish to check and the second parameter to one of these constants: FORM_SABER_I_SHII_CHO FORM_SABER_II_MAKASHI FORM_SABER_III_SORESU FORM_SABER_IV_ATARU FORM_SABER_V_SHIEN FORM_SABER_VI_NIMAN FORM_SABER_VII_JUYO FORM_FORCE_I_FOCUS FORM_FORCE_II_POTENCY FORM_FORCE_III_AFFINITY FORM_FORCE_IV_MASTERY As for passive feats, they are always active, that's what makes them passive. So you can just use the GetHasFeat() function to check if the NPC knows the feat. The first parameter is the line number in feat.2da for the feat to check for, the second is the NPC to check. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.