Page 1 of 1

"Destroy item" for floor triggers

Posted: Mon Aug 14, 2006 8:03 pm
by R.K.
Wall triggers can destroy the item that triggers them, but I don't see a simple way to do this for items on floor triggers. Is there a way to make the "destroy" action for floor triggers destroy items that don't already exist?

Posted: Mon Aug 14, 2006 8:05 pm
by beowuuf
swaping_local item type to null would work

Posted: Mon Aug 14, 2006 8:29 pm
by R.K.
Hm, I don't see that action. Is that done with a floor item, or a wall item?

Posted: Mon Aug 14, 2006 8:34 pm
by beowuuf
It's an action generated by a wallitem_action - target it by the floor trigger and have it generate the swap

Posted: Mon Aug 14, 2006 8:46 pm
by R.K.
Do you mean ACTION_SWAP_TILE_LOCAL? What would ACTION_SWAP_TILE and ACTION_SWAP_TILE_INFRONT do?

Posted: Mon Aug 14, 2006 9:47 pm
by beowuuf
swap tile infront swaps infront of the tile source, swap tile swaps with the tile itself, and swap local swaps with the tile, the party, and all the tiles around.

So you would have a spell exposion say swap local to destroy all the walls around, an attack method (sourced from the party) swapping infront, and a monster swapping to another monster occuring form the tile itself

In your case, you would use swap tile