Clarifying SWAPS?

Questions about how to create your own dungeons and replacement graphics and sounds.

Moderator: George Gilbert

Forum rules
Please read the Forum rules and policies before posting.
Post Reply
User avatar
Gambit37
Should eat more pies
Posts: 13720
Joined: Wed May 31, 2000 1:57 pm
Location: Location, Location
Contact:

Clarifying SWAPS?

Post by Gambit37 »

Does anyone know for certain what properties of items are maintained when you SWAP something for something else?

For example, if I do a ACTION_SWAP_TILE and change one monster to another, do any of its properties get copied to the converted monster (eg, current hit points), or is the new monster completely new and will only have its base properties?

I understand that ACTION_SWAP_GLOBAL will copy properties over, but this is no good as you can't target an individual monster.
User avatar
Lord_BoNes
Jack of all trades
Posts: 1064
Joined: Mon Dec 01, 2008 12:36 pm
Location: Ararat, Australia.

Re: Clarifying SWAPS?

Post by Lord_BoNes »

As I understand it, it seems that only SWAP_GLOBAL & SWAP_GLOBAL_FAST copy properties over... the easiest way to check what conversions kill the properties is to use a chest with an item in it. If the item survives the conversion inside a chest... then a monster's hp, inventory, etc would also survive it.
 
Image

1 death is a tragedy,
10,000,000 deaths is a statistic.
- Joseph Stalin

Check out my Return to Chaos dungeon launcher
And my Dungeon Master Clone
Post Reply