NPC Teleporting Script?

Post » Sat May 28, 2011 7:06 am

I used to know one but have since forgotten how to set it up exactly. Can anyone give me a good one that also uses the mysticism_hit sound when the script is activated?
User avatar
Tai Scott
 
Posts: 3446
Joined: Sat Jan 20, 2007 6:58 pm

Post » Sat May 28, 2011 10:22 am

This is an example derived from from MCA, it plays the casting animation
begin mca_companion_teleportfloat teletimer; MCA_Locations: 1 = Ald-Ruhn, 2 = Balmora, 3 = Caldera, 4 = Dagon Fel, 5 = Ebonheart; 6 = Fort Frostmoth, 7 = Gnisis, 8 = Khuul, 9 = Maar Gan, 10 = Molag Mar, 11 = Mournhold; 12 = Pelagiad, 13 = Sadrith Mora, 14 = Seyda Neen, 15 = Skaal Village, 16 = Suran; 17 = Tel Branora, 18 = Tel Mora, 19 = Vivecif ( MenuMode )	returnendifif ( teletimer == 0 )	cast "Recall" player	set teletimer to 1	returnelseif ( teletimer < 4 )	set teletimer to ( teletimer + GetSecondsPassed )	returnendifif ( MCA_Location == 1 )	PositionCell 666 -1110 -497 0 "Ald-Ruhn, Ald Skar Inn"elseif ( MCA_Location == 2 )	PositionCell 226 738 -244 0 "Balmora, Eight Plates"elseif ( MCA_Location == 3 )	PositionCell 474 -424 396 0 "Caldera, Shenk's Shovel"elseif ( MCA_Location == 4 )	PositionCell -470 -3 399 0 "Dagon Fel, The End of the World"elseif ( MCA_Location == 5 )	PositionCell -30 -67 12 0 "Ebonheart, Six Fishes"elseif ( MCA_Location == 6 )	PositionCell -86 125 -122 0 "Fort Frostmoth, General Quarters"elseif ( MCA_Location == 7 )	PositionCell -22 256 -144 0 "Gnisis, Madach Tradehouse"elseif ( MCA_Location == 8 )	PositionCell 4158 4377 13730 0 "Khuul, Thongar's Tradehouse"elseif ( MCA_Location == 9 )	PositionCell -22 198 9 0 "Maar Gan, Andus Tradehouse"elseif ( MCA_Location == 10 )	PositionCell -553 -349 14 0 "Molag Mar, The Pilgrim's Rest"elseif ( MCA_Location == 11 )	PositionCell -723 152 36 0 "Mournhold, Great Bazaar"elseif ( MCA_Location == 12 )	PositionCell 353 98 17 0 "Pelagiad, Halfway Tavern"elseif ( MCA_Location == 13 )	PositionCell 131 73 385 0 "Sadrith Mora, Fara's Hole in the Wall"elseif ( MCA_Location == 14 )	PositionCell -381 -227 396 0 "Seyda Neen, Arrille's Tradehouse"elseif ( MCA_Location == 15 )	PositionCell 84 -101 -249 0 "Skaal Village, The Greathall"elseif ( MCA_Location == 16 )	PositionCell 242 -238 11 0 "Suran, Desele's House of Earthly Delights"elseif ( MCA_Location == 17 )	PositionCell 1094 -188 137 0 "Tel Branora, Sethan's Tradehouse"elseif ( MCA_Location == 18 )	PositionCell 1333 -326 619 0 "Tel Mora, The Covenant"elseif ( MCA_Location == 19 )	PositionCell 503 241 233 0 "Vivec, Foreign Quarter Plaza"endifset teletimer to 0StopScript "mca_companion_teleport"end

User avatar
Destinyscharm
 
Posts: 3404
Joined: Sun Jul 23, 2006 6:06 pm

Post » Fri May 27, 2011 11:31 pm

I need no further assistance. I made my own script.


Begin Test_Script

if ( MenuMode == 1 )
PositionCell 1002, 1150, -369, 0 "Balmora, Eight Plates"
Playsound, "conjuration hit"
StopScript Test_Script

else
endif

End

User avatar
El Khatiri
 
Posts: 3568
Joined: Sat Sep 01, 2007 2:43 am


Return to III - Morrowind