Changed folder name.
Changed folder name.
This commit is contained in:
11
_module/nss/fbi_npc_drinkchk.nss
Normal file
11
_module/nss/fbi_npc_drinkchk.nss
Normal file
@@ -0,0 +1,11 @@
|
||||
int StartingConditional()
|
||||
{
|
||||
SetLocalFloat(OBJECT_SELF, "DrinkDC", GetLocalFloat(OBJECT_SELF, "DrinkDC")+1.5);
|
||||
|
||||
int iDC = FloatToInt( GetLocalFloat(OBJECT_SELF, "DrinkDC") )+4;
|
||||
int iChk = GetAbilityModifier(ABILITY_CONSTITUTION, GetPCSpeaker())+d20();
|
||||
// ActionSpeakString( IntToString(iDC)+", "+IntToString(iChk) );
|
||||
|
||||
return iChk >= iDC;
|
||||
}
|
||||
|
Reference in New Issue
Block a user