Page 1 of 1

[Done for V0.36] ACTION_SWAP_LOCAL

Posted: Tue Mar 28, 2006 10:55 pm
by Sophia
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

Posted: Wed Mar 29, 2006 7:16 pm
by George Gilbert
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!).