an example use of the new "$()" feature

This commit is contained in:
Patrick Parker 2008-12-21 09:28:10 +00:00
parent 8cc7575a76
commit 79917149a8

View File

@ -928,6 +928,33 @@ Ww, Ww, Ww, Ww
[event]
name=start
[set_menu_item]
id=test0
description="Perform Calculation"
[filter_location]
[filter]
has_weapon=missile
[/filter]
[/filter_location]
[command]
[message]
speaker=unit
message="I will prepare the incantation; what dost thou desire to know?"
[text_input]
label="Formula="
variable="formula"
[/text_input]
[/message]
[message]
speaker=narrator
message="Formula:
# $formula
Result:
@ $(debug_print( 'Result: ', $formula ))
"
[/message]
[/command]
[/set_menu_item]
[set_menu_item]
id=test1
description="Summon Troll"