[REQ] An easy way to add map markers by reading a book

Post » Mon Nov 19, 2012 6:12 pm

Hi there!

I'm trying to make a book that (when read) adds about 12 map markers to the player, that just show up on the map, but cannot be fast travelled to.

If you'd be so kind as to help me out, I'd appreciate it a lot!
Thanks in advance!
User avatar
Kathryn Medows
 
Posts: 3547
Joined: Sun Nov 19, 2006 12:10 pm

Post » Mon Nov 19, 2012 1:19 pm

ScriptName YourBookSctipt Extends ObjectReference AutoGlobalVariable Property bMarkersEnabledGLOB AutoObjectReference[] Property kMapMarkerArray AutoEvent OnRead()	If !bMarkersEnabledGLOB.GetValue()		bMarkersEnabledGLOB.SetValue(1.0)		Int iIndex = kMapMarkerArray.Length		While iIndex > 0			iIndex -= 1			kMapMarkerArray[iIndex].AddToMap()		EndWhile	EndIfEndEvent
Should do it.
User avatar
Laura Samson
 
Posts: 3337
Joined: Wed Aug 29, 2007 6:36 pm

Post » Mon Nov 19, 2012 11:05 pm

Should do it.
Thank you very much JustinOther!
User avatar
Klaire
 
Posts: 3405
Joined: Wed Sep 27, 2006 7:56 am

Post » Mon Nov 19, 2012 1:55 pm

NO prob :) Hopefully all goes well.
User avatar
Connie Thomas
 
Posts: 3362
Joined: Sun Nov 19, 2006 9:58 am

Post » Mon Nov 19, 2012 8:10 am

I used portions of it with my existing script :D Still you're credited in the mod description, so thanks again. Take a look at the result if you wish, http://skyrim.nexusmods.com/mods/25289/.
User avatar
Catharine Krupinski
 
Posts: 3377
Joined: Sun Aug 12, 2007 3:39 pm


Return to V - Skyrim