Xfreakish Posted February 2, 2019 Share Posted February 2, 2019 Hello For a player home I've been working on I wanted to make It assessable from anywhere. So I was thinking perhaps a spell or power that would teleport the player and there companion into my home. And then I wanted to have a door/portal that would return the player to tamriel. Link to comment Share on other sites More sharing options...
SeraphimKensai Posted February 3, 2019 Share Posted February 3, 2019 So what you'll need to do is make 2 xmarkers one to be where you want to teleport to in your home at all times, and the other to mark your location when casting (or a fixed location if you prefer) to teleport you back. Your script will need to identify then make use of the MoveTo command to transfer to your xmarkers as necessary. Depending on how you script the effect, you could either make a separate spell in which case you'd probably want another xmarker for that spell's point of origination as well, otherwise you could build it so the main effect is an aoe around the player and it could drag in effected actors. For reference for the moveto command, check www.creationkit.com otherwise you could probably look at a source file of any mod that has a spell to teleport someone to a city (including mine Synthesis Redux, mine I think you'd have to run champollion to decompile as I don't think I left the source files in the upload though). It's pretty simple to do, and once you have the base mechanics of it working you can add to the cosmetics to make the effect more spruced up. Link to comment Share on other sites More sharing options...
Xfreakish Posted February 3, 2019 Author Share Posted February 3, 2019 (edited) Alright, So I kinda understand what you mean buy placing the Xmarker down inside the home, but how wood i place the marker that wood essentaily send the player to there last location. and when i comes to the whole scripting part, well i have 0 knowlage of scripting, only level design really. So i have no Idea how to "identify" and "make use" of the moveto comand. Most of the stuff you said just kinda flew over my head tbh. I'm sorry. so I might need a 'How to for dummies" Guide. I'm still knew to these kinds of things... ^.^" Edited February 3, 2019 by Xfreakish Link to comment Share on other sites More sharing options...
SeraphimKensai Posted February 3, 2019 Share Posted February 3, 2019 (edited) I do it like this: Scriptname NAME extends activemagiceffect ObjectReference Property TeleportToLocationXMarker Auto ObjectReference Property ReturnToLocationXMarker Auto Event OnEffectStart(Actor akTarget, Actor akCaster) ReturnToLocationXMarker.MoveTo(akCaster) ;; This Moves the XMarker to mark original position akCaster.MoveTo(TeleportToLocationXMarker) ;; This Moves the caster to the location where you drag the xmarker to teleport to is at. akTarget.MoveTo(TeleportToLocationXMarker) ;; This would move a target of the spell to the location EndEvent Your TeleportToLocation marker is going to be static from what it sounds like in the home, the only one that needs to update is based on where you were when you casted, unless you want it to be a fixed location say at a standing stone or something. As you can see on the example, the xmarker that marks your original location moves to where you were when casting the spell. You'll likely need to make a recall effect too or make a compound script to hold both the mark, teleport, and return. It takes some time, but its honestly, a pretty simple project to get you started on scripting (I'm no expert by any means, but I know enough to get myself in, and sometimes out of trouble). This isn't a complete script so I wouldn't use this, but it gives you an idea how the commands relate to each other. Best of luck. Edited February 3, 2019 by SeraphimKensai Link to comment Share on other sites More sharing options...
Recommended Posts