Difference between revisions of "Click by Click Quest Tutorial"

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search
imported>Haama
(Created)
 
imported>Darkness X
m
 
(12 intermediate revisions by 5 users not shown)
Line 1: Line 1:
WARNING: This is an Extensive, In-depth tutorial detailing every selection and entry. It is a long and tedious process.
{{Update}}
{| align=right width=80%
|<u><span style="color:#990000;">WARNING: This is an Extensive, In-depth tutorial detailing every selection and entry. It is a long and tedious process.</span></u>
'''Using this template, you will be able to create quests in which the player must find an item for an NPC, and return it to them for a reward.If this tutorial is followed Literally Click-by-Click, it will create a Fully Functional Quest with all facets of game play having been covered.Feel free to change the NPC, the item to be retrieved, and/or the Reward for returning the item to whatever your heart desires.'''
|}


== The Item ==


Using this “Template”, you will be able to create quests in which the player must find an item for an NPC, and return it to them for a reward.
In the '''Object Window'''. (The Object Window is the list of items on the left side of the editor)
Expand the '''WEAPON''' list, and then expand the "'''WEAPONS'''" list. Click on the word "'''Iron'''". Scroll down to '''WeapIronLongsword'''. Right-click on it, and select '''Edit'''. A weapon window pops up.
In the '''ID''' box type in: '''AAfamilysword'''.
In the '''Name''' box type in: '''Varnado's Family Sword'''. Click OK. Then, Click YES to create a New Form.


If this tutorial is followed Literally Click-by-Click, it will create a Fully Functional Quest with all facets of gameplay having been covered. 


Feel free to change the NPC, the item to be retrieved, and/or the Reward for returning the item to whatever your heart desires.
Open the '''Quest Editor''' (Located in the toolbar, it is the button with a big Q on it)
Right-Click in the '''EditorID''' field, select '''NEW''', and name it '''AAitem'''.
Then, for '''Quest Name''' type in '''Varnado's Sword'''. Beneath that, give it a '''Priority''' of '''60'''.
Now, click ok to exit the quest editor.


Creating a Quest Click by Click:


Open the Quest Editor
Now, open the '''Script Edit''' window by clicking on the '''little pencil icon''' in the toolbar.Click on the word '''script''', and go to '''NEW'''. Then, type in the following:


Right-Click in the EditorID field, select NEW, and name it AAitem
<pre>
ScriptName AASwordEquipScript
                   
Begin OnAdd           
  if ( GetStage AAitem == 10 )
    SetStage AAitem 20
  elseif ( GetStage AAitem == 20 )
    Return             
  else
    SetStage AAitem 15
  endif       
End
</pre>


Then, for Quest Name type in Varnado’s Sword.  Beneath that, give it a priority of 60.
Then, click on the word '''script''' again, and click '''SAVE'''.


Open the Quest Stages tab 


Right-Click in the Index field, select New, and name it 10.
Now, go back to the '''Object Window'''
Right-Click again in the Index field, select New, and name it 15.
Find our sword under iron (AAfamilysword), right-click it, and select '''EDIT'''.
Right-Click yet again in the Index field, select New, and name it 20.
In the swords '''SCRIPT''' box, use the drop down arrow to find our script ('''AASwordEquipScript'''), and select it. It will appear in the script box for the sword. Now click OK.
Right-Click once again in the Index field, select New, and name it 30.


This 10, 15, 20, and 30 are the stages of the quest.


Now we need to place the sword in the world somewhere.
(For Testing, I placed it leaning against the wall in The Feed Bag tavern, which is where Varnado goes to eat after work every day.)
Straight from this Object Window list, drag and drop the sword we made into the world somewhere (via the '''Render Window''').


STAGE 10


With Stage 10 selected, right-click in the top Log Entry field, and select NEW. The word EMPTY will appear. 
Navigate to the sword we just placed in the Render Window.
Double-Click it to edit it:


Now, Click inside the lower Log Entry box, and type in “Varnado asked me to fetch his family sword for a reward.”  Then, click inside the upper Log Entry box for this text to take effect.
A '''Reference''' window for the sword pops up.
At the bottom, place a check in the '''Persistent Reference''' box.


Now, click on the NEW button in the bottom left corner, under Conditions.  Then, under Condition Function, use the drop down arrow to select GetStage.  Now, under Function Parameters, click on the INVALID button and select AAitem.  Then, in the VALUE column, set the value to 10.
== Quest Stages ==


Now, reopen the quest editor and click on your quest, 'AAitem'.
Open the '''Quest Stages''' tab
Right-Click in the '''Index''' field, select New, and name it 10.
Right-Click again in the '''Index''' field, select New, and name it 15.
Right-Click yet again in the '''Index''' field, select New, and name it 20.
Right-Click once again in the '''Index''' field, select New, and name it 30.


STAGE 15


With Stage 15 selected, right-click in the top Log Entry field, and select NEW.  The word EMPTY will appear. 
This 10, 15, 20, and 30 are the stages of the quest:


Now, Click inside the lower Log Entry box, and type in “I stumbled upon a very articulate Longsword.  It has an inscription on it that reads, “Varnado”.  I seem to recall something about a Varnado in the Imperial City area.”  Then, click inside the upper Log Entry box for this text to take effect. 


