Hi everyone, I feel kind of stupid for asking this, but months away from dungeoneering seems to have eaten my brain cells. I want to do the following:
I cloned an item with a new attack method. This attack method is supposed to SWAP_TILE_LOCAL in order to close a pit if you stand directly in front of the pit. This all works fine, and if you are on the wrong tile, nothing happens, just as it should be.
Now, the problem is that I also want a text message to pop up once the pit is closed, and the cloned item shall vanish. I don't understand how I can do several things with one attack method, and most of all, how I can manage that everything only happens when I stand directly in front of the pit.
Can anyone please help?
Doing multiple things that only work on one tile
Moderator: George Gilbert
Forum rules
Please read the Forum rules and policies before posting.
Please read the Forum rules and policies before posting.
- Parallax
- DMwiki contributor
- Posts: 424
- Joined: Mon Aug 28, 2006 7:56 pm
- Location: Back in New Jersey
There may be easier ways to do this but, from my RTC days, here's what I think I would have done.
First, create a counter with COUNT = 2.
The attack method of your pit-closing weapon should simply activate a relay, let's call it R1. R1 is the beginning of a cascade and will be set to activate with a delay of 0.
R1 activates the counter and another relay R2. R2 is set to deactivate the counter with a delay of 1. R1 may still have more targets to do other things, as long as you want them to happen anytime you swing the weapon (putting an actual attack method here might not be a bad idea, depending on what your weapon is.)
Back to the pit. In front of the special pit, place a trigger, activated by party, constant weight, direction restricted to facing the pit. That trigger activates the counter with a delay of 0.
In layman's terms, standing in front of the pit, facing it, fulfills one condition. Activating the item anywhere in the dungeon fulfills the other. Only doing both at the same time will (briefly) get the counter down to 0. And what happens when the counter gets to 0, you ask? Here's what.
The counter is set to activate yet another relay R3, as well as a speech, and an action to destroy all instances of the weapon in the donjon (or just the one, if there's an action for that, I can't remember.) R3 deactivates the pit.
This is all basic RTC mechanics so, although it's been a while since I touched RTCEditor, it should all still work more or less in this way. There may be shortcuts to do the same thing a well.
First, create a counter with COUNT = 2.
The attack method of your pit-closing weapon should simply activate a relay, let's call it R1. R1 is the beginning of a cascade and will be set to activate with a delay of 0.
R1 activates the counter and another relay R2. R2 is set to deactivate the counter with a delay of 1. R1 may still have more targets to do other things, as long as you want them to happen anytime you swing the weapon (putting an actual attack method here might not be a bad idea, depending on what your weapon is.)
Back to the pit. In front of the special pit, place a trigger, activated by party, constant weight, direction restricted to facing the pit. That trigger activates the counter with a delay of 0.
In layman's terms, standing in front of the pit, facing it, fulfills one condition. Activating the item anywhere in the dungeon fulfills the other. Only doing both at the same time will (briefly) get the counter down to 0. And what happens when the counter gets to 0, you ask? Here's what.
The counter is set to activate yet another relay R3, as well as a speech, and an action to destroy all instances of the weapon in the donjon (or just the one, if there's an action for that, I can't remember.) R3 deactivates the pit.
This is all basic RTC mechanics so, although it's been a while since I touched RTCEditor, it should all still work more or less in this way. There may be shortcuts to do the same thing a well.
- Trantor
- Duke of Banville
- Posts: 2466
- Joined: Wed Mar 09, 2005 4:16 am
- Location: Berlin, Germany
- Contact:
Thank you very much, I was actually thinking in that direction (I did unlockable spells in a similar manner), but somehow couldn't bring it together. I'll try that and/or other solutions you lot have suggested, thanks to everybody! Oh, and for the record, it was just one special pit.Parallax wrote:There may be easier ways to do this but, from my RTC days, here's what I think I would have done.
First, create a counter with COUNT = 2.
The attack method of your pit-closing weapon should simply activate a relay, let's call it R1. R1 is the beginning of a cascade and will be set to activate with a delay of 0.
R1 activates the counter and another relay R2. R2 is set to deactivate the counter with a delay of 1. R1 may still have more targets to do other things, as long as you want them to happen anytime you swing the weapon (putting an actual attack method here might not be a bad idea, depending on what your weapon is.)
Back to the pit. In front of the special pit, place a trigger, activated by party, constant weight, direction restricted to facing the pit. That trigger activates the counter with a delay of 0.
In layman's terms, standing in front of the pit, facing it, fulfills one condition. Activating the item anywhere in the dungeon fulfills the other. Only doing both at the same time will (briefly) get the counter down to 0. And what happens when the counter gets to 0, you ask? Here's what.
The counter is set to activate yet another relay R3, as well as a speech, and an action to destroy all instances of the weapon in the donjon (or just the one, if there's an action for that, I can't remember.) R3 deactivates the pit.
This is all basic RTC mechanics so, although it's been a while since I touched RTCEditor, it should all still work more or less in this way. There may be shortcuts to do the same thing a well.
EDIT: Just tried it, it works. Thanks!