When you do a SWAP_LOCAL - what are the rules for which squares get affected?
I ask because I've been trying a few things out such as a one-way fake wall. The wall contains two WALLITEM_ACTIONs, one does SWAP_LOCAL to change the fake wall to a movable wall, the other does the reverse. Either side of the wall are party operated triggers which activate one or other of the actions. This does have the desired effect, however the swap only takes place if the party is facing the wall.
Definition of LOCAL
Moderator: George Gilbert
Forum rules
Please read the Forum rules and policies before posting. You may
to help finance the hosting costs of this forum.
Please read the Forum rules and policies before posting. You may

- George Gilbert
- Dungeon Master
- Posts: 3022
- Joined: Mon Sep 25, 2000 11:04 am
- Location: London, England
- Contact:
For V0.37 there's a bug which means that SWAP_LOCAL doesn't always do what you expect it to!
For V0.38 however, theres:
- SWAP_TILE: swaps stuff (only) on the tile that it's activated from
- SWAP_TILE_INFRONT: swaps stuff (only) on the tile infront of the tile that it's activated from
- SWAP_TILE_LOCAL: swaps stuff on the tile that it's activated from and the four tiles that are immediately north, south, east and west of it.
So for your fake wall thing you'd probably need SWAP_TILE (however from the sounds of it, and without knowing the full details, you can probably get the behaviour you want without doing any swapping, but just activating / deactivating / toggling the fake wall and the movable one).
For V0.38 however, theres:
- SWAP_TILE: swaps stuff (only) on the tile that it's activated from
- SWAP_TILE_INFRONT: swaps stuff (only) on the tile infront of the tile that it's activated from
- SWAP_TILE_LOCAL: swaps stuff on the tile that it's activated from and the four tiles that are immediately north, south, east and west of it.
So for your fake wall thing you'd probably need SWAP_TILE (however from the sounds of it, and without knowing the full details, you can probably get the behaviour you want without doing any swapping, but just activating / deactivating / toggling the fake wall and the movable one).
Thanks. With Acitvate / Deactivate / Toggle it will work with two tiles, but not with just one. Destroy and creating a new object on the tile doesn't work either as you can't later destroy the new object. So I think you do need to use swap. I am only testing stuff out though and it sounds like it will work in 0.38 so no problemo.