Now, click on the NEW button in the bottom left corner, under Conditions.  Then, under Condition Function, use the drop down arrow to select GetStage.  Now, under Function Parameters, click on the INVALID button and select AAitem.  Then, in the VALUE column, set the value to 15.
=== Stage 10 ===


With '''Stage 10''' selected, right-click in the '''top Log Entry field''', and select '''NEW'''. The word EMPTY will appear.


STAGE 20
Now, Click inside the '''lower Log Entry box''', and type in "'''Varnado asked me to fetch his family sword for a reward.'''" Then, click inside the upper Log Entry box for this text to take effect.


With Stage 20 selected, right-click in the top Log Entry field, and select NEW. The word EMPTY will appear.
Now, click on the '''NEW''' button in the bottom left corner, under '''Conditions'''. Then, under '''Condition Function''', use the drop down arrow to select '''GetStage'''. Now, under '''Function Parameters''', click on the INVALID button and select '''AAitem'''. Then, in the '''VALUE''' column, set the value to 10.


Now, Click inside the lower Log Entry box, and type in “I found Varnado’s family sword.  I should return it to him for a reward.”  Then, click inside the upper Log Entry box for this text to take effect. 


Again, click on the NEW button in the bottom left, under Conditions.  Then, under Condition Function, use the drop down arrow to select GetStage.  Now, under Function Parameters, click on the INVALID button and select AAitem.  Then, in the VALUE column, set the value to 20.
=== Stage 15 ===


With Stage 15 selected, right-click in the top Log Entry field, and select NEW. The word EMPTY will appear.


STAGE 30
Now, Click inside the lower Log Entry box, and type in "'''I stumbled upon a very articulate Longsword. It has an inscription on it that reads: Varnado. I seem to recall something about a Varnado in the Imperial City area.'''" Then, click inside the upper Log Entry box for this text to take effect.


With Stage 30 selected, right-click in the top Log Entry field, and select NEW. The word EMPTY will appear.
Now, click on the NEW button in the bottom left corner, under Conditions. Then, under Condition Function, use the drop down arrow to select GetStage. Now, under Function Parameters, click on the INVALID button and select AAitem. Then, in the VALUE column, set the value to 15.


Now, Click inside the lower Log Entry box, and type in “I found and returned Varnado’s family sword.”  Then, click inside the upper Log Entry box for this text to take effect. 


Yet Again, click on the NEW button in the bottom left, under Conditions.  Then, under Condition Function, use the drop down arrow to select GetStage.  Now, under Function Parameters, click on the INVALID button and select AAitem.  Then, in the VALUE column, set the value to 30.
=== Stage 20 ===


With Stage 30 still selected, find the Complete Quest checkbox beneath Log Entry, and make sure that it is checked. This ends the Quest, and places it in the Completed Quest section of the journal.
With Stage 20 selected, right-click in the top Log Entry field, and select NEW. The word EMPTY will appear.


Open The Topics Tab (of the Quest Editor)
Now, Click inside the lower Log Entry box, and type in "'''I found Varnado's family sword. I should return it to him for a reward.'''"
Then, click inside the upper Log Entry box for this text to take effect.


Right-Click in the EditorID field, and select ADD TOPIC. A list will appear.
Again, click on the NEW button in the bottom left, under Conditions. Then, under Condition Function, use the drop down arrow to select GetStage. Now, under Function Parameters, click on the INVALID button and select AAitem. Then, in the VALUE column, set the value to 20.


INSIDE THIS LIST, right-click AGAIN and select NEW.  Name it My Family Sword. Click OK.


_________________________________
=== Stage 30 ===


With Stage 30 selected, right-click in the top Log Entry field, and select NEW. The word EMPTY will appear.


INFO 1
Now, Click inside the lower Log Entry box, and type in "'''I found and returned Varnado's family sword.'''" Then, click inside the upper Log Entry box for this text to take effect.


With the My Family Sword Topic selected:
Yet Again, click on the NEW button in the bottom left, under Conditions. Then, under Condition Function, use the drop down arrow to select GetStage. Now, under Function Parameters, click on the INVALID button and select AAitem. Then, in the VALUE column, set the value to 30.


Right-Click in the INFO field, and select NEW. A response text window will pop up.  Type in “ I seem to have misplaced my Family Sword.  Go get it for me, and I will reward you.
With Stage 30 still selected, find the '''Complete Quest''' checkbox beneath Log Entry, and make sure that it is checked. This places it in the Completed Quest section of the journal.


With that INFO selected, find the bottom-left NEW button under conditions.  Click this NEW button.  To the right of it is the Condition Function box.  Use the drop down arrow, scroll down, and select GetIsId.
== Topics ==


One more box to the right, Function Parameters is currently INVALID. Click this INVALID button, and scroll down to select Varnado.
Open The '''Topics Tab''' (of the Quest Editor)
Right-Click in the '''EditorID''' field, and select '''ADD TOPIC'''. A list will appear.
INSIDE THIS LIST, right-click AGAIN and select '''NEW'''. Name it '''MyFamilySword'''. Click OK.


Now, with that info still selected, find the bottom-left NEW button under conditions.  Click this NEW button.  To the right of it is the Condition Function box.  Use the drop down arrow, scroll down, and select GetStage.
=== Info 1 ===


