Changeset View
Changeset View
Standalone View
Standalone View
autotests/html/test.pbl.html
Show First 20 Lines • Show All 79 Lines • ▼ Show 20 Line(s) | 79 | <span style="font-weight:bold;">[event]</span> | |||
---|---|---|---|---|---|
80 | <span style="color:#0057ae;">name </span>= preload | 80 | <span style="color:#0057ae;">name </span>= preload | ||
81 | <span style="color:#0057ae;">first_time_only </span>= no | 81 | <span style="color:#0057ae;">first_time_only </span>= no | ||
82 | <span style="font-weight:bold;">[lua]</span> | 82 | <span style="font-weight:bold;">[lua]</span> | ||
83 | <span style="color:#0057ae;">code </span>=<span style="color:#bf0303;"> <<</span> | 83 | <span style="color:#0057ae;">code </span>=<span style="color:#bf0303;"> <<</span> | ||
84 | <span style="font-weight:bold;">function</span> narrator(<span style="color:#5555ff;">t</span>) | 84 | <span style="font-weight:bold;">function</span> narrator(<span style="color:#5555ff;">t</span>) | ||
85 | <span style="color:#898887;">-- Behave like the [message] tag.</span> | 85 | <span style="color:#898887;">-- Behave like the [message] tag.</span> | ||
86 | <span style="color:#5555ff;">wesnoth</span>.fire(<span style="color:#bf0303;">"message"</span>, | 86 | <span style="color:#5555ff;">wesnoth</span>.fire(<span style="color:#bf0303;">"message"</span>, | ||
87 | { <span style="color:#5555ff;">speaker</span> = <span style="color:#bf0303;">"narrator"</span>, <span style="color:#5555ff;">message</span> = <span style="color:#5555ff;">t</span>.<span style="color:#5555ff;">sentence</span> }) | 87 | { <span style="color:#5555ff;">speaker</span> = <span style="color:#bf0303;">"narrator"</span>, <span style="color:#5555ff;">message</span> = <span style="color:#5555ff;">t</span>.<span style="color:#5555ff;">sentence</span> }) | ||
88 | <span style="color:#a1a100;">end</span> | 88 | <span style="font-weight:bold;">end</span> | ||
89 | <span style="color:#bf0303;">>></span> | 89 | <span style="color:#bf0303;">>></span> | ||
90 | <span style="font-weight:bold;">[/lua]</span> | 90 | <span style="font-weight:bold;">[/lua]</span> | ||
91 | <span style="font-weight:bold;">[/event]</span> | 91 | <span style="font-weight:bold;">[/event]</span> | ||
92 | 92 | | |||
93 | <span style="font-weight:bold;">[event]</span> | 93 | <span style="font-weight:bold;">[event]</span> | ||
94 | <span style="color:#0057ae;">name </span>= turn 1 | 94 | <span style="color:#0057ae;">name </span>= turn 1 | ||
95 | <span style="font-weight:bold;">[lua]</span> | 95 | <span style="font-weight:bold;">[lua]</span> | ||
96 | <span style="color:#0057ae;">code </span>=<span style="color:#bf0303;"> <<</span> narrator(...) <span style="color:#bf0303;">>></span> | 96 | <span style="color:#0057ae;">code </span>=<span style="color:#bf0303;"> <<</span> narrator(...) <span style="color:#bf0303;">>></span> | ||
Show All 12 Lines |