EarthCake's problems
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.
Re: EarthCake's problems
[option] and [kill].
Re: EarthCake's problems
Should I then again use [event] name=prestart [/event] for units, if I want to place them?
EDIT: If I want to make option which leads to another map, I need: [option] [label] ... [/label] [then] [replace_map] map_data=... [/replace_map] [/then] [/option], and if choose other option, then [else] ... [/else]?
EDIT: If I want to make option which leads to another map, I need: [option] [label] ... [/label] [then] [replace_map] map_data=... [/replace_map] [/then] [/option], and if choose other option, then [else] ... [/else]?
Re: EarthCake's problems
I do not understand first question.
No [then]/[else], use [option] for all choices. You might not want [label].
No [then]/[else], use [option] for all choices. You might not want [label].
Re: EarthCake's problems
If I don't use 'scenario' in the map editor and I put units by [unit] tags, do I use again:
Or I need to put units into map editor?
Code: Select all
[event]
name=start
[unit]
type=Spearman
x,y=(ie)1,1
[/unit]
[/event]
Re: EarthCake's problems
Instead of replacing the map, you could go to a different scenario with
Code: Select all
[endlevel]
result=victory
next_scenario=06_you_ally_with_the_necromancer_and_the_elves_leave_you_lost_in_the_forest
[/endlevel]
Re: EarthCake's problems
It is dialogue only scenario, so it is not scenario end. Anyway, thanks now I know how to do what you suggested.
Re: EarthCake's problems
Is it possible to put an [event] tag inside [option] tag?
Re: EarthCake's problems
When it comes to map replacing, it says
replace_map: Map dimension(s) decrease but shrink is not set.
How do I repair this?
replace_map: Map dimension(s) decrease but shrink is not set.
How do I repair this?
Re: EarthCake's problems
Add
You can also use the mainline campaigns for reference. Example:
shrink=yes
. There's documentation and caveats on the Wiki: DirectActionsWML#.5Breplace_map.5D. For this tag, moving villages needs additional work.You can also use the mainline campaigns for reference. Example:
Code: Select all
[replace_map]
map="{campaigns/Descent_Into_Darkness/maps/12a_Endless_Night.map}"
expand=yes
shrink=yes
[/replace_map]
Re: EarthCake's problems
After command [replace_map] is executed, map only turns black, but menu and gold, vills, and everything else can be seen. Is this error in WML, or some bug with map?
Re: EarthCake's problems
Please attach the files for someone else to test it.
Re: EarthCake's problems
Here it is. I changed leaders to be common units to not put here all that units files.
Re: EarthCake's problems
It's not map_data, but just map (or map_file).