doors open by spell
Moderator: George Gilbert
Forum rules
Please read the Forum rules and policies before posting. You may
to help finance the hosting costs of this forum.
Please read the Forum rules and policies before posting. You may

doors open by spell
I asked that quite a while ago and after that flood of new versions (thanx George!) I have lost the track... so once again:
when I put a Spell on doors to open them - how to configure that? how to enable doors to open by spells or to disable? or do I still have no control over that?
THOM
when I put a Spell on doors to open them - how to configure that? how to enable doors to open by spells or to disable? or do I still have no control over that?
THOM
- George Gilbert
- Dungeon Master
- Posts: 3022
- Joined: Mon Sep 25, 2000 11:04 am
- Location: London, England
- Contact:
- Ameena
- Wordweaver, Murafu Maker
- Posts: 7552
- Joined: Mon Mar 24, 2003 6:25 pm
- Location: Here, where I am sitting!
- Contact:
I was making a dungeon for newbies, and I had a bit where there's a closed door and a scroll on the floor explaining the Zo spell, which you must then cast on the door to open it. I just gave the door a button, but made the button invisible. So unless you knew it was there, you (hopefully) wouldn't be very likely to randomly click in that spot
.

- George Gilbert
- Dungeon Master
- Posts: 3022
- Joined: Mon Sep 25, 2000 11:04 am
- Location: London, England
- Contact:
- Ameena
- Wordweaver, Murafu Maker
- Posts: 7552
- Joined: Mon Mar 24, 2003 6:25 pm
- Location: Here, where I am sitting!
- Contact:
Lol oh, is it a bug? Well, it worked
. I figured "How do you open a door with a Zo spell when it needs a button but I don't want one there?". So I tride just adding a button and making it invisible, then when I went intot he dungeon I clicked where the button should be and the door opened - I figured that invisble doesn't mean inactive...

- TheMormegil
- Adept
- Posts: 213
- Joined: Thu Apr 10, 2003 10:23 am
- Location: Wales
Having a flooritem trigger -> opby spell zo does not seem to work very well when I tried it out.
i) It seemed that the trigger must be on the tile in front of the door
ii) You could then trigger it by firing a zo at a wall on either side of the square with the trigger on it.
iii) You need another trigger on the other side.
iv) You can't close the door with a zo spell.
If the above is not the case, could you paste an example of how it should really work please.
i) It seemed that the trigger must be on the tile in front of the door
ii) You could then trigger it by firing a zo at a wall on either side of the square with the trigger on it.
iii) You need another trigger on the other side.
iv) You can't close the door with a zo spell.
If the above is not the case, could you paste an example of how it should really work please.
- George Gilbert
- Dungeon Master
- Posts: 3022
- Joined: Mon Sep 25, 2000 11:04 am
- Location: London, England
- Contact:
I suspect that the spell is hitting the door first. RTC calculates effects for objects in the order in which they appear in the text file. I think what's happening is:
- the ZO spell hits the door and turns into a ZO cloud.
- there is then no ZO spell to activate the trigger.
If I'm right, you could fix this by either
- changing the trigger to be opby a ZO cloud
OR
- putting the trigger opby ZO spell before the door in the text file.
If neither of these work, let us know!
- the ZO spell hits the door and turns into a ZO cloud.
- there is then no ZO spell to activate the trigger.
If I'm right, you could fix this by either
- changing the trigger to be opby a ZO cloud
OR
- putting the trigger opby ZO spell before the door in the text file.
If neither of these work, let us know!
- TheMormegil
- Adept
- Posts: 213
- Joined: Thu Apr 10, 2003 10:23 am
- Location: Wales
Well the first idea didn't work because I think DUNGEON_CLOUD_ZO is not recognized.
The second idea makes it work perfectly
So, a trigger on the same square as the door making sure its first in the text file is the way to do it.
In the editor, just make sure you add the trigger to the square before you have placed the door on it and it will be in the right order in the text file too.
FLOORITEM_TRIGGER --> OPBY --> DUNGEON_SPELL_ZO,OVER_ONLY ---> ACTION=(TOGGLE) TARGET=(THE DOOR) OPTIONS=(DELAY:1)
Seems to act just like the spell.
Thanks George
The second idea makes it work perfectly

So, a trigger on the same square as the door making sure its first in the text file is the way to do it.
In the editor, just make sure you add the trigger to the square before you have placed the door on it and it will be in the right order in the text file too.
FLOORITEM_TRIGGER --> OPBY --> DUNGEON_SPELL_ZO,OVER_ONLY ---> ACTION=(TOGGLE) TARGET=(THE DOOR) OPTIONS=(DELAY:1)
Seems to act just like the spell.
Thanks George