Wiki RPG: Markup

From GPWiki

Files:GUITutorial_warn.gif The Game Programming Wiki has moved! Files:GUITutorial_warn.gif

The wiki is now hosted by GameDev.NET at wiki.gamedev.net. All gpwiki.org content has been moved to the new server.

However, the GPWiki forums are still active! Come say hello.

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 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: Tutorial Game: Central Room|Central Room]]
Room with Image The player character 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
This book looks nice
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
Once upon a time...
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
Oops!
If the action use book with fire is performed, then:

displays: A popup window with 'Oops!'

Back to Wiki RPG