I fixed the [TRIGGER] tag

Important things come here.
Forum rules
Only post news if you are sure they are important.
Don't bump up old news just because you liked them.
User avatar
3ICE
Admin
Posts: 2492
Joined: Sat Mar 01, 2008 11:34 pm
Realm: Europe
Account: 3ICE
Clan: 3ICE
Location: Hungary
Contact:

I fixed the [TRIGGER] tag

Unread post by 3ICE »

It no longer uses two CSS white-space properties, only one.
It finally wraps long lines, preventing overflow.

Example usage of the [TRIGGER] tag:
Melee Initialization 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)

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]
t_emp (a blank 16×16 smiley: t_emp ) can be replaced with      (a bbcode for four   - non-breaking spaces:     ) or with normal spaces.

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]
The workaround is simple: You just have to add the space back in every time you edit your post.
ImageImageImageImageImage
Image
ImageImage

User avatar
3ICE
Admin
Posts: 2492
Joined: Sat Mar 01, 2008 11:34 pm
Realm: Europe
Account: 3ICE
Clan: 3ICE
Location: Hungary
Contact:

Re: I fixed the [TRIGGER] tag

Unread post by 3ICE »

Fixed just now: line-height: 1em; to remove the ugly spacing between lines.

Before:
t_jm Line 1
t_j Line 2
After:
t_jm Line 1
t_j Line 2
ImageImageImageImageImage
Image
ImageImage

Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests