This function would work similar to the global swap in the other thread, but, it would only swap objects carried by the party, on their square, and in the square immediately in front of them.
It would be even more fun if it could swap any objects, as opposed to simply standard "pickableupable" objects-- some examples of possible devious uses of this mechanic:
- a crowbar that replaces a hard-to-open door with one that is easily opened or bashed
- a "wand of truth" that turns fake pits into plain floor and invisible pits into visible ones
- a protective talisman that turns incoming fireballs harmless
[Done for V0.36] ACTION_SWAP_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:
Done for V0.36 (and I've added the door example to the actions example dungeon - and very nice it looks too!).
As part of this, I've expanded the SWAP action to be able to swap any object for any other object regardless of their base types. For example, you can swap a pillar / statue for a monster (or vice versa!).
As part of this, I've expanded the SWAP action to be able to swap any object for any other object regardless of their base types. For example, you can swap a pillar / statue for a monster (or vice versa!).