One more box to the right, Function Parameters is currently INVALID. Click this INVALID button, and scroll down to select AAitem.
With the '''MyFamilySword''' Topic selected:
Right-Click in the '''INFO''' field, and select '''NEW'''. A response text window will pop up.
Type in " '''I seem to have misplaced my Family Sword. Go get it for me, and I will reward you.''' "


One box to the right, in the COMPARISON column, scroll down to the “less than” symbol ( < ).  Select it.


One more box to the right, change the VALUE to 10. Click anywhere inside Conditions field to see this change.  
With that INFO selected, find the bottom-left '''NEW''' button under '''Conditions'''. Click this NEW button. To the right of it is the '''Condition Function''' box. Use the drop down arrow, scroll down, and select '''GetIsId'''.


One more box to the right, '''Function Parameters''' is currently INVALID. Click this INVALID button, and scroll down to select '''Varnado'''.


Now go up to the Result Script box, click inside it, and type in: 
Now, with that info still selected, find the bottom-left NEW button under conditions. Click this NEW button. To the right of it is the Condition Function box. Use the drop down arrow, scroll down, and select '''GetStage'''.


SetStage AAitem 10
One more box to the right, Function Parameters is currently INVALID. Click this INVALID button, and scroll down to select '''AAitem'''.


Click the COMPILE button to the right of this box.
One box to the right, in the '''COMPARISON''' column, scroll down to the '''"less than"''' symbol ( '''<''' ). Select it.


Now, there are five little check boxes near the middle. Find the one called SAY ONCE and place a check in it.
One more box to the right, change the '''VALUE''' to 10. Click anywhere inside Conditions field to see this change.


__________________________________


Now go up to the '''Result Script''' box, click inside it, and type in:


INFO 2
<pre>
SetStage AAitem 10
</pre>


AGAIN, Right-Click in the INFO field, and select NEW.  A response text window will pop up.  Type in “ Haven’t found it?  Well, keep trying. “


With that info selected, find the bottom-left NEW button under conditions. Click this NEW button.  To the right of it is the Condition Function box.  Use the drop down arrow, scroll down, and select GetIsId.
Now, there are five little check boxes near the middle. Find the one called '''SAY ONCE''' and place a check in it.


One more box to the right, Function Parameters is currently INVALID.  Click this INVALID button, and scroll down to select Varnado.


Now, with that info still selected, find the bottom-left NEW button under conditions.  Click this NEW button.  To the right of it is the Condition Function box.  Use the drop down arrow, scroll down, and select GetStage.
=== Info 2 ===


One more box to the right, Function Parameters is currently INVALID.  Click this INVALID button, and scroll down to select AAitem.  Two boxes to the right, change the value to 10. Click anywhere inside Conditions field to see this change.  
AGAIN, Right-Click in the INFO field, and select NEW. A response text window will pop up.  


___________________________________
Type in " '''Haven't found it? Well, keep trying.''' "




INFO 3
With that info selected, find the bottom-left NEW button under conditions. Click this NEW button. To the right of it is the Condition Function box. Use the drop down arrow, scroll down, and select GetIsId.


AGAIN, Right-Click in the INFO field, and select NEW.  A response text window will pop up.  Type in “ You found my Family Sword!  Thank You.  Here is your reward for doing me such a great service.
One more box to the right, Function Parameters is currently INVALID. Click this INVALID button, and scroll down to select Varnado.


With that info selected, find the bottom-left NEW button under conditions. Click this NEW button. To the right of it is the Condition Function box. Use the drop down arrow, scroll down, and select GetIsId.
Now, with that info still selected, find the bottom-left NEW button under conditions. Click this NEW button. To the right of it is the Condition Function box. Use the drop down arrow, scroll down, and select GetStage.


One more box to the right, Function Parameters is currently INVALID. Click this INVALID button, and scroll down to select AAitem. Two boxes to the right, change the value to 10. Click anywhere inside Conditions field to see this change.


One more box to the right, Function Parameters is currently INVALID.  Click this INVALID button, and scroll down to select Varnado.


Now, with that info still selected, find the bottom-left NEW button under conditions.  Click this NEW button.  To the right of it is the Condition Function box.  Use the drop down arrow, scroll down, and select GetStage.
=== Info 3 ===


One more box to the right, Function Parameters is currently INVALID.  Click this INVALID button, and scroll down to select AAitem.  Two boxes to the right, change the value to 20. Click anywhere inside Conditions field to see this change.  
AGAIN, Right-Click in the INFO field, and select NEW. A response text window will pop up.  


Now, with that info still selected, find the bottom-left NEW button under conditions. Click this NEW button.  To the right of it is the Condition Function box.  Use the drop down arrow, scroll down, and select GetStage.
Type in " '''You found my Family Sword! Thank You. Here is your reward for doing me such a great service.''' "


One more box to the right, Function Parameters is currently INVALID.  Click this INVALID button, and scroll down to select AAitem. 


Two boxes to the right of this, change the VALUE to 15.
With that info selected, find the bottom-left NEW button under conditions. Click this NEW button. To the right of it is the Condition Function box. Use the drop down arrow, scroll down, and select GetIsId.


