Best practices using WML events
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.
- Viliam
- Translator
- Posts: 1341
- Joined: January 30th, 2004, 11:07 am
- Location: Bratislava, Slovakia
- Contact:
Best practices using WML events
I tried to re-organize the EventWML wiki page, and add many examples (approximately one for each event type). I looked in official scenarios to find the "best practices" on using events. And I found that different campaigns/authors do some things differently.
So I want to ask whether these different ways are just matter of taste, or is there some advantage in doing it one way as opposed to another?
Putting new units on the map:
"EI", "SotBE" -- in PRESTART event
"TDH" -- in START event
"HTTT" -- in SIDE tag
Recalling units:
"SotBE", "TDH" -- in PRESTART event
"EI", "HTTT" -- in START event
So I want to ask whether these different ways are just matter of taste, or is there some advantage in doing it one way as opposed to another?
Putting new units on the map:
"EI", "SotBE" -- in PRESTART event
"TDH" -- in START event
"HTTT" -- in SIDE tag
Recalling units:
"SotBE", "TDH" -- in PRESTART event
"EI", "HTTT" -- in START event
The three different ways of putting new units on the map are just a matter of personal preference (although doing it in the [side] tag does save one line - you don't have to specify the unit's side).
When recalling units, putting it in prestart will make them start out on the map, putting it in start will make them fade in, like when you recruit a unit.
When recalling units, putting it in prestart will make them start out on the map, putting it in start will make them fade in, like when you recruit a unit.
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