Alangara_PRC8/_module/nss/mn_i_rebornrst.nss
Jaysyn904 86feb9ca6f Initial commit
Initial commit.
2024-06-05 21:21:06 -04:00

41 lines
658 B
Plaintext

//void main(){}
void ResetReborn( object widget )
{
object oPC = GetLastPCRested();
int PCHD = GetHitDice( oPC );
int value;
// TeleportPower
value = 0;
if (PCHD >= 1 && PCHD <=20)
{
value = 1;
}
if (PCHD >= 21 && PCHD <=30)
{
value = 2;
}
if (PCHD >= 31)
{
value = 3;
}
SetLocalInt( widget, "MN_PARTY_SUMMON", value );
// Ressurrect-power
value = 0;
if (PCHD >= 20)
{
value = 1;
}
SetLocalInt( widget, "MN_RESSURRECT", value );
// Greater Ruin Power
value = 0;
if (PCHD >= 31)
{
value = 1;
}
SetLocalInt( widget, "MN_GREATERRUIN", value );
}