Just to the right of the VALUE column is a checkbox entitled "OR". Place a check in this box. Now, click anywhere inside Conditions field to see this change.


One more box to the right, Function Parameters is currently INVALID. Click this INVALID button, and scroll down to select Varnado.


Now, go up to the Result Script box, click in it, and type in:
Now, with that info still selected, find the bottom-left NEW button under conditions. Click this NEW button. To the right of it is the Condition Function box. Use the drop down arrow, scroll down, and select GetStage.
 
SetStage AAitem 30
Player.removeitem XXXXXXXX 1  (Xs = Form ID of the sword we will make later)
Player.additem 0003634D 1  (orcish boots reward…use whatever Form ID u wish)


Click the COMPILE button to the right of this box.
One more box to the right, Function Parameters is currently INVALID. Click this INVALID button, and scroll down to select AAitem. Two boxes to the right, change the value to 20. Click anywhere inside Conditions field to see this change.


NOTE:  We will make the quest sword later in this tutorial. We will need its Form ID.
Now, with that info still selected, find the bottom-left NEW button under conditions. Click this NEW button. To the right of it is the Condition Function box. Use the drop down arrow, scroll down, and select GetStage.


_______________________________________
One more box to the right, Function Parameters is currently INVALID. Click this INVALID button, and scroll down to select AAitem.


Two boxes to the right of this, change the VALUE to 15.


Just to the right of the '''VALUE''' column is a checkbox entitled "'''OR'''". Place a check in this box. Now, click anywhere inside Conditions field to see this change.Now, go up to the Result Script box, click in it, and type in:


INFO 4
<pre>
SetStage AAitem 30
Player.removeitem AAfamilysword 1
Player.additem OrcishBoots 1
</pre>


AGAIN, Right-Click in the INFO field, and select NEW.  A response text window will pop up.  Type in “ Thank you for returning my family sword.
You may replace '''OrcishBoots''' with whichever '''Editor ID''' you wish you use as a reward.


With that info selected, find the bottom-left NEW button under conditions.  Click this NEW button.  To the right of it is the Condition Function box.  Use the drop down arrow, scroll down, and select GetIsId.
=== Info 4 ===


AGAIN, Right-Click in the INFO field, and select NEW. A response text window will pop up.


One more box to the right, Function Parameters is currently INVALID.  Click this INVALID button, and scroll down to select Varnado.
Type in " '''Thank you for returning my family sword.''' "


Now, with that info still selected, find the bottom-left NEW button under conditions.  Click this NEW button.  To the right of it is the Condition Function box.  Use the drop down arrow, scroll down, and select GetStage.


One more box to the right, Function Parameters is currently INVALID. Click this INVALID button, and scroll down to select AAitem. Two boxes to the right, change the value to 30. Click anywhere inside Conditions field to see this change.  
With that info selected, find the bottom-left NEW button under conditions. Click this NEW button. To the right of it is the Condition Function box. Use the drop down arrow, scroll down, and select GetIsId.


OK. Close the Quest Editor.
One more box to the right, Function Parameters is currently INVALID. Click this INVALID button, and scroll down to select Varnado.


_________________________________________________
Now, with that info still selected, find the bottom-left NEW button under conditions. Click this NEW button. To the right of it is the Condition Function box. Use the drop down arrow, scroll down, and select GetStage.


One more box to the right, Function Parameters is currently INVALID. Click this INVALID button, and scroll down to select AAitem. Two boxes to the right, change the value to 30. Click anywhere inside Conditions field to see this change.




Open the Dialogue Editor
Now, go to the Result Script box, click in it, and type in:


Use the top-left Filter box to select Varnado.  Select the TOPICS tab.  Click on the Topic called GREETING.  Now, scroll down to the bottom of those greetings, and right click in the INFO column, select NEW.  A response window will pop up, type in “Greetings.  Welcome to the Best Defense.”, and click OK.
<pre>


Select the new INFO that we just made, and With that info selected, find the bottom-left NEW button under conditions.  Click this NEW button.  To the right of it is the Condition Function box.  Use the drop down arrow, scroll down, and select GetIsId.
Stopquest AAitem


One more box to the right, Function Parameters is currently INVALID.  Click this INVALID button, and scroll down to select Varnado.
</pre>


On the right, in the large Add Topics box, right-click and scroll down to MyFamilySword, and select it.  It should appear in that box.


Now, there are five little check boxes near the middle. Find the one called SAY ONCE and place a check in it.
OK. Close the Quest Editor.


Right click on this new INFO, and select Move To Quest.  A list will appear.  Choose our Quest name ( AAitem ).  The info will now have been moved up the list a bit.


Click OK to close out of the Dialogue Editor.
== Dialogue ==


Open the '''Dialogue Editor'''


____________________________________________
Use the top-left '''Filter''' box to select '''Varnado'''. Select the '''TOPICS''' tab. Click on the Topic called '''GREETING'''. Now, scroll down to the bottom of those greetings, and right click in the '''INFO''' column, select '''NEW'''. A response window will pop up, type in "'''Greetings. Welcome to the Best Defense.'''", and click '''OK'''.


Select the new INFO that we just made, and with that INFO selected, find the bottom-left NEW button under conditions. Click this NEW button. To the right of it is the Condition Function box. Use the drop down arrow, scroll down, and select GetIsId.


