Difference between revisions of "Template:S2 Dialogue"

From SacredWiki
Jump to navigation Jump to search
m
Line 1: Line 1:
<noinclude>
+
<noinclude>__NOTOC__
 
{|
 
{|
 
|[[File:dialog635.png]]||This template uses 76px wide by 76px high PNG Transparent PORTRAIT images of the NPC's from the dialog box in the game.  All of the PORTRAIT images of quest related NPC's have been uploaded in advance for use with this template only.  You can find all of the NPC portraits on the [[:Category:NPC Dialogue Portraits|NPC Dialogue Portraits]] page.  That page has been organized into sub categories to make it easier to find the NPC Portrait you need for your Dialogue box.  To create a new Dialogue box just go to the page where you want to add it, click once to place your cursor where you want to put the Dialogue box within the page you are editing, then press the Dialogue box button.  http://www.sacredwiki.org/extensions/WikiEditor/modules/images/toolbar/dialogue.png  Please type the NPC's text exactly as it was originally typed in the game.  It is possible that not all the NPC portrait images have been uploaded.  If you can not find the portrait you need within the [[:Category:NPC Dialogue Portraits|NPC Dialogue Portraits]] page, please let Schot know at [http://darkmatters.org/forums/index.php?/topic/21541-dialogue-template-on-sacredwiki-a-new-toy-to-play-with/ DarkMatters].
 
|[[File:dialog635.png]]||This template uses 76px wide by 76px high PNG Transparent PORTRAIT images of the NPC's from the dialog box in the game.  All of the PORTRAIT images of quest related NPC's have been uploaded in advance for use with this template only.  You can find all of the NPC portraits on the [[:Category:NPC Dialogue Portraits|NPC Dialogue Portraits]] page.  That page has been organized into sub categories to make it easier to find the NPC Portrait you need for your Dialogue box.  To create a new Dialogue box just go to the page where you want to add it, click once to place your cursor where you want to put the Dialogue box within the page you are editing, then press the Dialogue box button.  http://www.sacredwiki.org/extensions/WikiEditor/modules/images/toolbar/dialogue.png  Please type the NPC's text exactly as it was originally typed in the game.  It is possible that not all the NPC portrait images have been uploaded.  If you can not find the portrait you need within the [[:Category:NPC Dialogue Portraits|NPC Dialogue Portraits]] page, please let Schot know at [http://darkmatters.org/forums/index.php?/topic/21541-dialogue-template-on-sacredwiki-a-new-toy-to-play-with/ DarkMatters].
Line 38: Line 38:
 
</div>
 
</div>
  
Example of a completed Dialogue box:
 
  
 +
 +
 +
 +
== Basic Dialogue Box ==
 +
<div class="whitebox">
 
<nowiki>{{S2 Dialogue|</nowiki>NPC NAME=<span class="WoodElf">'''Expelled Leper'''</span>|PORTRAIT FILE NAME=<span class="WoodElf">'''dialog635'''</span>.png|DIALOGUE=<span class="WoodElf">'''Go to General Denyiw and report to him! <br /> That's all what I saw.  You should hurry.  More undead come every night.  It will be too late once they've flooded the city!'''</span><nowiki>}}</nowiki>
 
<nowiki>{{S2 Dialogue|</nowiki>NPC NAME=<span class="WoodElf">'''Expelled Leper'''</span>|PORTRAIT FILE NAME=<span class="WoodElf">'''dialog635'''</span>.png|DIALOGUE=<span class="WoodElf">'''Go to General Denyiw and report to him! <br /> That's all what I saw.  You should hurry.  More undead come every night.  It will be too late once they've flooded the city!'''</span><nowiki>}}</nowiki>
 
+
</div>
 
{{S2 Dialogue|NPC NAME=Expelled Leper|PORTRAIT FILE NAME=dialog635.png|DIALOGUE=Go to [[Sacred 2:General Denyiw|General Denyiw]] and report to him!
 
{{S2 Dialogue|NPC NAME=Expelled Leper|PORTRAIT FILE NAME=dialog635.png|DIALOGUE=Go to [[Sacred 2:General Denyiw|General Denyiw]] and report to him!
  
Line 49: Line 53:
  
  
If the NPC NAME is different from the page name created for whatever NPC you are creating a template for then you can change the NPC NAME link by adding <span class="WoodElf">'''|NPC PAGE=YOUR TEXT'''</span> to the template.  Example:
 
  
 +
== Change The Page That The NPC's Name Links To==
 +
If the NPC NAME is different from the page name created for whatever NPC you are creating a template for then you can change the NPC NAME link by adding<br />
 +
<span class="WoodElf">'''|NPC PAGE=YOUR TEXT'''</span> to the template.  Example:
 +
 +
<div class="whitebox">
 
<nowiki>{{S2 Dialogue</nowiki> <br />
 
<nowiki>{{S2 Dialogue</nowiki> <br />
 
<nowiki>|NPC NAME=Kobold Chieftain</nowiki> <br />
 
<nowiki>|NPC NAME=Kobold Chieftain</nowiki> <br />
Line 56: Line 64:
 
<nowiki>|PORTRAIT FILE NAME=Kobold-Chieftain-dialog.png</nowiki> <br />
 
<nowiki>|PORTRAIT FILE NAME=Kobold-Chieftain-dialog.png</nowiki> <br />
 
<nowiki>|DIALOGUE=Stop, hold! No hurting! You can have the Human women, take them. They wanted to clean up... ARGH! CLEAN UP! Make everything tidy! No, no, no, me no want that!}}</nowiki>
 
<nowiki>|DIALOGUE=Stop, hold! No hurting! You can have the Human women, take them. They wanted to clean up... ARGH! CLEAN UP! Make everything tidy! No, no, no, me no want that!}}</nowiki>
 +
</div>
 +
{{S2 Dialogue|NPC NAME=Kobold Chieftain|NPC PAGE=Kobold Chieftain - Happy Cow Farm|PORTRAIT FILE NAME=Kobold-Chieftain-dialog.png|DIALOGUE=Stop, hold! No hurting! You can have the Human women, take them. They wanted to clean up... ARGH! CLEAN UP! Make everything tidy! No, no, no, me no want that!}}
  
{{S2 Dialogue|NPC NAME=Kobold Chieftain|NPC PAGE=Kobold Chieftain - Happy Cow Farm|PORTRAIT FILE NAME=Kobold-Chieftain-dialog.png|DIALOGUE=Stop, hold! No hurting! You can have the Human women, take them. They wanted to clean up... ARGH! CLEAN UP! Make everything tidy! No, no, no, me no want that!}}
 
  
  
  
  
 +
== Change Text in Button ==
 
To change the "Ok" button text, add <span class="WoodElf">'''|BUTTON1=YOUR TEXT'''</span> to the template.  Example:
 
To change the "Ok" button text, add <span class="WoodElf">'''|BUTTON1=YOUR TEXT'''</span> to the template.  Example:
 
+
<div class="whitebox">
 
<nowiki>{{S2 Dialogue</nowiki> <br />
 
<nowiki>{{S2 Dialogue</nowiki> <br />
 
<nowiki>|NPC NAME=Kastagir</nowiki> <br />
 
<nowiki>|NPC NAME=Kastagir</nowiki> <br />
Line 70: Line 80:
 
<nowiki>|DIALOGUE=What are you doing here!  You're out to steal the Great Machine!<br /><br />
 
<nowiki>|DIALOGUE=What are you doing here!  You're out to steal the Great Machine!<br /><br />
 
This area is off limits to all except the guardians  There can be only FOUR!}}</nowiki>
 
This area is off limits to all except the guardians  There can be only FOUR!}}</nowiki>
 
+
</div>
 
{{S2 Dialogue|NPC NAME=Kastagir|PORTRAIT FILE NAME=dialog4057.png|BUTTON1=Go ahead, make my day!|DIALOGUE=What are you doing here!  You're out to steal the Great Machine!<br /><br />
 
{{S2 Dialogue|NPC NAME=Kastagir|PORTRAIT FILE NAME=dialog4057.png|BUTTON1=Go ahead, make my day!|DIALOGUE=What are you doing here!  You're out to steal the Great Machine!<br /><br />
 
This area is off limits to all except the guardians  There can be only FOUR!}}
 
This area is off limits to all except the guardians  There can be only FOUR!}}
Line 77: Line 87:
  
  
 +
 +
== Add a Button and Change Text of Both Buttons ==
 
To change the "Ok" button text AND add a second button with custom text, add <span class="WoodElf">'''|BUTTON1=YOUR TEXT'''</span> and <span class="WoodElf">'''|BUTTON2=YOUR TEXT'''</span> to the template.  Example:
 
To change the "Ok" button text AND add a second button with custom text, add <span class="WoodElf">'''|BUTTON1=YOUR TEXT'''</span> and <span class="WoodElf">'''|BUTTON2=YOUR TEXT'''</span> to the template.  Example:
 
+
<div class="whitebox">
 
<nowiki>{{S2 Dialogue</nowiki> <br />
 
<nowiki>{{S2 Dialogue</nowiki> <br />
 
<nowiki>|NPC NAME=Malak, Priest of Forens</nowiki> <br />
 
<nowiki>|NPC NAME=Malak, Priest of Forens</nowiki> <br />
Line 86: Line 98:
 
<nowiki>|DIALOGUE=Sacrifice to Forens and receive my blessing.<br /><br />
 
<nowiki>|DIALOGUE=Sacrifice to Forens and receive my blessing.<br /><br />
 
Here at the Rock Temple the goddesses presence can be felt, don't you agree? No? Then you must sacrifice to Forens so you can feel her presence again. Find things that will please her like clean water and maybe a beetle wing. Bring them to me and I shall bless you.}}</nowiki>
 
Here at the Rock Temple the goddesses presence can be felt, don't you agree? No? Then you must sacrifice to Forens so you can feel her presence again. Find things that will please her like clean water and maybe a beetle wing. Bring them to me and I shall bless you.}}</nowiki>
 
+
</div>
 
{{S2 Dialogue|NPC NAME=Malak, Priest of Forens|PORTRAIT FILE NAME=dialog420.png|BUTTON1=Accept|BUTTON2=Decline|DIALOGUE=Sacrifice to Forens and receive my blessing.<br /><br />
 
{{S2 Dialogue|NPC NAME=Malak, Priest of Forens|PORTRAIT FILE NAME=dialog420.png|BUTTON1=Accept|BUTTON2=Decline|DIALOGUE=Sacrifice to Forens and receive my blessing.<br /><br />
 
Here at the Rock Temple the goddesses presence can be felt, don't you agree? No? Then you must sacrifice to Forens so you can feel her presence again. Find things that will please her like clean water and maybe a beetle wing. Bring them to me and I shall bless you.}}
 
Here at the Rock Temple the goddesses presence can be felt, don't you agree? No? Then you must sacrifice to Forens so you can feel her presence again. Find things that will please her like clean water and maybe a beetle wing. Bring them to me and I shall bless you.}}
 
 
</noinclude>
 
</noinclude>
 
<includeonly><div id="dialogue"><div class="name-tag">[[Sacred 2:{{{NPC NAME}}}|{{{NPC NAME}}}]]</div><div class="portrait">[[File:{{{PORTRAIT FILE NAME|NoPicDialog.png}}}]]<div id="portraitframe">[http://www.sacredwiki.org/index.php/File:{{{PORTRAIT FILE NAME|NoPicDialog.png}}} http://www.sacredwiki.org/images/blank.png]</div></div><div style="display:inline-block;width:410px;">{{{DIALOGUE}}}</div><div class="buttons">{{#if: {{{BUTTON2|}}}|<div class="button2">{{{BUTTON2}}}</div>}} {{#if: {{{BUTTON1|}}}|<div class="button1">{{{BUTTON1}}}</div>|<div class="button1">Ok</div>}}</div><div id="botrightdialog"></div><div id="botleftdialog"></div><div id="toprightdialog"></div><div id="topleftdialog"></div></div></includeonly>
 
<includeonly><div id="dialogue"><div class="name-tag">[[Sacred 2:{{{NPC NAME}}}|{{{NPC NAME}}}]]</div><div class="portrait">[[File:{{{PORTRAIT FILE NAME|NoPicDialog.png}}}]]<div id="portraitframe">[http://www.sacredwiki.org/index.php/File:{{{PORTRAIT FILE NAME|NoPicDialog.png}}} http://www.sacredwiki.org/images/blank.png]</div></div><div style="display:inline-block;width:410px;">{{{DIALOGUE}}}</div><div class="buttons">{{#if: {{{BUTTON2|}}}|<div class="button2">{{{BUTTON2}}}</div>}} {{#if: {{{BUTTON1|}}}|<div class="button1">{{{BUTTON1}}}</div>|<div class="button1">Ok</div>}}</div><div id="botrightdialog"></div><div id="botleftdialog"></div><div id="toprightdialog"></div><div id="topleftdialog"></div></div></includeonly>

Revision as of 02:49, 23 February 2014

Dialog635.png This template uses 76px wide by 76px high PNG Transparent PORTRAIT images of the NPC's from the dialog box in the game. All of the PORTRAIT images of quest related NPC's have been uploaded in advance for use with this template only. You can find all of the NPC portraits on the NPC Dialogue Portraits page. That page has been organized into sub categories to make it easier to find the NPC Portrait you need for your Dialogue box. To create a new Dialogue box just go to the page where you want to add it, click once to place your cursor where you want to put the Dialogue box within the page you are editing, then press the Dialogue box button. dialogue.png Please type the NPC's text exactly as it was originally typed in the game. It is possible that not all the NPC portrait images have been uploaded. If you can not find the portrait you need within the NPC Dialogue Portraits page, please let Schot know at DarkMatters.


Find the NPC portrait image you need from the NPC Dialogue Portraits page:

  1. Go to the page you want to put the Dialogue box and click the Edit button near the top right of the page
  2. Click within the text of the page in the area where you want to put the Dialogue box and then click the Dialogue button dialogue.png
  3. After clicking dialogue.png, the following text will appear:
{{S2 Dialogue|NPC NAME=NPCNAME|PORTRAIT FILE NAME=NoPicDialog.png|DIALOGUE=TYPEtextHERE}}


  1. Replace NPCNAME with the exact name of the NPC
  2. Replace NoPicDialog with the name of the NPC image
  3. Replace TYPEtextHERE with the NPC's dialogue


{{S2 Dialogue|NPC NAME=NPCNAME|PORTRAIT FILE NAME=NoPicDialog.png|DIALOGUE=TYPEtextHERE}}



Basic Dialogue Box

{{S2 Dialogue|NPC NAME=Expelled Leper|PORTRAIT FILE NAME=dialog635.png|DIALOGUE=Go to General Denyiw and report to him!
That's all what I saw. You should hurry. More undead come every night. It will be too late once they've flooded the city!
}}

Dialog635.png
blank.png
Go to General Denyiw and report to him! That's all what I saw. You should hurry. More undead come every night. It will be too late once they've flooded the city!
Ok



Change The Page That The NPC's Name Links To

If the NPC NAME is different from the page name created for whatever NPC you are creating a template for then you can change the NPC NAME link by adding
|NPC PAGE=YOUR TEXT to the template. Example:

{{S2 Dialogue
|NPC NAME=Kobold Chieftain
|NPC PAGE=Kobold Chieftain - Happy Cow Farm
|PORTRAIT FILE NAME=Kobold-Chieftain-dialog.png
|DIALOGUE=Stop, hold! No hurting! You can have the Human women, take them. They wanted to clean up... ARGH! CLEAN UP! Make everything tidy! No, no, no, me no want that!}}

Kobold-Chieftain-dialog.png
blank.png
Stop, hold! No hurting! You can have the Human women, take them. They wanted to clean up... ARGH! CLEAN UP! Make everything tidy! No, no, no, me no want that!
Ok



Change Text in Button

To change the "Ok" button text, add |BUTTON1=YOUR TEXT to the template. Example:

{{S2 Dialogue
|NPC NAME=Kastagir
|PORTRAIT FILE NAME=dialog4057.png
|BUTTON1=Go ahead, make my day!
|DIALOGUE=What are you doing here! You're out to steal the Great Machine!<br /><br /> This area is off limits to all except the guardians There can be only FOUR!}}

Dialog4057.png
blank.png
What are you doing here! You're out to steal the Great Machine!

This area is off limits to all except the guardians There can be only FOUR!
Go ahead, make my day!



Add a Button and Change Text of Both Buttons

To change the "Ok" button text AND add a second button with custom text, add |BUTTON1=YOUR TEXT and |BUTTON2=YOUR TEXT to the template. Example:

{{S2 Dialogue
|NPC NAME=Malak, Priest of Forens
|PORTRAIT FILE NAME=dialog420.png
|BUTTON1=Accept
|BUTTON2=Decline
|DIALOGUE=Sacrifice to Forens and receive my blessing.<br /><br /> Here at the Rock Temple the goddesses presence can be felt, don't you agree? No? Then you must sacrifice to Forens so you can feel her presence again. Find things that will please her like clean water and maybe a beetle wing. Bring them to me and I shall bless you.}}

Dialog420.png
blank.png
Sacrifice to Forens and receive my blessing.

Here at the Rock Temple the goddesses presence can be felt, don't you agree? No? Then you must sacrifice to Forens so you can feel her presence again. Find things that will please her like clean water and maybe a beetle wing. Bring them to me and I shall bless you.
Decline
Accept