Wiki RPG: Markup

From Create Your Own Story

(Difference between revisions)
m
 
(2 intermediate revisions not shown)
Line 14: Line 14:
| Normal || <pre>'''set gold = 10'''</pre> || '''set gold = 10''' || sets the variable ''gold'' to the value ''10'' <br /> <u>displays:</u> ''nothing''
| Normal || <pre>'''set gold = 10'''</pre> || '''set gold = 10''' || sets the variable ''gold'' to the value ''10'' <br /> <u>displays:</u> ''nothing''
|-
|-
-
| Normal || <pre>[[Wiki RPG: Tutorial Game: Room with Image|Room with Image]]</pre> || [[Wiki RPG: Tutorial Game: Room with Image|Room with Image]] || The player character to the ''Room with Image'' <br /> <u>displays:</u> [[Wiki RPG: Tutorial Game: Room with Image|Room with Image]]
+
| Normal || <pre>[[Wiki RPG: Foo Game: Room with Image|Room with Image]]</pre> || [[Wiki RPG: Foo Game: Room with Image|Room with Image]] || The player character goes to the ''Room with Image'' <br /> <u>displays:</u> [[Wiki RPG: Foo Game: Room with Image|Room with Image]]
|-
|-
| Normal || <pre>'''no template'''</pre> || '''no template''' || this page will ''not'' show a template page at the end <br /> <u>displays:</u> ''nothing''
| Normal || <pre>'''no template'''</pre> || '''no template''' || this page will ''not'' show a template page at the end <br /> <u>displays:</u> ''nothing''
Line 45: Line 45:
Back to [[Wiki RPG]].
Back to [[Wiki RPG]].
 +
[[Category: Wiki RPG|M]]

Current revision as of 04:45, 1 April 2007

Type of Page What you type What you see in the Wiki What happens in the game
Normal
'''print 2 + 3'''
print 2 + 3 displays: 5
Normal
'''print 2d6'''
print 2d6 displays: A random number generated by rolling two six-sided dice and adding the results (i.e. it will be between 2 and 12).
Normal
'''print name'''
print name displays: the value of the variable name
Normal
'''input name'''
input name displays: a textbox
=> What the player typed will be stored in the variable name
Normal
'''select race from ['human', 'elf', 'dwarf']'''
select race from ['human', 'elf', 'dwarf'] displays: a drop down selection with human, elf and dwarf
=> What the player selected will be stored in the variable race
Normal
'''set gold = 10'''
set gold = 10 sets the variable gold to the value 10
displays: nothing
Normal
[[Wiki RPG: Foo Game: Room with Image|Room with Image]]
Room with Image The player character goes to the Room with Image
displays: Room with Image
Normal
'''no template'''
no template this page will not show a template page at the end
displays: nothing
Template
'''template'''
template Identifies this page as a template page (template must be the first text of the page)
displays: nothing (but the template page itself will be shown on every normal or dialog page that has no no template)
Template
'''print name'''
print name displays: the value of the variable name
Dialog
'''dialog'''
dialog Identifies this page as a NPC or dialog page (dialog must be the first text of the page)
displays: nothing
Dialog
blah blah ''answer to blah blah''
blah blah answer to blah blah displays: A link where the player can choose to say 'blah blah' - to this the NPC will respond with 'answer to blah blah'
Dialog
'''end topic'''
end topic If the player chooses to say a line with end topic, the current state of the dialog will move one level up in the dialog tree
Dialog
'''end dialog'''
end dialog If the player chooses to say a line with end dialog, the dialog will stop immediately
Dialog
'''if knows_problem == "yes" foo ''bar'' '''
if knows_problem == "yes" foo bar The player can say 'foo' only if the variable knows_problem is equal to "yes"
Dialog
'''set gold = 10'''
set gold = 10 sets the variable gold to the value 10
Item
'''item'''
item Identifies this page as an item page (item must be the first text of the page)
displays: nothing
Item
; examine : This book looks nice
examine </dt>
This book looks nice</dd>
examine is the action that will be called by default when the player is on a normal page and clicks on a link to an item.
displays: A popup window with 'This book looks nice'
Item
; read : Once upon a time...
read </dt>
Once upon a time...</dd>
read will appear as one possible action in the game menu. If this action is performed on the book, then:
displays: A popup window with 'Once upon a time...'
Item
; use with [[Wiki RPG: Fire|fire]] : Oops!
use with fire </dt>
Oops!</dd>
If the action use book with fire is performed, then:

displays: A popup window with 'Oops! (not available yet)'

Back to Wiki RPG.

Personal tools