ajs52698 Posted July 17, 2016 Share Posted July 17, 2016 So I have been trying to figure out just enough about scripting to make the foundation for a fast travel mod, but im not getting very far. I am wondering if anyone could either right the script for me or help me do it myself. What im trying to achieve is this . Player activates object bringing up a dialog with travel options. Each travel option triggers a teleportation script? moving the player to a different location. The travel options also need resource requirements depending on the distance. Link to comment Share on other sites More sharing options...
PoliteRaider Posted July 18, 2016 Share Posted July 18, 2016 (edited) Here's a tutorial, you'll probably want to watch the earlier ones in the series though which will cover aspects like creating the menu or setting up the properties for your script. (It's for Skyrim but that doesn't matter for most purposes). Edited July 18, 2016 by PoliteRaider Link to comment Share on other sites More sharing options...
LoneRaptor Posted July 19, 2016 Share Posted July 19, 2016 I did something like wat you want to do in my mod APC transport I left the source scripts in the download you can have a look at those. Link to comment Share on other sites More sharing options...
ajs52698 Posted July 21, 2016 Author Share Posted July 21, 2016 I did something like wat you want to do in my mod APC transport I left the source scripts in the download you can have a look at those.Thanks for letting for look at your script (: Link to comment Share on other sites More sharing options...
ajs52698 Posted July 23, 2016 Author Share Posted July 23, 2016 So ive made some progress but when i select a place to travel nothing happens, any ideas? Scriptname RocketTravelMain extends objectreference Message Property RocketTravel222 autoObjectreference DrumlinDinerEvent onActivate (objectreference akaction)SHowMenu() Endevent Function ShowMenu(int aibutton = 0)aibutton = RocketTravel222.show() If aibutton == 0 elseif aibutton == 1Game.FastTravel(DrumlinDiner) elseif aibutton == 2 elseif aibutton == 3 elseif aibutton == 4 elseif aibutton == 5 elseif aibutton == 6 elseif aibutton == 7 elseif aibutton == 8 elseif aibutton == 9 elseif aibutton == 10 elseif aibutton == 11 endifendfunction Link to comment Share on other sites More sharing options...
LoneRaptor Posted July 23, 2016 Share Posted July 23, 2016 The place you fast travel to needs to be a filled in property like this: ObjectReference Property DrumlinDiner AutoThen in the CK go to your script and go to properties select your DrumlinDiner property/edit property/select reference in object window. And then iether select something you want to teleport to at the drumlin diner or place a new xmarkerheading there and select that. Link to comment Share on other sites More sharing options...
ajs52698 Posted July 23, 2016 Author Share Posted July 23, 2016 Ah that works thanks, its funny how simple some of this coding stuff is, the only difficult part is understanding what everything is used for and putting it all together Link to comment Share on other sites More sharing options...
ajs52698 Posted July 23, 2016 Author Share Posted July 23, 2016 alright now im trying to find a simple way to give each selection a travel location and this is what im thinking I can use. http://www.creationkit.com/index.php?title=GetFormFromFile_-_Game but im not sure how to go about doing it Link to comment Share on other sites More sharing options...
LoneRaptor Posted July 23, 2016 Share Posted July 23, 2016 I don't think you can use that as the fast travel function requires an Objectreference not a formID. Link to comment Share on other sites More sharing options...
ajs52698 Posted July 23, 2016 Author Share Posted July 23, 2016 (edited) well what i was wondering is instead of typing out all the objectreference locations i can create a formlist which has all the locations and somehow set the blah hard time explaining Game.FastTravel ( Form List Index Number here instead of Objectreference) this is what i was thinking i could do if this is not possible then is there a simpler way to go about specifying locations to travel to? Edited July 23, 2016 by ajs52698 Link to comment Share on other sites More sharing options...
Recommended Posts