Linedef type 459, Control Text Prompt, is a type of linedef executor which, when triggered, opens a text prompt.
Setup
If Flag [1] / Block Enemies is set, any currently open text prompt is closed. Otherwise, a new text prompt is opened. The control linedef's front X offset determines the number of the prompt that is opened. The front Y offset determines the page number of the first page in the prompt that is displayed. If Flag [15] / Transfer Line is set, the prompt is identified via a named tag that is written across the control linedef's front textures instead. The name in the front textures must match the Tag
field of the page that should be opened.
The text prompt is only displayed for the player that triggered the linedef executor. The controls of that player are disabled while the prompt is displayed, unless Flag [7] / No Midtexture Skew / Effect 2 is set.
If Flag [5] / Slope Skew / Effect 1 is set, a linedef executor is triggered once the opened text prompt closes. If the control linedef is one-sided, the tag of the trigger linedef that is called is determined by the control linedef's tag. Otherwise, it is determined by the back X offset.
Linedef special info
|
|
Linedef tag
|
Tag of trigger linedef to call upon closing (if [5] Slope Skew / Effect 1 is set and linedef is one-sided)
|
|
Front upper texture
|
Prompt name (if [15] Transfer Line is set)
|
|
Front middle texture
|
Prompt name, continued (if [15] Transfer Line is set)
|
|
Front lower texture
|
Prompt name, continued (if [15] Transfer Line is set)
|
|
Front texture X offset
|
Prompt number (unless [15] Transfer Line is set)
|
|
Front texture Y offset
|
Page number (unless [15] Transfer Line is set)
|
|
Back texture X offset
|
Tag of trigger linedef to call upon closing (if [5] Slope Skew / Effect 1 is set and linedef is two-sided)
|
|
Linedef flags
|
[5] Slope Skew / Effect 1: Run linedef executor on closing [7] No Midtexture Skew / Effect 2: Don't disable player controls [1] Block Enemies: Close existing text prompt [15] Transfer Line: Call prompt via named tag
|
|
Sample
- Example file: ex_ld459_controltextprompt.wad (MAP01)
How to use |
---|
- You may load this file into your favorite map editor, such as Zone Builder. Select
MAP01 as the map to load.
- You may also load this file in the game:
- Save
ex_ld459_controltextprompt.wad into the addons folder of your SRB2 directory.
- Start SRB2, go to the Addons menu, and then select
ex_ld459_controltextprompt.wad .
- Start the game in Single Player mode.
- Press the Console button (
~ ), and type in the command MAP MAP01 to access the example map.
- When you load this file in the game, it replaces Greenflower Zone Act 1.
|