Jump to content

Basic Scripting Help


Recommended Posts

I'm trying to make a script that teleports an NPC to your location upon equipping a certain item. I already made the item and attached a script I thought would work to it, but it does nothing.

 

My script is this:

 

scn BittercupTeleportSCRIPT

begin OnEquip

bittercupref.moveto player
end

 

 

Bittercupref is the only thing the script would let me put in relation to the NPC I'm trying to move. Ref ID doesn't work, "Bittercup" doesn't work. I'm at a loss and getting frustrated.

 

Can anyone help?

Link to comment
Share on other sites

  • 3 weeks later...

I have not tried to do what your attempting, but I do have some batch files that I use when my companions get lost or stuck.

 

Try using the prid command.

 

Example: for Clover (you must use the NPCs ref. ID number)

prid 000384d8 50, 50, 10
moveto player
or (this moves the player to Clover)
player.moveto 000384d8
I start all my batch files with an = sign, this way it keeps them sorted together and all I have to do is TYPE "bat=getclover" when I need her moved to me. The file name is =getclover.
The 50, 50, 10 are location coordinates so she does not land on top of you.
Bittercups Ref. ID is 00027f12
~Good Luck
Link to comment
Share on other sites

  • Recently Browsing   0 members

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