"MoveTo" not found?

Post » Wed Feb 16, 2011 12:58 am

Toying with a new mod and trying to remember all the quirks of the CS. I've written this:

ScriptName 00ScareUndeadScrBegin ScriptEffectStart    If ( Player.GetAV Fatigue > 100 )             00GhostCasterRef.MoveTo Player 10 10 10             00GhostCasterRef.Cast 00ScareUndead Player    Else        Message "I lack the fatigue to use this power."        PlaySound MagicFailureSoundAlteration        Dispel 00ScareUndead    EndifEnd


It won't compile. I'm getting "Script command "00GhostCasterRef.MoveTo" not found." WTF?
User avatar
Robert Jackson
 
Posts: 3385
Joined: Tue Nov 20, 2007 12:39 am

Post » Tue Feb 15, 2011 9:51 pm

Try changing your ref names from "00..." to "aa...", anything non-numeric.
User avatar
Taylor Tifany
 
Posts: 3555
Joined: Sun Jun 25, 2006 7:22 am

Post » Wed Feb 16, 2011 9:56 am

Toying with a new mod and trying to remember all the quirks of the CS. I've written this:

ScriptName 00ScareUndeadScrBegin ScriptEffectStart    If ( Player.GetAV Fatigue > 100 )             00GhostCasterRef.MoveTo Player 10 10 10             00GhostCasterRef.Cast 00ScareUndead Player    Else        Message "I lack the fatigue to use this power."        PlaySound MagicFailureSoundAlteration        Dispel 00ScareUndead    EndifEnd


It won't compile. I'm getting "Script command "00GhostCasterRef.MoveTo" not found." WTF?


Very simple fix - don't use numbers for your references.

00GhostCasterRef is bad.

use AAGhostCasterRef instead if you want it at the top of the list.
User avatar
Stryke Force
 
Posts: 3393
Joined: Fri Oct 05, 2007 6:20 am


Return to IV - Oblivion