2025/05/15 Update
Fist of Raziel now gains Sanctified Martial Strike via dialog. Tweaked Fist of Raziel's bonus feat progression. Tweaked Fist of Raziel's bonus feat list. Updated FeatToIprop() for Sanctified Martial Strike. Added GetSanctifedMartialFeat() Added IsMeleeWeapon() Updated GetOverwhelmingCriticalFeatOfWeaponType(), GetDevastatingCriticalFeatOfWeaponType() & GetWeaponOfChoiceFeatOfWeaponType() for Elven blades. Made sure race_sla.nss was clearing variables.
This commit is contained in:
39
nwn/nwnprc/trunk/scripts/prc_fistraziel.nss
Normal file
39
nwn/nwnprc/trunk/scripts/prc_fistraziel.nss
Normal file
@@ -0,0 +1,39 @@
|
||||
#include "prc_inc_spells"
|
||||
#include "inc_dynconv"
|
||||
|
||||
void main()
|
||||
{
|
||||
//Declare main variables.
|
||||
int nEvent = GetRunningEvent();
|
||||
object oPC;
|
||||
switch(nEvent)
|
||||
{
|
||||
case EVENT_ONPLAYERREST_FINISHED: oPC = GetLastBeingRested(); break;
|
||||
|
||||
default:
|
||||
oPC = OBJECT_SELF;
|
||||
}
|
||||
|
||||
int nClass = GetLevelByClass(CLASS_TYPE_FISTRAZIEL, oPC);
|
||||
|
||||
int nWeapon = GetPersistantLocalInt(oPC, "RazielSanctWeaponPersistent");
|
||||
|
||||
if(nEvent == FALSE)
|
||||
{
|
||||
if(nClass == 4)
|
||||
{
|
||||
if (!nWeapon)
|
||||
{
|
||||
DelayCommand(1.5, StartDynamicConversation("prc_sanc_raziel", oPC, DYNCONV_EXIT_NOT_ALLOWED, FALSE, TRUE, oPC));
|
||||
}
|
||||
}
|
||||
}
|
||||
else if(nEvent == EVENT_ONPLAYERREST_FINISHED && nClass >= 4)
|
||||
{
|
||||
if (!nWeapon)
|
||||
{
|
||||
DelayCommand(1.5, StartDynamicConversation("prc_sanc_raziel", oPC, DYNCONV_EXIT_NOT_ALLOWED, FALSE, TRUE, oPC));
|
||||
}
|
||||
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user