dutch berserker
Member
- Joined
- Sep 11, 2018
- Messages
- 61
- Solutions
- 1
- Reaction score
- 8
Hello! So I have been trying to add the following doors to make them open and close but I have nothing special (not a level door or quest door or something like that).
This is what I have added
So this is what happens when I use door 26529 (vertical closed door) it opens and turns into 26533 (vertical open door) as it should but when I use it again door 26533 (vertical open door) turns into 26532 (horizontal closed door). Then when I use that one it opens as it should but when I use it again it turns into another open door but vertical.
So basically it goes like:
26529 (horizontal closed door) => 26533 (horizontal open door)
26533 (horizontal open door) => 26532 (vertical closed door)
26532 (vertical closed door) = > 26534 (vertical open door)
26534 (vertical open door) = > 26533 (horizontal open door) and then it loops like that.
Does anyone know what im doing wrong? Im pretty sure I have added everything that I have to add or did I miss something?
This is what I have added
Lua:
doors = {[26529] = 26533, [26530] = 26533, [26531] = 26534, [26532] = 26534}
verticalOpenDoors = {26534}
horizontalOpenDoors = {26533}
XML:
<action fromid="26529" toid="26534" script="other/doors.lua" />
XML:
<item fromid="26529" toid="26532" article="a" name="monument door">
<attribute key="type" value="door" />
<attribute key="blockprojectile" value="1" />
<attribute key="description" value="It is locked." />
</item>
<item fromid="26533" toid="26534" name="monument door">
<attribute key="type" value="door" />
</item>
So this is what happens when I use door 26529 (vertical closed door) it opens and turns into 26533 (vertical open door) as it should but when I use it again door 26533 (vertical open door) turns into 26532 (horizontal closed door). Then when I use that one it opens as it should but when I use it again it turns into another open door but vertical.
So basically it goes like:
26529 (horizontal closed door) => 26533 (horizontal open door)
26533 (horizontal open door) => 26532 (vertical closed door)
26532 (vertical closed door) = > 26534 (vertical open door)
26534 (vertical open door) = > 26533 (horizontal open door) and then it loops like that.
Does anyone know what im doing wrong? Im pretty sure I have added everything that I have to add or did I miss something?