Random Teleportation Script

Post » Wed Dec 31, 2014 8:51 am

HI there and thank you for your time.

I'm trying to make a small mod that deals with a corrupted version of the standing stones in which when activated they randomly teleport you to another "Corrupted" standing stone.

I know how to set-up a basic teleport script such as this:

Event OnActivate (ObjectReference AkActionRef)   Game.FastTravel(TeleportMarker) EndEvent

I just don't know how to add the random portion.

In the actual script, I've set it up like this for 5 different standing stones locations.

ObjectReference Property Loc01 autoObjectReference Property Loc02 autoObjectReference Property Loc03 autoObjectReference Property Loc04 autoObjectReference Property Loc05 autoEvent OnActivate (ObjectReference AkActionRef)EndEvent 

I'm not asking for someone to do it for me just something to go off of in the way of the random bit so I can learn from it.

Thank you!

User avatar
Justin
 
Posts: 3409
Joined: Sun Sep 23, 2007 12:32 am

Return to V - Skyrim