One more box to the right, Function Parameters is currently INVALID. Click this INVALID button, and scroll down to select Varnado.
Now, go up to the Result Script box, click in it, and type in:


Now to the Object Window
<pre>
AddTopic MyFamilySword
</pre>


Expand the WEAPON list, and then expand the “WEAPONS” list. Click on the word “Iron”.  Scroll down to WeapIronLongsword.  Right-click on it, and select Edit.  A weapon window pops up.
Now, there are five little check boxes near the middle. Place a check in the SAY ONCE box.


In the ID box type in:  AAfamilysword.
Right click on this new INFO, and select '''Move To Quest'''. A list will appear. Choose our Quest name ( '''AAitem''' ). The info will now have been moved up the list a bit.


In the Name box type in:  Varnado’s Family Sword.  Click OK.  Then, Click YES to create a New Form.
Click OK to close out of the Dialogue Editor.


It now appears at the top of the “iron” list.  Go to the new sword (AAfamilysword) at the top, and write down its Form ID (in the hard-to-find second column).  Replace the X’s from INFO 3 above with this Form ID.
== Quest Target ==


_________________________________________
Now, we will create '''Quest Targets''', so the player will get the little arrow map markers that guide them to their next goal.


Open the '''Quest Editor'''


Select your quest in the '''Editor ID''' field ('''AAitem''').


Now, open the Script Edit Window by clicking on the little pencil icon in the toolbar.
Now open the '''Quest Targets''' Tab


Click on the word script, and go to NEW. Then, type in the following:
Right-click in the '''Target Ref''' column, and select '''NEW'''. BadTarget will appear in the list.


Below the Quest Target Data section, find the '''Cell''' box, use the drop down arrow, and select the cell in which u placed the AAfamilysword or quest item.


ScriptName AASwordEquipScript
Below that, find the '''Ref''' box, use the drop down arrow, and select our quest item from the list of Persistent References ('''AAfamilysword''').
 
Begin OnAdd
 
if ( GetStage AAitem == 10 )
      SetStage AAitem 20
 
elseif ( GetStage AAitem ==20 )
Return
 
else
SetStage AAitem 15
 
endif
 
  endif
 
End
 
 
Then, click on the word script again, and click SAVE.  Then, click on the word script again, and click on COMPILE ALL.  Then close the script edit window.
 
 
 
Now, go back to the Object Window
 
Find our sword under “iron” (AAfamilysword), right-click it, and select EDIT.  In the SCRIPT box, use the drop down arrow to find our script (AASwordEquipScript), and select it.  It will appear in the script box for the sword.  Now click OK.
 
Drag and drop the sword we made into the world somewhere.
 
Navigate to the sword we just placed in the Render Window.  Double-Click it to edit it.  A Reference window pops up.  At the bottom, place a check in the Persistent Reference box.
 
____________________________________
 
 
Now, we will create Quest Targets, so the player will get the little arrow map markers that guide them to their next goal.
 
Open the Quest Editor
 
Select your quest in the Editor ID field (AAitem).
 
Now open the Quest Targets Tab
 
Right-click in the Target Ref column, and select NEW.  BadTarget will appear in the list.
 
Below the Quest Target Data section, find the Cell box, use the drop down arrow, and select the cell in which u placed the AAfamilysword or quest item.
 
Below that, find the Ref box, use the drop down arrow, and select the quest item from the list of Persisent References (AAfamilysword).


Now, in the bottom left corner, under conditions, click the NEW button. To the right of this button find the condition function box, and use the drop down arrow to select GetStage.
Now, in the bottom left corner, under conditions, click the NEW button. To the right of this button find the condition function box, and use the drop down arrow to select GetStage.
Line 267: Line 260:
Then, under VALUE, set the value to 10, and click anywhere in the Conditions field for this to take effect.
Then, under VALUE, set the value to 10, and click anywhere in the Conditions field for this to take effect.


___________________


AGAIN, right-click in the Target Ref column again, and select NEW. BadTarget will appear in the list again.


With '''BadTarget''' selected, go down below Quest Target Data to the '''Cell''' box, and use the drop down arrow to navigate to '''ICMarketDistrictTheBestDefense'''.


AGAIN, right-click in the Target Ref column again, and select NEW.  BadTarget will appear in the list again.
Then, beneath that, in the '''Ref''' box, use the drop down arrow, and select ''''Varnado' 'VarnadoRef''''.


With BadTarget selected, go down below Quest Target Data to the Cell box, and use the drop down arrow to navigate to ICMarketDistrictTheBestDefense.
Now, go back down to the bottom left NEW button under Conditions, and click it. Then, use the drop down arrow under Condition Function, and scroll down to GetStage.


Then, beneath that, in the Ref box, use the drop down arrow, and select ‘Varnado’ ‘Varnado Ref’.
Now, click on the INVALID button under Function Parameters, and select AAitem.


Now, go back down to the bottom left NEW button under Conditions, and click it. Then, use the drop down arrow under Condition Function, and scroll down to GetStage.
Then, to the right, in the VALUE column, set the value to 20. Click anywhere in the Conditions field for this change to take effect.


Now, click on the INVALID button under Function Parameters, and select AAitem. 


