It finally wraps long lines, preventing overflow.
Example usage of the [TRIGGER] tag:
Melee Initialization
Events Map Initialization Conditions Actions Melee Game - Use melee time of day (for all players) Melee Game - Limit Heroes to 1 per Hero-type (for all players) Melee Game - Give trained Heroes a Scroll of Town Portal (for all players) Melee Game - Set starting resources (for all players) Melee Game - Remove creeps and critters from used start locations (for all players) Melee Game - Create starting units (for all players) Melee Game - Run melee AI scripts (for computer players) Melee Game - Enforce victory/defeat conditions (for all players)
Events Map Initialization Conditions Actions Melee Game - Use melee time of day (for all players) Melee Game - Limit Heroes to 1 per Hero-type (for all players) Melee Game - Give trained Heroes a Scroll of Town Portal (for all players) Melee Game - Set starting resources (for all players) Melee Game - Remove creeps and critters from used start locations (for all players) Melee Game - Create starting units (for all players) Melee Game - Run melee AI scripts (for computer players) Melee Game - Enforce victory/defeat conditions (for all players)
Code: Select all
[trigger=Melee Initialization] t_emp t_eve Events
t_emp t_emp t_all Map Initialization
t_emp t_co Conditions
t_emp t_act Actions
t_emp t_emp t_mel Melee Game - Use melee time of day (for all players)
t_emp t_emp t_mel Melee Game - Limit Heroes to 1 per Hero-type (for all players)
t_emp t_emp t_mel Melee Game - Give trained Heroes a Scroll of Town Portal (for all players)
t_emp t_emp t_mel Melee Game - Set starting resources (for all players)
t_emp t_emp t_mel Melee Game - Remove creeps and critters from used start locations (for all players)
t_emp t_emp t_mel Melee Game - Create starting units (for all players)
t_emp t_emp t_mel Melee Game - Run melee AI scripts (for computer players)
t_emp t_emp t_mel Melee Game - Enforce victory/defeat conditions (for all players)[/trigger]
Here is a reference rendering by my trigger parser: http://trigger.3ice.hu/?i=1 (iframed below)
There is a known bug: The first smiley after the [TRIGGER] tag breaks after you edit your post, because the space is removed:
Code: Select all
[trigger=Works] t_emp Works[/trigger]
[trigger=Broken]t_emp Broken[/trigger]