Page 3 of 3

Re: dongle's secret resources

PostPosted: Sun Nov 06, 2011 2:28 am
by sassman
WOOOHOOO!  Dongle and his Morrowind Modding legacy are BAAAACK!

:nanadance:  :cheer:  :hoorah:  :cheer:  :nanadance:

:twothumbs:  :punkrock:  :twothumbs:

Re: dongle's secret resources

PostPosted: Fri Jan 25, 2019 9:46 am
by PabloLeMacon
Hello all :)

I have downloaded "Glass display case" from this site.
The script isn't working very well:
- The doors are closed,  i activate the display case: the doors open.
- The doors are open, i activate them: the doors close, then open, then close, then open... indefinitely.

Here is the script:

Begin, GlassDisplayScript

Short State
Short First
Short Open
Short Close
Float Timer

If ( MenuMode == 1 )
   Return
EndIf

If ( OnActivate == 1 )
   Set State to 1
EndIf

If ( State == 1 )
   If ( First == 0 )
       PlayGroup, Idle2, 0
       PlaySound3D, "Door Creaky Open"
       Set Open to 1
   EndIf
EndIf

If ( Open == 1 )
   Set Timer to ( Timer + GetSecondsPassed )
       If ( Timer < 0.5 )
           Return
       EndIf
   Set Timer to 0
   PlayGroup, Idle3
   Set First to 1
   Set State to 0
   Set Open to 0
EndIf

If ( State == 1 )
   If ( First == 1 )
       PlayGroup, Idle4, 0
       PlaySound3D, "Door Creaky Close"
       Set Close to 1
   EndIf
EndIf

If ( Close == 1 )
   Set Timer to ( Timer + GetSecondsPassed )
       If ( Timer < 0.5 )
           Return
       EndIf
   Set Timer to 0
   PlayGroup, Idle
   Set First to 0
   Set State to 0
   Set Close to 0
EndIf

End, GlassDisplayScript


Can anyone do anything about it?
Without that, the display case is unusable :(