Jump to content

Tele Script Help


Recommended Posts

Ok I haven't modded since Morrowind released and I'm just getting back into it. Google, hasn't been any help so far, so I am relying on you guys to PLEASE tell me what is wrong with this lol

 

*

 

 

scn zzzNCTownTele
ref NCTTRef
Begin ScriptEffectStart
player.MoveTo NCTTRef
End
Begin ScriptEffectFinish
Message "You teleport to Newcomer's Town"
End

 

*

 

Not asking you to fix it just asking where I'm going wrong, a finger in the right direction would be nice. I also haven't figured out the whole "markers" thing, that I do legitimately need help with.

Link to comment
Share on other sites

a suggestions

do not define NCTTRef inside the script, the right way to place a marker is

1. in CSE navigate to >> Object Window >> World Objects >> Static >> XMarkerHeading

2. navigate to cell that you want to teleport in >> Cell View

3. drag 'XMarkerHeading' from 'Object Window' and drop to 'Render Window' (target cell teleport in 'Cell View' must be selected)

4. define ID name for that marker by double clicking that XMarkerHeading, assuming that marker name is 'MyTeleRef'

5. go to script again change 'player.MoveTo NCTTRef' into 'player.MoveTo MyTeleRef' and delete 'ref NCTTRef'

done...

if you do it correctly it should work

Link to comment
Share on other sites

And if you already have an XMarker with Persistent Reference EditorID "NCTTRef", then you effectively "nulled" it by this local overwrite inside your script.

 

You do not have to define something inside your script, if it already exists outside of it.

If you do, then inside the script the outside reference won't exist anymore, and the "empty" newly defined one will take its place.

Creating "ref" vars for every object or reference ID you intend to use inside your script is a surefire way to go wrong.

Link to comment
Share on other sites

  • 1 month later...

You guys are boss. I forgot I even posted this lol. I figured out the naming in the object window thing, but still didn't figure it out after that. So thank you "L" for that correction. I really appreciate it!

Link to comment
Share on other sites

  • Recently Browsing   0 members

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