theherodemon Posted March 30, 2013 Share Posted March 30, 2013 I'm trying to make a mod that requires farming for specific material you loot from monsters in the dungeon. I want certain cells to reset the second you walk out of the cell so that you can do so again and get more materials. I've tried to do so with Papyrus but can't do it. What I'm asking is, how do I make specific cells reset instantly?And if it has to be done with papyrus, what is the complete script to do so and on what kind of object does the script have to be on? Link to comment Share on other sites More sharing options...
Ghaunadaur Posted March 31, 2013 Share Posted March 31, 2013 (edited) Script could be put on the exit door of your dungeon, so the cell will reset when the player leaves. Scriptname CellResetScript Extends ObjectReference Cell Property CellToReset auto Event OnCellDetach() CellToReset.reset() EndEvent Don't forget to assign a value to the property. EDITOverlooked that you want it reset every second time leaving. Also you don't even need a property. Scriptname CellResetScript Extends ObjectReference bool boool = false Event OnCellDetach() if boool GetParentCell().reset() else boool = true endif EndEvent Edited March 31, 2013 by Ghaunadaur Link to comment Share on other sites More sharing options...
theherodemon Posted March 31, 2013 Author Share Posted March 31, 2013 (edited) Ghaunadaur, on 31 Mar 2013 - 05:17, said: Script could be put on the exit door of your dungeon, so the cell will reset when the player leaves. Scriptname CellResetScript Extends ObjectReference Cell Property CellToReset auto Event OnCellDetach() CellToReset.reset() EndEvent Don't forget to assign a value to the property. EDIT Overlooked that you want it reset every second time leaving. Also you don't even need a property. Scriptname CellResetScript Extends ObjectReference bool boool = false Event OnCellDetach() if boool GetParentCell().reset() else boool = true endif EndEvent I've tried the script on the exit door of the cell but it again doesn't seem to compile... EDIT: I forgot to edit something in the script which caused this. It seemed to compile now. I'll test it EDIT 2: Tested it and yes I put it on the last door and it doesn't seem to work. The script compiled but the cell doesn't reset. Edited March 31, 2013 by theherodemon Link to comment Share on other sites More sharing options...
Ghaunadaur Posted March 31, 2013 Share Posted March 31, 2013 You're right. It doesn't seem to work with cells that lead to Tamriel. It works correctly with interior cells that are connected to towns. I don't think there's a way to reset the cell directly, maybe you could reset or resurrect the actors instead. Link to comment Share on other sites More sharing options...
theherodemon Posted March 31, 2013 Author Share Posted March 31, 2013 You're right. It doesn't seem to work with cells that lead to Tamriel. It works correctly with interior cells that are connected to towns. I don't think there's a way to reset the cell directly, maybe you could reset or resurrect the actors instead.Well these are two interiors connected to eachother, and it seems that there is a way to reset cells instantly but I don't know how to. And as for Reset the Actor, yeah, no clue how to do that either. I'm kind of a noob in the whole scripting thing... Link to comment Share on other sites More sharing options...
Recommended Posts