PRC8/trunk/scripts/tempus_dg_sfire.nss
Jaysyn904 1662218bb4 Initial upload.
Adding base PRC 4.19a files to repository.
2022-10-07 13:51:24 -04:00

25 lines
676 B
Plaintext

#include "prc_feat_const"
void main()
{
object oPC = GetPCSpeaker();
if (GetLocalInt(oPC,"WeapEchant1")==TEMPUS_ABILITY_FIRE1D6||
GetLocalInt(oPC,"WeapEchant2")==TEMPUS_ABILITY_FIRE1D6||
GetLocalInt(oPC,"WeapEchant3")==TEMPUS_ABILITY_FIRE1D6)
return;
if(!GetLocalInt(oPC,"WeapEchant1"))
SetLocalInt(oPC,"WeapEchant1",TEMPUS_ABILITY_FIRE1D6);
else if(!GetLocalInt(oPC,"WeapEchant2"))
SetLocalInt(oPC,"WeapEchant2",TEMPUS_ABILITY_FIRE1D6);
else if(!GetLocalInt(oPC,"WeapEchant3"))
SetLocalInt(oPC,"WeapEchant3",TEMPUS_ABILITY_FIRE1D6);
SetLocalInt(oPC,"TempusPower",GetLocalInt(oPC,"TempusPower")-1);
}