Wrayth protocol: Difference between revisions
Jump to navigation
Jump to search
(Added d) |
(→Tags) |
||
Line 35: | Line 35: | ||
| |
| |
||
*cmd - The command to send to the game (optional) |
*cmd - The command to send to the game (optional) |
||
| <d cmd='gaze'>GAZE</d> |
| <d cmd='gaze Ildran'>GAZE {self}</d> |
||
| Displays the contents as a clickable link |
| Displays the contents as a clickable link |
||
| If the command portion is omitted, will send the contents of the tag |
| If the command portion is omitted, will send the contents of the tag |
Revision as of 11:59, 18 December 2005
The StormFront protocol is the XML protocol used to pass information between the game and the StormFront front end.
Tags
Tag name | Description | Parameters | Example | Contents | Notes |
---|---|---|---|---|---|
<a> | Displays a link that is clickable to obtain a menu of interaction options or to send a command |
|
a <a exist="-26211" noun="door">heavy ironwood door</a>
<a exist="-10374531" coord="2524,1741" noun="ARMOR">ARMOR</a> |
Displays the contents as a clickable link | Does not suppress following newlines
If coord is not specified, it is a menu, and exist and noun refer to the target of the menu. If it is specified, it is a command, and the exist and noun may be used in the command. |
<clearStream> | Removes all text within the specified window |
|
<clearStream id="spellfront"/> | No contents | |
<d> | Displays a link that is clickable to send a command to the game |
|
<d cmd='gaze Ildran'>GAZE {self}</d> | Displays the contents as a clickable link | If the command portion is omitted, will send the contents of the tag |
<left>
<right> |
Changes the text of the left and right hand panels |
|
<right exist="674831" noun="dagger">dagger</right> | Sends the contents to the left or right hand panel | |
<pushBold>
<popBold> |
Makes text bold until a matching <popBold> tag |
None |
<pushBold/>You have unread news articles.<popBold/> | No contents | Does not suppress following newlines
May nest |
<pushStream>
<popStream> |
Sends text to specified window if it exists (story window instead) until next <popStream> tag |
|
<pushStream id="logons"/> * <a exist="-10374531" noun="Ildran">Ildran</a> joins the adventure. <popStream/> |
No contents | May nest |
<spell> | Changes the text of the prepared spell panel |
|
<spell exist='spell'>Spirit Warding I</spell> | Sends the contents to the prepared spell panel |
Special handling
- Tags followed by newlines suppress the newline output to the screen except where noted above.