kingtitan Posted October 10, 2011 Share Posted October 10, 2011 (edited) I am working on a mod that I need some scripting help on. I have seen this in another mod and I am trying to duplicate the same effect. (The cell I am currently editing is a duplicate of the cell that gave me the idea). Anyway, what I need help on is making a "mark for transfer" type of spell. Basically the player pushes a push block, lever, ect outside of an enclosed area (say a prison cell). That gives the player a message such as "Cell marked for transfer." Then, the player can cast a "move to cell" spell on an NPC that would move the NPC to the reference point inside the cell. I am a complete noob when it comes to scripting, and I have about five to six enclosed "prison cell" areas that I need to use this function in! If anyone wouldn't mind helping me out, please let me know! And let me know if I can provide more details to help. Edited October 10, 2011 by kingtitan Link to comment Share on other sites More sharing options...
fg109 Posted October 10, 2011 Share Posted October 10, 2011 Well, first you need to place some XMarkers (or XMarkerHeadings) inside each of the prison cells. Then you link the markers with the buttons by setting the marker as the parent ref of the appropriate button. For the script on the button, use this: scn ExampleScript Begin OnActivate set SomeQuest.SomeRefVariable to GetParentRef Activate End And for the teleport spell, you just use: scn ExampleScript Begin ScriptEffectStart MoveTo SomeQuest.SomeRefVariable End Link to comment Share on other sites More sharing options...
kingtitan Posted October 10, 2011 Author Share Posted October 10, 2011 (edited) FG, you know just how terrible I am at scripting, is there any way that I can send you the .esp and give you all the nit picky details? If I try to do it, I will completely botch up the whole thing! I am working on the references right now, should be done soon. However, what do the "some" and "example" parts of the above script need to be replaced with? Edited October 10, 2011 by kingtitan Link to comment Share on other sites More sharing options...
Recommended Posts