Rizalgar Posted May 28, 2018 Share Posted May 28, 2018 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 zzzNCTownTeleref NCTTRef Begin ScriptEffectStart player.MoveTo NCTTRefEnd 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 More sharing options...
lubronbrons Posted May 28, 2018 Share Posted May 28, 2018 a suggestionsdo not define NCTTRef inside the script, the right way to place a marker is1. in CSE navigate to >> Object Window >> World Objects >> Static >> XMarkerHeading2. navigate to cell that you want to teleport in >> Cell View3. 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 More sharing options...
DrakeTheDragon Posted May 28, 2018 Share Posted May 28, 2018 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 More sharing options...
Rizalgar Posted July 8, 2018 Author Share Posted July 8, 2018 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 More sharing options...
Recommended Posts