Hey Guys,
I'm trying to add this tutorial to the WIKI, and I'm sure this is NOT where is goes, but here it is. Forward it to wherever you think it might be most helpful. Thanks... Creating a Quest Click by Click:
Open the Quest Editor, and 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.
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 20.
Right-Click yet again in the Index field, select New, and name it 30.
With the 10 selected, right-click in the top Log Entry field, and select NEW. 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. Then 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 10.
With the 20 selected, right-click in the top Log Entry field, and select NEW. 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. Then 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.
With the 30 selected, right-click in the top Log Entry field, and select NEW. 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. Then 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.
Now, open the TOPICS tab. 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 My Family Sword. Click OK.
*******************************************************************
INFO 1
With the My Family Sword Topic selected:
Right-Click in the INFO field, and select NEW. A response text window will pop up. Type in " I left my family sword outside. 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 go up to the Result Script box, click inside it, and type in: SetStage AAitem 10
Click the COMPILE button to the right of this box.
Now, there are five little check boxes near the middle. Find the one called SAY ONCE and place a check in it.
************************************************************************
INFO 2
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
AGAIN, Right-Click in the INFO field, and select NEW. A response text window will pop up. Type in " You found it! Thanks, and here is your 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.
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.
NOTE: We will make the quest sword later in this tutorial. We will need its Form ID.
Now, go up to the Result Script box, click in it, and type in:
SetStage AAitem 30
Player.removeitem XXXXXXXX 1 (Xs = Form ID of the sword we will make)
Player.additem 0003634D 1 (orcish boots reward?use whatever Form ID u wish)
Click the COMPILE button to the right of this box.
*******************************************************************
INFO 4
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.
****************************************************************
OK. Close the Quest Editor. Open the Dialogue Editor, and 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, 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.
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.
Also, with this same INFO selected, use the left and right arrow keys on your keyboard to move this INFO to the very top of the GENERIC greetings. It should be the first one in the GENERIC list.
Click OK to close out of the Dialogue Editor.
*****************************************************
Now to the Object Window. Expand the WEAPON list and 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.
It now appears at the top of this list. Go to the new sword (AAfamilysword) at the top, and write down its Form ID (second column).
******************************************
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
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 (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.
Place the sword we made in the world.
Go talk to Varnado at the Best Defense in the Imperial City Marketplace to get the quest.
*************************************************
Now, Here is how to create Quest Targets so you will get the little arrow map markers that guide you to your next goal.
Navigate to the sword we made 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.
Open the Quest Editor, and 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, 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.
Then, 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' 'Varnado Ref'.
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.
That's it. You're Done.