Difference between revisions of "Advanced Quest Tutorial"
fixing script issue
imported>ShadowDancer (adding to Advanced Quest Tutorial) |
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 > | If Player.GetDistance FasrielGhostMarker > 500 && GetStage ShadowMages == 20 && EnableRef == 0 | ||
Return | Return | ||
ElseIf Player.GetDistance FasrielGhostMarker < | 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." | ||
Set EnableRef to 1 | Set EnableRef to 1 | ||
SetEssential SCGhostFasriel 1 | SetEssential SCGhostFasriel 1 | ||
SCGhostFasrielRef.Enable | SCGhostFasrielRef.Enable | ||
SCGhostFasrielRef.SetActorAlpha 0.5 | |||
Undead1.Enable | Undead1.Enable | ||
Undead2.Enable | Undead2.Enable |