mirror of
https://github.com/wesnoth/wesnoth
synced 2025-04-29 17:58:14 +00:00
an example use of the new "$()" feature
This commit is contained in:
parent
8cc7575a76
commit
79917149a8
@ -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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user