[Fixed for V0.38] Items created in center can't be picked up

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
Sophia
Concise and Honest
Posts: 4307
Joined: Thu Sep 12, 2002 9:50 pm
Location: Nowhere in particular
Contact:

[Fixed for V0.38] Items created in center can't be picked up

Post by Sophia »

When an object that is in the center (or centre, if you prefer) of a tile is converted, any resultant object will also be there, including a pickableuppable item.

Thus, if I'm trying to make a monster into an object, for example, it will appear in the middle of the tile, and I can't pick it up.
User avatar
George Gilbert
Dungeon Master
Posts: 3022
Joined: Mon Sep 25, 2000 11:04 am
Location: London, England
Contact:

Post by George Gilbert »

Fixed for V0.38
User avatar
Lunever
Grand Druid
Posts: 2712
Joined: Thu Feb 14, 2002 4:47 pm

Post by Lunever »

How exactly has this been fixed?
Parting is all we know from Heaven, and all we need of hell.
User avatar
George Gilbert
Dungeon Master
Posts: 3022
Joined: Mon Sep 25, 2000 11:04 am
Location: London, England
Contact:

Post by George Gilbert »

Something like:

Code: Select all

if (tile is a wall)
{
  if (current tile position == NORTH)
    current tile position = NORTHWEST
  else if (current tile position == EAST)
    current tile position = NORTHEAST
  else if (current tile position == SOUTH)
    current tile position = SOUTHEAST
  else if (current tile position == WEST)
    current tile position = SOUTHWEST
  else if (current tile position == CENTRE)
    current tile position = Random of one of the above 4.
}
else
{
  if (current tile position == NORTHWEST)
    current tile position = NORTH
  else if (current tile position == NORTHEAST)
    current tile position = EAST
  else if (current tile position == SOUTHEAST)
    current tile position = SOUTH
  else if (current tile position == SOUTHWEST)
    current tile position = WEST
  else if (current tile position == CENTRE)
    current tile position = Random of one of the above 4.
}
User avatar
Lunever
Grand Druid
Posts: 2712
Joined: Thu Feb 14, 2002 4:47 pm

Post by Lunever »

Ah, so an item on the center will just be transferred to one of the 4 standard tile positions, but it is not possible for an item to actually lie on a center position. Right, thanks!
Parting is all we know from Heaven, and all we need of hell.
Post Reply