[Not a bug] equiping objects with action

Things in RTC that do not work as expected (compared to Dungeon Master) or at all! Please read previous posts carefully to see if the bug has already been reported.

Moderator: George Gilbert

Forum rules
Please read the Forum rules and policies before posting.
Post Reply
User avatar
THOM
Artisan
Posts: 198
Joined: Sat Feb 28, 2004 9:22 pm
Location: Cologne, Germany
Contact:

[Not a bug] equiping objects with action

Post by THOM »

When you equip an object and want to have an action take place while equiping it, you have also to do a convert. Means: you cannot do just the action, you HAVE to do an conversion (i.e. to itself) to have the action working.
See some discussion about it here:

http://www.dungeon-master.com/forum/vie ... hp?t=27673
User avatar
George Gilbert
Dungeon Master
Posts: 3022
Joined: Mon Sep 25, 2000 11:04 am
Location: London, England
Contact:

Post by George Gilbert »

The current behaviour is the correct and entirely intended behaviour.

The key to understanding this is thinking about what a "NULL" convert-to means. Does it mean don't convert, or does it mean convert to nothing?

If you think it through, it makes everything much simpler if, for those few items that have actions, you explicity say what you want the item to convert to (the same thing or something else) than than introducing a whole new set of conceptual questions about what things mean.
User avatar
beowuuf
Archmastiff
Posts: 20687
Joined: Sat Sep 16, 2000 2:00 pm
Location: Basingstoke, UK

Post by beowuuf »

The problem is we have not found a way to create an action when you equiup/unequip an item except for using the convert to menu, and the additional action does not kick in unless the equpped object changes first

Eg - you equip a sword, and a sound is played, or a monster leaps out at you, or a 'cannot use left hand' symbol appears in your left hand, etc but you still want the original sword to be in the hand
User avatar
George Gilbert
Dungeon Master
Posts: 3022
Joined: Mon Sep 25, 2000 11:04 am
Location: London, England
Contact:

Post by George Gilbert »

I'm still not quite sure what the problem is...

If you set the convert-to item to be the same as the item does it not work?
User avatar
THOM
Artisan
Posts: 198
Joined: Sat Feb 28, 2004 9:22 pm
Location: Cologne, Germany
Contact:

Post by THOM »

It does work.

The only question for me was - is this behaviour intended. But you have answered this already.
Thanks. :-)
User avatar
beowuuf
Archmastiff
Posts: 20687
Joined: Sat Sep 16, 2000 2:00 pm
Location: Basingstoke, UK

Post by beowuuf »

Yes, but then you don't get the item back, you get another of the item type

If you had runes or a descriptive text attacked to a particular sword, then they get lost when you get a new version of the item, right? I seem to recall charges/strength carried across between items though when you convert, right?
User avatar
Gambit37
Should eat more pies
Posts: 13714
Joined: Wed May 31, 2000 1:57 pm
Location: Location, Location
Contact:

Post by Gambit37 »

That last bit from Beo is the key bit we need to understand: what properties (if any) are retained when swapping or converting items?

This has been a real stumbling block for me.
User avatar
George Gilbert
Dungeon Master
Posts: 3022
Joined: Mon Sep 25, 2000 11:04 am
Location: London, England
Contact:

Post by George Gilbert »

beowuuf wrote:Yes, but then you don't get the item back, you get another of the item type

If you had runes or a descriptive text attacked to a particular sword, then they get lost when you get a new version of the item, right? I seem to recall charges/strength carried across between items though when you convert, right?
If you're converting from something of one type to something of the same type (which obviously includes converting to *exactly* the same type), then every property is carried over - if you find something that isn't, then it's a bug and let me know.

If you're converting between similar, or even completely different types, then the engine tries to carry over as much as possible making intelligent guesses where it can - for example, converting a potion into a monster will carry over the strength of the potion into the HP of the monster.
User avatar
Gambit37
Should eat more pies
Posts: 13714
Joined: Wed May 31, 2000 1:57 pm
Location: Location, Location
Contact:

Post by Gambit37 »

Aaah... light bulb moment! :)
User avatar
beowuuf
Archmastiff
Posts: 20687
Joined: Sat Sep 16, 2000 2:00 pm
Location: Basingstoke, UK

Post by beowuuf »

Ah, then that's ok! I just didn't think the engine would convert things across that intelligently
User avatar
Chaos-Shaman
High Lord
Posts: 2642
Joined: Wed May 03, 2006 7:26 pm
Location: The Gates of Hell

Re: [Not a bug] equiping objects with action

Post by Chaos-Shaman »

oh yes. now here comes a question I'd like answered and I have been trying to figure what is kept.

when swapping a monster say with 9000 health to another monster of the same type, does the monster health transfer to the newly swapped one? of course I am not clear on this.
keep your gor coin handy
Post Reply