Issue549

Title DIALOG-LUA: Add variable-handling to Text-option
Priority idea Status open
Assigned To Henker Keywords
Linked issues Watchers Henker

Submitted on 2011-12-06 00h25 by Henker, last changed by Henker.

Messages
Author: Henker Date: 2011-12-06   00h25
In the dialogs, every node has a "Text"-option.
It would be very convenient to have the possibility to embed lua variables from
the dialog into the option string.

This could be used for example with a variable traing post cost for lessons.
E.g.:
Kevin wants 300 circs and 2 * (told_lessons + 1) training points for the next
lessons.

Tux' answer should be something like
Text=_string.format("Yes, please teach me. (costs 300 circuits, %d training
points)", 2 * (told_lessons + 1))
Author: matthiaskrgr Date: 2011-12-06   09h15
Yep, this would be very useful.

We should also have a possebility to display one of some random Text_= strings.
Author: Henker Date: 2011-12-06   17h01
An implementation can be found here:
http://rb.freedroid.org/r/1665/
History
Date User Action Args
2011-12-06 17:01:35Henkersetassignedto: Henker
messages: + msg2103
nosy: + Henker
2011-12-06 09:15:43matthiaskrgrsetmessages: + msg2101
2011-12-06 00:25:59Henkercreate