41 lines
658 B
Plaintext
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 );
|
|
}
|