Josseh on 24/9/2003 at 12:11
I am working on a plugin and I need to change various interior cell names. When in the cell in question there is a door locked and it opens with a script (for example, the room doors in inns and cornerclubs that rent beds) the script doesn't open the door with the cell name changed.
If someone knows how to change the name of one of this cells and how to make the door unlocked when u rent the room, please tell me. If it wasn't important for my plugin I wouldn't change the cell names, but it is important and I don't know how to fix the error.
Thank you,
Josseh
:confused: :tsktsk: :nono: :confused:
Striker on 24/9/2003 at 23:45
Make a global variable that gets checked by the door you want to open. This will be checked when you enter the cell, and you can unlock the door then.
-Striker
Josseh on 25/9/2003 at 07:46
Thanks Striker, but I've already fixed it. When u change a cell name the original cell doesn't disappear, althought there is behind "interior" a D (deleted). The cell is deleted but it seems that the scripts that interact with objects in that cell don't work properly due to that object is duplicated, one in the original cell and other in the cell with the name changed.
The solution is load the original cell (what is supposed deleted), choose the object that refers the script and just delete it. Then, in game, the script doesn't have any conflict because it only find one object and not the duplicated in the original cell.
Thanks for all (and sorry for my English)
Josseh