27 lines
817 B
Plaintext
27 lines
817 B
Plaintext
//::///////////////////////////////////////////////
|
|
//:: cv_rest
|
|
//:: cv_rest.nss
|
|
//:: Copyright (c) 2003 Darren Summerwind.
|
|
//:://////////////////////////////////////////////
|
|
/*
|
|
Conversation Rest Script
|
|
*/
|
|
//:://////////////////////////////////////////////
|
|
//:: Created By: Darren Summerwind
|
|
//:: Created On: 28/9/03
|
|
//:://////////////////////////////////////////////
|
|
void main()
|
|
{
|
|
// Get Last Speaker
|
|
object oPC = GetPCSpeaker();
|
|
// Set "PlayerWantsToRest" to TRUE
|
|
SetLocalInt(oPC, "PlayerWantsToRest", TRUE);
|
|
// Clear all actions
|
|
AssignCommand(oPC, ClearAllActions(TRUE));
|
|
// Assign Rest
|
|
AssignCommand(oPC, ActionRest());
|
|
ExecuteScript("_onplayer_rest",oPC);
|
|
// Set "PlayerWantsToRest" to FALSE
|
|
DelayCommand(2.0, SetLocalInt(oPC, "PlayerWantsToRest", FALSE));
|
|
}
|