Difference between revisions of "Advanced Quest Tutorial"

15 bytes removed ,  18:41, 30 July 2006
fixing script issue
imported>ShadowDancer
imported>ShadowDancer
(fixing script issue)
Line 253: Line 253:
Going back into the main script for the quest, I add three ''Short'' variables named ''Counter'', ''DoOnce'' and ''EnableRef'' as well as the additional scripting just before the ''End'' of the ''GameMode'' block:
Going back into the main script for the quest, I add three ''Short'' variables named ''Counter'', ''DoOnce'' and ''EnableRef'' as well as the additional scripting just before the ''End'' of the ''GameMode'' block:
<pre>
<pre>
   If Player.GetDistance FasrielGhostMarker > 150 && GetStage ShadowMages == 20
   If Player.GetDistance FasrielGhostMarker > 500 && GetStage ShadowMages == 20 && EnableRef == 0
       Return
       Return
   ElseIf Player.GetDistance FasrielGhostMarker < 150 && GetStage ShadowMages == 20 && EnableRef == 0
   ElseIf Player.GetDistance FasrielGhostMarker < 500 && GetStage ShadowMages == 20 && EnableRef == 0
       Messagebox "An eerie chill runs up your spine like some unseen force is watching you."
       Messagebox "An eerie chill runs up your spine like some unseen force is watching you."
      FasrielGhostMarker.Disable
       Set EnableRef to 1
       Set EnableRef to 1
      SCGhostFasrielRef.SetActorAlpha 0.5
       SetEssential SCGhostFasriel 1
       SetEssential SCGhostFasriel 1
       SCGhostFasrielRef.Enable
       SCGhostFasrielRef.Enable
      SCGhostFasrielRef.SetActorAlpha 0.5
       Undead1.Enable
       Undead1.Enable
       Undead2.Enable
       Undead2.Enable
Anonymous user