Page 1 of 1

How to create text messages using actions and menus?

Posted: Fri May 30, 2008 9:49 pm
by Gambit37
I have an item with a custom usage menu -- so when you place it in the champion's hand, you can click its "attack" icon and do different things with it.

I want some of these actions to also generate a message.

I tried adding an "Additional Action" to the "Convert -> Use" tab of my new item. The action is ACTION_OBJECT_ACTIVATE and the item it points to is a unique clone of the WALLITEM_SPEECH.

This clone is placed in the dungeon and has its text string assigned.

No message appears when I use the object.

What gives?

How do we make messages appear as the result of actions?

Posted: Fri May 30, 2008 10:05 pm
by Gambit37
OK, I solved it by having my attack method target a cloned relay that targets other objects that in turn do the things I want to do.

It seems that this is actually the best way of doing complex stuff, rather than having attack methods affect stuff directly -- that's only useful when you want ONE thing to happen.

Convoluted!

Posted: Sat May 31, 2008 4:01 pm
by beowuuf
I think you hit the same snap we all did didn't you? For a convert to work, you need to have a convert occur - even if the convert is to the same item

Cloned relays/action items always seem to be best rather than creating an attack method to do the action itself first, it lets you sneak complexity in later