Aantioch_Infernum/_module/nss/sitchairfix.nss
Jaysyn904 22947ad4b6 Initial Upload
Initial Upload
2023-08-08 16:22:17 -04:00

31 lines
944 B
Plaintext

/* Breakable Chairs Script #3, created by Chimera (naoki_7@sluggy.net)
This script allows the PC to rebuild the chair. Better module builders (with
more time on their hands) can put in a Dexterity or Intelligence roll
if they want, or even a Carpentry skill or something, who knows.
Anyways, there is no check, it just automatically reassembles the chair.
BUT! The chair will still break if the PC is too heavy! Haha!!
*/
void main()
{
object oPC = GetLastUsedBy();
object oBrknChair = OBJECT_SELF;
location lChair = GetLocation(OBJECT_SELF);
AssignCommand(oPC, ActionPlayAnimation(ANIMATION_LOOPING_GET_LOW,1.0,2.0));
// *ahem* Insert Dex roll or something here ^_^;;
FloatingTextStringOnCreature("You manage to put the chair back together...", oPC);
DestroyObject(oBrknChair);
CreateObject(OBJECT_TYPE_PLACEABLE, "Chair", lChair, FALSE, "SitChair");
// Be sure the final tag matches that of the original chair.
}