25 lines
598 B
Plaintext
25 lines
598 B
Plaintext
|
void main()
|
||
|
{
|
||
|
object oPC = GetLastUsedBy();
|
||
|
|
||
|
object sealBreaker = GetItemPossessedBy( oPC, "mn_breakseal" );
|
||
|
|
||
|
if ( GetIsObjectValid( sealBreaker ) )
|
||
|
{
|
||
|
FloatingTextStringOnCreature( "You use the sigil to break the seal", oPC );
|
||
|
|
||
|
SetPlotFlag( sealBreaker, FALSE );
|
||
|
DestroyObject( sealBreaker );
|
||
|
SetLocked( OBJECT_SELF, FALSE );
|
||
|
ActionOpenDoor( OBJECT_SELF );
|
||
|
|
||
|
// Spil en passende animation
|
||
|
}
|
||
|
else
|
||
|
{
|
||
|
FloatingTextStringOnCreature( "An invisible field of force prevents you from opening the door", oPC, FALSE );
|
||
|
|
||
|
// spil en passende animation
|
||
|
}
|
||
|
}
|