"Destroy item" for floor triggers

Messages are moved here (should anyone ever want to see them again) once they are no longer applicable to the current version (e.g. suggestions that have been implemented or bugs that have been fixed).

Moderator: George Gilbert

Forum rules
Please read the Forum rules and policies before posting.
Post Reply
User avatar
R.K.
Apprentice
Posts: 30
Joined: Sun Aug 06, 2006 10:58 pm

"Destroy item" for floor triggers

Post 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?
User avatar
beowuuf
Archmastiff
Posts: 20687
Joined: Sat Sep 16, 2000 2:00 pm
Location: Basingstoke, UK

Post by beowuuf »

swaping_local item type to null would work
User avatar
R.K.
Apprentice
Posts: 30
Joined: Sun Aug 06, 2006 10:58 pm

Post by R.K. »

Hm, I don't see that action. Is that done with a floor item, or a wall item?
User avatar
beowuuf
Archmastiff
Posts: 20687
Joined: Sat Sep 16, 2000 2:00 pm
Location: Basingstoke, UK

Post by beowuuf »

It's an action generated by a wallitem_action - target it by the floor trigger and have it generate the swap
User avatar
R.K.
Apprentice
Posts: 30
Joined: Sun Aug 06, 2006 10:58 pm

Post by R.K. »

Do you mean ACTION_SWAP_TILE_LOCAL? What would ACTION_SWAP_TILE and ACTION_SWAP_TILE_INFRONT do?
User avatar
beowuuf
Archmastiff
Posts: 20687
Joined: Sat Sep 16, 2000 2:00 pm
Location: Basingstoke, UK

Post 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
Post Reply