Then, to the right, in the VALUE column, set the value to 20. Click anywhere in the Conditions field for this change to take effect.
YET AGAIN, right-click in the Target Ref column again, and select NEW. BadTarget will appear in the list again.


____________________
With BadTarget selected, go down below Quest Target Data to the Cell box, and use the drop down arrow to navigate to '''ICMarketDistrictTheBestDefense'''.


Then, beneath that, in the Ref box, use the drop down arrow, and select ''''Varnado' 'VarnadoRef''''.


Now, go back down to the bottom left NEW button under Conditions, and click it. Then, use the drop down arrow under Condition Function, and scroll down to GetStage.


YET AGAIN, right-click in the Target Ref column again, and select NEW.  BadTarget will appear in the list again.
Now, click on the INVALID button under Function Parameters, and select AAitem.


With BadTarget selected, go down below Quest Target Data to the Cell box, and use the drop down arrow to navigate to ICMarketDistrictTheBestDefense.
Then, to the right, in the VALUE column, set the value to 15. Click anywhere in the Conditions field for this change to take effect.


Then, beneath that, in the Ref box, use the drop down arrow, and select ‘Varnado’ ‘Varnado Ref’.
'''That's it. You're Done!'''


Now, go back down to the bottom left NEW button under Conditions, and click it. Then, use the drop down arrow under Condition Function, and scroll down to GetStage.
== Testing ==
 
Go to The Best Defense in the Imperial City Marketplace, and talk to Varnado to receive the Quest.
Or, go get the Family Sword first, and Varnado will still Thank you, and offer you a reward for finding it.


Now, click on the INVALID button under Function Parameters, and select AAitem. 


Then, to the right, in the VALUE column, set the value to 15.  Click anywhere in the Conditions field for this change to take effect.


----
'''I hope this tutorial helped you all in some way. I know it was a bit exhausting and extensive, but I wanted to provide something for the absolute beginner to be able to follow literally Click-by-Click.


That’s it.  You’re Done!
Good Luck and Good Gaming!'''




Go to The Best Defense in the Imperial City Marketplace, and talk to Varnado to receive the Quest.
[[Category:Quest Tutorials]]
 
[[Category:Tutorials]]
Or, go get the Family Sword first, and Varnado will still Thank you, and offer you a reward for finding it.
[[Category:Getting Started]]

Latest revision as of 05:38, 12 September 2010

WARNING: This is an Extensive, In-depth tutorial detailing every selection and entry. It is a long and tedious process.

Using this template, you will be able to create quests in which the player must find an item for an NPC, and return it to them for a reward.If this tutorial is followed Literally Click-by-Click, it will create a Fully Functional Quest with all facets of game play having been covered.Feel free to change the NPC, the item to be retrieved, and/or the Reward for returning the item to whatever your heart desires.

The Item[edit | edit source]

In the Object Window. (The Object Window is the list of items on the left side of the editor) Expand the WEAPON list, and then expand the "WEAPONS" list. Click on the word "Iron". Scroll down to WeapIronLongsword. Right-click on it, and select Edit. A weapon window pops up. In the ID box type in: AAfamilysword. In the Name box type in: Varnado's Family Sword. Click OK. Then, Click YES to create a New Form.


Open the Quest Editor (Located in the toolbar, it is the button with a big Q on it) Right-Click in the EditorID field, select NEW, and name it AAitem. Then, for Quest Name type in Varnado's Sword. Beneath that, give it a Priority of 60. Now, click ok to exit the quest editor.


Now, open the Script Edit window by clicking on the little pencil icon in the toolbar.Click on the word script, and go to NEW. Then, type in the following:

ScriptName AASwordEquipScript
                    
Begin OnAdd            
  if ( GetStage AAitem == 10 )
    SetStage AAitem 20 
  elseif ( GetStage AAitem == 20 )
    Return              
  else
    SetStage AAitem 15
  endif         
End

Then, click on the word script again, and click SAVE.


Now, go back to the Object Window Find our sword under iron (AAfamilysword), right-click it, and select EDIT. In the swords SCRIPT box, use the drop down arrow to find our script (AASwordEquipScript), and select it. It will appear in the script box for the sword. Now click OK.


Now we need to place the sword in the world somewhere. (For Testing, I placed it leaning against the wall in The Feed Bag tavern, which is where Varnado goes to eat after work every day.) Straight from this Object Window list, drag and drop the sword we made into the world somewhere (via the Render Window).


Navigate to the sword we just placed in the Render Window. Double-Click it to edit it:

A Reference window for the sword pops up. At the bottom, place a check in the Persistent Reference box.

Quest Stages[edit | edit source]

Now, reopen the quest editor and click on your quest, 'AAitem'. Open the Quest Stages tab Right-Click in the Index field, select New, and name it 10. Right-Click again in the Index field, select New, and name it 15. Right-Click yet again in the Index field, select New, and name it 20. Right-Click once again in the Index field, select New, and name it 30.


This 10, 15, 20, and 30 are the stages of the quest:


Stage 10[edit | edit source]

With Stage 10 selected, right-click in the top Log Entry field, and select NEW. The word EMPTY will appear.

Now, Click inside the lower Log Entry box, and type in "Varnado asked me to fetch his family sword for a reward." Then, click inside the upper Log Entry box for this text to take effect.

