WML: endlevel/result=continue_no_save
Moderator: Forum Moderators
Forum rules
- Please use [code] BBCode tags in your posts for embedding WML snippets.
- To keep your code readable so that others can easily help you, make sure to indent it following our conventions.
WML: endlevel/result=continue_no_save
I made a scenario-selector for the holidays-campaign, i.e. a small map
where you move a unit to select the next scenario without save-dialog, like so:
This works. But in the next scenario, it looks like the scenario-name is not set correctly,
so that the proposed filename for savegames is still the same as for the first scenario.
E.g. the config-file for the next scenario has
This text "Easter Eggs" is used for the scenario-objective, which is ok.
http://www.wesnoth.org/wiki/ScenarioWML tells
If I use "result=victory", the default filename for savegame is set correctly,
so I think there is a bug in the processing of "result=continue_no_save".
where you move a unit to select the next scenario without save-dialog, like so:
Code: Select all
...
[endlevel]
next_scenario=easter-eggs
result=continue_no_save
[/endlevel]
so that the proposed filename for savegames is still the same as for the first scenario.
E.g. the config-file for the next scenario has
Code: Select all
[scenario]
id=easter-eggs
name= _ "Easter Eggs"
http://www.wesnoth.org/wiki/ScenarioWML tells
So savegames should also get names like "Easter Eggs Turn XX", but they do not."The [scenario] tag ... name (translatable) is shown in several places in the level, including the intro screen.
It is also the default name for saves on the level."
If I use "result=victory", the default filename for savegame is set correctly,
so I think there is a bug in the processing of "result=continue_no_save".
-HaJo
I don't think so, I think it's supposed to be like that. In any case, there is a solution. Use result=continue, it will work the same as continue_no_save except 1) give them an option to save and 2) have the scenario name be correct.
For I am Turin Turambar - Master of Doom, by doom mastered. On permanent Wesbreak. Will not respond to private messages. Sorry!
And I hate stupid people.
The World of Orbivm
And I hate stupid people.
The World of Orbivm
Then it would be nice if this detail (different behavior of result=turin wrote:I think it's supposed to be like that.
victory / continue / continue_no_save) were documented.
http://www.wesnoth.org/wiki/DirectActionsWML does not mention
that the save-filename is not changed with continue_no_save.
BTW: is there a WML-command to set the suggested filename for savegames,
and for the icon that gets displayed in the loadgame-dialog ?
-HaJo