doors open by spell

Questions about how to create your own dungeons and replacement graphics and sounds.

Moderator: George Gilbert

Forum rules
Please read the Forum rules and policies before posting. You may Image to help finance the hosting costs of this forum.
Post Reply
User avatar
THOM
Artisan
Posts: 198
Joined: Sat Feb 28, 2004 9:22 pm
Location: Cologne, Germany
Contact:

doors open by spell

Post by THOM »

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
User avatar
Big-J-Q
Adept
Posts: 215
Joined: Sat Apr 14, 2001 6:05 pm
Location: Oulu, Finland

Post by Big-J-Q »

ZO-spells only work on doors that have buttons on the doorframe. I think there is no way of configuring doors to be activated by the spell (or a spell).
User avatar
beowuuf
Archmastiff
Posts: 20686
Joined: Sat Sep 16, 2000 2:00 pm
Location: Basingstoke, UK

Post by beowuuf »

you can have triggers activated by spells though -- so you could have a 'toggle door' floorpad with a slight delay so that when the spell takes effect, there is a second effect working on the door to close it again.

or, just have a poison cloud toggled door!
User avatar
George Gilbert
Dungeon Master
Posts: 3022
Joined: Mon Sep 25, 2000 11:04 am
Location: London, England
Contact:

Post by George Gilbert »

Just a quick post to confirm Big-J-Qs post is exactly how the engine works.

Beowuufs suggestion however is very cunning though - just goes to show how flexible the engine can be with a little imagination!
User avatar
linflas
My other avatar is gay
Posts: 2445
Joined: Tue Nov 04, 2003 9:58 pm
Location: Lille, France
Contact:

Post by linflas »

flooritem trigger -> opby spell zo -> over trigger only -> delay = 6 -> deactivate -> door : i just tested and it works fine, thanks beo :)
User avatar
beowuuf
Archmastiff
Posts: 20686
Joined: Sat Sep 16, 2000 2:00 pm
Location: Basingstoke, UK

Post by beowuuf »

got the idea from having an always closed push button door like dm2 - you constantly target a close effect at the door, and it won't open unless you used anitem to cancel the close trigger : )
User avatar
Ameena
Wordweaver, Murafu Maker
Posts: 7552
Joined: Mon Mar 24, 2003 6:25 pm
Location: Here, where I am sitting!
Contact:

Post by Ameena »

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 :).
User avatar
George Gilbert
Dungeon Master
Posts: 3022
Joined: Mon Sep 25, 2000 11:04 am
Location: London, England
Contact:

Post by George Gilbert »

If the button is invisible, you shouldn't be able to click on it anyway. If you still can, it's a bug - let me know and I'll fix it!
User avatar
Ameena
Wordweaver, Murafu Maker
Posts: 7552
Joined: Mon Mar 24, 2003 6:25 pm
Location: Here, where I am sitting!
Contact:

Post by Ameena »

Lol oh, is it a bug? Well, it worked :D. 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...
User avatar
copperman
Um Master
Posts: 476
Joined: Thu Aug 29, 2002 12:49 pm
Location: UK

Post by copperman »

yes i have had the same issue.
User avatar
TheMormegil
Adept
Posts: 213
Joined: Thu Apr 10, 2003 10:23 am
Location: Wales

Post by TheMormegil »

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.
User avatar
George Gilbert
Dungeon Master
Posts: 3022
Joined: Mon Sep 25, 2000 11:04 am
Location: London, England
Contact:

Post by George Gilbert »

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!
User avatar
TheMormegil
Adept
Posts: 213
Joined: Thu Apr 10, 2003 10:23 am
Location: Wales

Post by TheMormegil »

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
User avatar
copperman
Um Master
Posts: 476
Joined: Thu Aug 29, 2002 12:49 pm
Location: UK

Post by copperman »

w00t another "issue" closed
Post Reply