Now, click on the NEW button in the bottom left corner, under Conditions. Then, under Condition Function, use the drop down arrow to select GetStage. Now, under Function Parameters, click on the INVALID button and select AAitem. Then, in the VALUE column, set the value to 10.


Stage 15[edit | edit source]

With Stage 15 selected, right-click in the top Log Entry field, and select NEW. The word EMPTY will appear.

Now, Click inside the lower Log Entry box, and type in "I stumbled upon a very articulate Longsword. It has an inscription on it that reads: Varnado. I seem to recall something about a Varnado in the Imperial City area." Then, click inside the upper Log Entry box for this text to take effect.

Now, click on the NEW button in the bottom left corner, under Conditions. Then, under Condition Function, use the drop down arrow to select GetStage. Now, under Function Parameters, click on the INVALID button and select AAitem. Then, in the VALUE column, set the value to 15.


Stage 20[edit | edit source]

With Stage 20 selected, right-click in the top Log Entry field, and select NEW. The word EMPTY will appear.

Now, Click inside the lower Log Entry box, and type in "I found Varnado's family sword. I should return it to him for a reward." Then, click inside the upper Log Entry box for this text to take effect.

Again, click on the NEW button in the bottom left, under Conditions. Then, under Condition Function, use the drop down arrow to select GetStage. Now, under Function Parameters, click on the INVALID button and select AAitem. Then, in the VALUE column, set the value to 20.


Stage 30[edit | edit source]

With Stage 30 selected, right-click in the top Log Entry field, and select NEW. The word EMPTY will appear.

Now, Click inside the lower Log Entry box, and type in "I found and returned Varnado's family sword." Then, click inside the upper Log Entry box for this text to take effect.

Yet Again, click on the NEW button in the bottom left, under Conditions. Then, under Condition Function, use the drop down arrow to select GetStage. Now, under Function Parameters, click on the INVALID button and select AAitem. Then, in the VALUE column, set the value to 30.

With Stage 30 still selected, find the Complete Quest checkbox beneath Log Entry, and make sure that it is checked. This places it in the Completed Quest section of the journal.

Topics[edit | edit source]

Open The Topics Tab (of the Quest Editor) Right-Click in the EditorID field, and select ADD TOPIC. A list will appear. INSIDE THIS LIST, right-click AGAIN and select NEW. Name it MyFamilySword. Click OK.

Info 1[edit | edit source]

With the MyFamilySword Topic selected: Right-Click in the INFO field, and select NEW. A response text window will pop up. Type in " I seem to have misplaced my Family Sword. Go get it for me, and I will reward you. "


With that INFO selected, find the bottom-left NEW button under Conditions. Click this NEW button. To the right of it is the Condition Function box. Use the drop down arrow, scroll down, and select GetIsId.

One more box to the right, Function Parameters is currently INVALID. Click this INVALID button, and scroll down to select Varnado.

Now, with that info still selected, find the bottom-left NEW button under conditions. Click this NEW button. To the right of it is the Condition Function box. Use the drop down arrow, scroll down, and select GetStage.

One more box to the right, Function Parameters is currently INVALID. Click this INVALID button, and scroll down to select AAitem.

One box to the right, in the COMPARISON column, scroll down to the "less than" symbol ( < ). Select it.

One more box to the right, change the VALUE to 10. Click anywhere inside Conditions field to see this change.


Now go up to the Result Script box, click inside it, and type in:

SetStage AAitem 10


Now, there are five little check boxes near the middle. Find the one called SAY ONCE and place a check in it.


Info 2[edit | edit source]

AGAIN, Right-Click in the INFO field, and select NEW. A response text window will pop up.

Type in " Haven't found it? Well, keep trying. "


With that info selected, find the bottom-left NEW button under conditions. Click this NEW button. To the right of it is the Condition Function box. Use the drop down arrow, scroll down, and select GetIsId.

One more box to the right, Function Parameters is currently INVALID. Click this INVALID button, and scroll down to select Varnado.

Now, with that info still selected, find the bottom-left NEW button under conditions. Click this NEW button. To the right of it is the Condition Function box. Use the drop down arrow, scroll down, and select GetStage.

One more box to the right, Function Parameters is currently INVALID. Click this INVALID button, and scroll down to select AAitem. Two boxes to the right, change the value to 10. Click anywhere inside Conditions field to see this change.


Info 3[edit | edit source]

AGAIN, Right-Click in the INFO field, and select NEW. A response text window will pop up.

Type in " You found my Family Sword! Thank You. Here is your reward for doing me such a great service. "


With that info selected, find the bottom-left NEW button under conditions. Click this NEW button. To the right of it is the Condition Function box. Use the drop down arrow, scroll down, and select GetIsId.


One more box to the right, Function Parameters is currently INVALID. Click this INVALID button, and scroll down to select Varnado.

Now, with that info still selected, find the bottom-left NEW button under conditions. Click this NEW button. To the right of it is the Condition Function box. Use the drop down arrow, scroll down, and select GetStage.

One more box to the right, Function Parameters is currently INVALID. Click this INVALID button, and scroll down to select AAitem. Two boxes to the right, change the value to 20. Click anywhere inside Conditions field to see this change.

