Page 1 of 1
break a door with a definite action
Posted: Sat Oct 10, 2009 7:17 pm
by RAF68
it is possible to break a wooden door with a definite action example only with a sword, if the player types the door the door with an sword break if knock the door without weapon has bare hand kick that the door does not break?
Re: break a door with a definite action
Posted: Sat Oct 10, 2009 7:32 pm
by beowuuf
You'd need to create a new attack type for the sword alone, that coverts a new type of wooden door to a broken wooden door.
Re: break a door with a definite action
Posted: Sat Oct 10, 2009 8:15 pm
by Lai
i think this would work just if u throw the weapon (lets say a "falchion") u wish to bash the door.
but im only a neophyte to use the editor...
if this solution to be adequate to you build this:
a wooden door closed with 100/100 bash/fire.
at same tile: broken wooden door closed.
a counter,destroy,target "wooden door",no delay, 2 count
a trigger in front of door operated by "falchion",over trigger only,toogle, target: the counter
this way the counter decreased from 2 to 1 while stepping at front of the door while have a falchion in inventory or armed, and its decreased from 1 to 0 if u throw the falchion at the door. at 0 it destroy the wooden door, and u see the broken door

edit1:
u could also build a second relay with same details who activatet a "localised sound" where are in front of door and plays "thud".
the only problem for this build are, u have to trap the party at this tile, or their open the door just while walking around
edit2:
ok, i have take a look...first i was happy, cause i thought u dont have to trap the party, cause if the door at east u have to make trigger work only from east. this works fine, but the problem are making this all pointless: the player just have to rotate and the door are bashed.
anyway, i have somtehing learned
HEHE
Re: break a door with a definite action
Posted: Sat Oct 10, 2009 9:27 pm
by Duckman
It's possible but you will have to mess with attack methods, actions and relays quite a bit. I actually did just that in my dungeon, it was not too much work but only because it was done for only one door.
Re: break a door with a definite action
Posted: Sat Oct 10, 2009 9:56 pm
by Gambit37
RAF68: I think you're going about this the wrong way. Beowuuf made a good suggestion.
Have you investigated ACTIONS yet? It sounds like you haven't. These are a much more powerful way of building clever mechanics.....
In this case, you simply need a sword that has a special Attack method. The Attack Method should do an ACTION that swaps any door with a new broken door. The beauty of this is that you don't need any relays or other such stuff. If the sword is used anywhere other than on your special door, nothing will happen.
I don't have the time this weekend to do an example, but if I get any time soon, I'll create one for you to have a look at.
Re: break a door with a definite action
Posted: Mon Dec 28, 2009 4:48 pm
by RAF68
do I have to test all your idea but amn't I to arrive somebody could make me an example? that would be very nice
Re: break a door with a definite action
Posted: Tue Dec 29, 2009 12:52 am
by beowuuf
rtc has a sample with a club in it, see the examples folder
Re: break a door with a definite action
Posted: Wed Dec 30, 2009 10:18 pm
by Lord_BoNes
The problem there is that it was also trigger from ANYWHERE in the dungeon. If you activate the attack method prior to finding the door in question, it'll swap it before you even get there!
My answer:
Clone a new door with the given appearance. Place one in your dungeon.
Clone a new cloud from CLOUD_ZO. Give it NULL appearence.
Clone a new spell from ZO. Give it NULL appearence. For it's break convert, set its COVERT_TO to the new CLOUD_ZO, and no sound, then use the action ACTION_SWAP_LOCAL and set the OBJECT_1 to the newly cloned door's type and set OBJECT_2 to the "broken door".
Then make your action method CAST_SPELL using the newly created spell as OBJECT_1, make sure the strength is 2 (it means "sub-squares" distance traveled for the spell to run out of steam, disappear, so 2 means that it'll go 2 "sub-squares, or 1 FULL square. This means that it'll only affect a door on the tile that you're facing).
Re: break a door with a definite action
Posted: Wed Dec 30, 2009 10:56 pm
by Lord_BoNes
Re: break a door with a definite action
Posted: Wed Dec 30, 2009 11:39 pm
by RAF68
thanks lord bones