Initial Upload
Initial Upload
This commit is contained in:
30
_module/nss/sitchairfix.nss
Normal file
30
_module/nss/sitchairfix.nss
Normal file
@@ -0,0 +1,30 @@
|
||||
/* 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.
|
||||
|
||||
}
|
Reference in New Issue
Block a user