Now, with that info still selected, find the bottom-left NEW button under conditions. Click this NEW button. To the right of it is the Condition Function box. Use the drop down arrow, scroll down, and select GetStage.

One more box to the right, Function Parameters is currently INVALID. Click this INVALID button, and scroll down to select AAitem.

Two boxes to the right of this, change the VALUE to 15.

Just to the right of the VALUE column is a checkbox entitled "OR". Place a check in this box. Now, click anywhere inside Conditions field to see this change.Now, go up to the Result Script box, click in it, and type in:

SetStage AAitem 30
Player.removeitem AAfamilysword 1
Player.additem OrcishBoots 1

You may replace OrcishBoots with whichever Editor ID you wish you use as a reward.

Info 4[edit | edit source]

AGAIN, Right-Click in the INFO field, and select NEW. A response text window will pop up.

Type in " Thank you for returning my family sword. "


With that info selected, find the bottom-left NEW button under conditions. Click this NEW button. To the right of it is the Condition Function box. Use the drop down arrow, scroll down, and select GetIsId.

One more box to the right, Function Parameters is currently INVALID. Click this INVALID button, and scroll down to select Varnado.

Now, with that info still selected, find the bottom-left NEW button under conditions. Click this NEW button. To the right of it is the Condition Function box. Use the drop down arrow, scroll down, and select GetStage.

One more box to the right, Function Parameters is currently INVALID. Click this INVALID button, and scroll down to select AAitem. Two boxes to the right, change the value to 30. Click anywhere inside Conditions field to see this change.


Now, go to the Result Script box, click in it, and type in:


Stopquest AAitem


OK. Close the Quest Editor.


Dialogue[edit | edit source]

Open the Dialogue Editor

Use the top-left Filter box to select Varnado. Select the TOPICS tab. Click on the Topic called GREETING. Now, scroll down to the bottom of those greetings, and right click in the INFO column, select NEW. A response window will pop up, type in "Greetings. Welcome to the Best Defense.", and click OK.

Select the new INFO that we just made, and with that INFO selected, find the bottom-left NEW button under conditions. Click this NEW button. To the right of it is the Condition Function box. Use the drop down arrow, scroll down, and select GetIsId.

One more box to the right, Function Parameters is currently INVALID. Click this INVALID button, and scroll down to select Varnado. Now, go up to the Result Script box, click in it, and type in:

AddTopic MyFamilySword

Now, there are five little check boxes near the middle. Place a check in the SAY ONCE box.

Right click on this new INFO, and select Move To Quest. A list will appear. Choose our Quest name ( AAitem ). The info will now have been moved up the list a bit.

Click OK to close out of the Dialogue Editor.

Quest Target[edit | edit source]

Now, we will create Quest Targets, so the player will get the little arrow map markers that guide them to their next goal.

Open the Quest Editor

Select your quest in the Editor ID field (AAitem).

Now open the Quest Targets Tab

Right-click in the Target Ref column, and select NEW. BadTarget will appear in the list.

Below the Quest Target Data section, find the Cell box, use the drop down arrow, and select the cell in which u placed the AAfamilysword or quest item.

Below that, find the Ref box, use the drop down arrow, and select our quest item from the list of Persistent References (AAfamilysword).

Now, in the bottom left corner, under conditions, click the NEW button. To the right of this button find the condition function box, and use the drop down arrow to select GetStage.

Now, under Function Parameters, click the INVALID button, and select AAitem. Click OK.

Then, under VALUE, set the value to 10, and click anywhere in the Conditions field for this to take effect.


AGAIN, right-click in the Target Ref column again, and select NEW. BadTarget will appear in the list again.

With BadTarget selected, go down below Quest Target Data to the Cell box, and use the drop down arrow to navigate to ICMarketDistrictTheBestDefense.

Then, beneath that, in the Ref box, use the drop down arrow, and select 'Varnado' 'VarnadoRef'.

Now, go back down to the bottom left NEW button under Conditions, and click it. Then, use the drop down arrow under Condition Function, and scroll down to GetStage.

Now, click on the INVALID button under Function Parameters, and select AAitem.

Then, to the right, in the VALUE column, set the value to 20. Click anywhere in the Conditions field for this change to take effect.


YET AGAIN, right-click in the Target Ref column again, and select NEW. BadTarget will appear in the list again.

With BadTarget selected, go down below Quest Target Data to the Cell box, and use the drop down arrow to navigate to ICMarketDistrictTheBestDefense.

Then, beneath that, in the Ref box, use the drop down arrow, and select 'Varnado' 'VarnadoRef'.

Now, go back down to the bottom left NEW button under Conditions, and click it. Then, use the drop down arrow under Condition Function, and scroll down to GetStage.

Now, click on the INVALID button under Function Parameters, and select AAitem.

Then, to the right, in the VALUE column, set the value to 15. Click anywhere in the Conditions field for this change to take effect.

That's it. You're Done!

Testing[edit | edit source]

Go to The Best Defense in the Imperial City Marketplace, and talk to Varnado to receive the Quest. Or, go get the Family Sword first, and Varnado will still Thank you, and offer you a reward for finding it.



I hope this tutorial helped you all in some way. I know it was a bit exhausting and extensive, but I wanted to provide something for the absolute beginner to be able to follow literally Click-by-Click.

Good Luck and Good Gaming!