Jump to content

Batch scripts


Thalassicus

Recommended Posts

Quick question about the bat command. If I do this ingame:

prid 28000ce9

moveto player

It works fine. (28000ce9 is the rID of an NPC)

 

However, if I put this into a batch file it doesn't work, stating that moveto requires a reference. Is it checking for valid function syntax before executing the previous call?

 

My batch file is:

filename: "summon"

prid 28000ce9

moveto player

Executed with command:

bat summon

 

Likewise, using an rid prefix doesn't work, either ingame or in a bat file. The wiki instructions are missing information, since a command like the following gives the error message "Script command '28000ce9.addspell' not found.":

 

28000ce9.addspell 000A97A8

 

What precisely is the syntax required to use rid's?

Link to comment
Share on other sites

It sounds to me like the command line in the game is refrencing an ingame FormID, while a scrit requires an ObjectID.

 

Rather than referencing an ID, just use the Name assiciated with the NPC, like JensineREF.MoveTo Player.

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...