"MoveTo" not found?

Post » Tue Dec 06, 2011 9:09 pm

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
Jessica Stokes
 
Posts: 3315
Joined: Fri Jul 28, 2006 11:01 am

Post » Wed Dec 07, 2011 12:29 am

Try changing your ref names from "00..." to "aa...", anything non-numeric.
User avatar
Neil
 
Posts: 3357
Joined: Sat Jul 14, 2007 5:08 am

Post » Tue Dec 06, 2011 6:26 pm

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
victoria johnstone
 
Posts: 3424
Joined: Sat Oct 14, 2006 9:56 am


Return to IV - Oblivion