Just Saying, but thanks for making this, I'm sure it can be safely put somewhere, like those module which restrict rest in town (maybe an Inn will be best suited for an Object like this), just turn it into a bed instead. (That's my head anyway)
Just noticed I forgot to mention by default it is only useable once per player but it is changeable by the user see the revised code below this
//rest shrine on use script
// Instantly gives the user the benefits of a rest
//(restored hitpoints, spells, feats, etc..)
//by default only useable once per player
void main()
{
object oPC = GetLastUsedBy();
if (!GetIsPC(oPC)) return;
//start of code that can be removed
int DoOnce = GetLocalInt(oPC, GetTag(OBJECT_SELF));
if (DoOnce==TRUE) return;
SetLocalInt(oPC, GetTag(OBJECT_SELF), TRUE);
//end of code that can be removed
ForceRest(oPC);
}
You must be Logged In to post comments in this section.