Teleport npc script?

Post » Sun Jan 10, 2010 2:06 am

In my mod i want my npc to teleport to a different cell after certain dialogue. I don't know how to script this though. Can anyone tell me what script to use? Lets assume npc name is "jim" and cell name is "bingo" and pos in cell is "1,1,1". Any help appreciated!

Edit: it doesn't specifically need to be teleport, i just want the npc to be moved from one cell to another. I figured this was possible?
User avatar
Marquis deVille
 
Posts: 3409
Joined: Thu Jul 26, 2007 8:24 am

Post » Sun Jan 10, 2010 5:44 am

In my mod i want my npc to teleport to a different cell after certain dialogue. I don't know how to script this though. Can anyone tell me what script to use? Lets assume npc name is "jim" and cell name is "bingo" and pos in cell is "1,1,1". Any help appreciated!

Edit: it doesn't specifically need to be teleport, i just want the npc to be moved from one cell to another. I figured this was possible?


You could just do this in the dialogue result field (also, give a spell to the actor that he/she can cast for added effect);

cast "my spell" player
Jim->PositionCell, xxxx, yyyy, zzz, deg, bingo
Goodbye

x,y,z, deg can be found by placing an object in the desired location of the cell.
User avatar
Kevan Olson
 
Posts: 3402
Joined: Tue Oct 16, 2007 1:09 am

Post » Sun Jan 10, 2010 12:28 am

You could just do this in the dialogue result field (also, give a spell to the actor that he/she can cast for added effect);

cast "my spell" player
Jim->PositionCell, xxxx, yyyy, zzz, deg, bingo
Goodbye

x,y,z, deg can be found by placing an object in the desired location of the cell.


Wow that;s really simple! Thanks :)
User avatar
Ben sutton
 
Posts: 3427
Joined: Sun Jun 10, 2007 4:01 am


Return to III - Morrowind

cron