Wall item activation by objects (v0.17)

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. You may Image to help finance the hosting costs of this forum.
Post Reply
User avatar
Gambit37
Should eat more pies
Posts: 13778
Joined: Wed May 31, 2000 1:57 pm
Location: Location, Location
Contact:

Wall item activation by objects (v0.17)

Post by Gambit37 »

A new problem has occurred in this version. I have a coin slot operated by a gold coin, that when activated reveals an alcove underneath containing two gold coins. When I play the game, the coin slot never appears and the alcove can be seen straightway with the coins on it.

I suddenly realised that when the level starts RTC must be using the coins on the alcoves to activate the coin slot somehow, so that it performs its function immediately. If I comment out the coins, the slot is displayed correctly and functions correctly. I don't know if the same thing would happen with a keyhole that reveals an alcove containing the same key.

This worked fine in the previous version (v0.16)
User avatar
George Gilbert
Dungeon Master
Posts: 3022
Joined: Mon Sep 25, 2000 11:04 am
Location: London, England
Contact:

Re: Wall item activation by objects (v0.17)

Post by George Gilbert »

This is working as designed and I have no intention of changing it!

Consider the case of the silver coin in the alcove in "The Vault". Here when the coin is initially in the alcove then it's right that it should activate the trigger in that alcove immediately. Similarly if you add coins to a tile that contains a coin slot then it really should activate the associated trigger.

As the order of the items in the file should reflect the order of items on the tile, then it also makes sense that the coins should come first and the slot last as the coins are "under" the slot.
User avatar
Gambit37
Should eat more pies
Posts: 13778
Joined: Wed May 31, 2000 1:57 pm
Location: Location, Location
Contact:

Re: Wall item activation by objects (v0.17)

Post by Gambit37 »

OK, so I wnet back and rebuilt these slot/alcoves the same way you'd done on level 11 (10) of the DM dungeon. They work fine now.

I am still slightly confused though - have you changed the operation of these in this release? When I was testing this in my Kid dungeon in all previous releases, I never experienced this problem. Clearly, this was because the items in the alcoves were earlier in the file than both the coin slots and the alcoves.

However, when using this exact code in v0.17 it crashed the game when placing the objects back on the alcoves after having opened them using the coins. Re-ordering them seemed to get rid of this crash, but gave the new problem of the alcove being open. I seem to have fixed it all now, but I'm curious as to what has changed in this release.
Post Reply