Editing A beginner's guide, lesson 7 - Using Scripts in Quests

Jump to navigation Jump to search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.

Latest revision Your text
Line 510: Line 510:
===Dressing the Dungeon===
===Dressing the Dungeon===


Ok, let’s add some bits to help move our story forward. First, let's write a piece of script in the main quest script's ''GameMode'' block to update the quest stage when the player enters the hideout.
Okay, let’s add some bits to help move our story forward. First let’s add an Xmarkerheading close to the interior door. We can then use the marker as a reference in an addition to our growing quest script.


<pre>
  If (GetStage BGM001 == 70)
If (GetStage BGM001 == 70)
     If (player.GetDistance BGRRCaveMarkerRef <= 300)
     If (Player.GetInCell BGmodtSugglersCaveCOPY0000 == 1)
      SetStage BGM001 80
          SetStage BGM001 80
     EndIf
     EndIf
EndIf
  EndIf
</pre>


We can also add a journal entry for stage 80:
We can also update the Journal


''I've arrived at the Red Rose Brigade's hideout. If those thieves stole the deed and house key, I should find them here.''
''I've Arrived at the Red Rose Brigades Hideout. I will need to move cautiously. I need that house key.''


Although this first chamber is quite large, I have decided to limit the threat to a single small random creature: a rat or a crab (''LL0NuissanceBeast100''). Why? Two reasons: I want to be able to escalate my threat, and I want to build suspense.
Although this first chamber is quite large, I have decided to limit the threat to a single small random creature, a rat or a crab (LL0NuissanceBeast100). Why? Two reasons I want to be able to escalate my threat and I want to build suspense.


One of the design choices you will have to make is how to balance risk against reward. You should also try to escalate the threat as the story progresses. For instance, it would be very easy to throw five or six Daedra into the first chamber of our dungeon. But where do you go from there? If you start with too big a threat then you have little room to escalate that threat later. Also, try to give a little thought to the user who has minimum specifications. I’ve seen a few works in progress where they have designed a really cool crypt with 30 or so monsters in it. But I know that on my poor little PC, I’ll get a frame rate of about 3 frames per week. This is not a mod I'll be playing. Bigger doesn’t mean better, more is sometimes less.
One of the design choices you will have to make is how to balance threat against reward. You should also try to escalate the threat as the story progresses. For instance it would be very easy to throw five or six deadra into the first chamber of our dungeon. However, the question is then where do we go from there. If you start with too big a threat then, you have little room to escalate that threat later. Also try to give a little thought to the user who has minimum specifications. I’ve seen a few works in progress where they have designed a really cool crypt with 30 or so monsters in it. But I know that on my poor little PC, I’ll get a frame rate of about 3 frames a week. Consequently this is not a mod I’ll be playing. Bigger doesn’t mean better, more is sometimes less.  


The player is also expecting to meet bad guys. Hopefully he will edge his character down into the first chamber fully expecting an army of trolls. I want to disappoint him. I want him to start to think this is easy before we hit him/her with the big stuff.
The player is also expecting to meet bad guys, hopefully he will edge his character down into the first chamber fully expecting an army of trolls. I want to disappoint him. I want him to start to think this is easy before we hit him/her with the big stuff.


I also want to set the scene a little. For this I created another corpse, and placed a letter near it which informs the player about the special treasure chest and Brown's imprisonment.
I also want to set the scene a little. For this I created another corpse, and placed near it a letter which informs them about the special treasure chest and Brown's imprisonment.


Make the corpse and the letter. I also added a leveled nuisance creature at the far end of the chamber, so that the player will have to deal with the annoyance of a one hit kill creature after picking up the letter.
Make a corpse and the letter. Don’t give the corpse too much inventory, after all this is a freebee. I also added a leveled nuisance creature at the far end of the chamber; this should allow the PC to get to the corpse and then have to deal with the annoyance of a one hit kill creature.


The text for the letter is:
The text for the letter is
<pre><font face=5>
<pre><br>
<font face=5><br>
Dear Smith,
Dear Smith,
<br>
<br>
<br>
<br>
I beg of you, please help me. Blair has gone mad. I have been imprisoned.<br>
I beg of you, please help me. Blair has gone mad. I have been imprisoned<br>
<br>
<br>
It all began when we attacked the White Horse Courier near Chorrol.
It all began when we attacked the White Horse Courier near Chorrol.
It was supposed to be a simple robbery. But when Blair found out that the only loot was a key and a house deed he went berserk.  
It was supposed to be a simple robbery. But when Blair found that the only treasure
was a key to a house and a deed which had to be registered in the Imperial City he went beserk.  
<br>
<br>
He killed the courier in cold blood. I wanted no part of it.<br>
He killed the courier in cold blood. I wanted no part of it.<br>
I suggested the gang might do better with me in charge. He accused me of being a
I suggested the gang might do better with me in charge. He accused me of being a
double-agent for our rivals, the Torch Gang. Now he's had me locked up because I know how to open his treasure chest. He wants to kill me but he fears the other gang members might turn on him.
member of our rivals, the Torch Gang. Now he's had me locked up because I know how
to open his treasure chest. He wants to kill me but he fears the other gang members
might turn on him.
<br>
<br>
Please Smith, send help. I have asked one of the gang members who's loyal to me to take this letter to you. I hope he makes it. Blair is watching my every move.
Please Smith, send help.I have asked one of gang member loyal to me to take this
letter to you. I hope he makes it. Blair is watching my every move.
<br>
<br>
<br>
<br>
Your old friend,<br>
Your old friend,
<br>
Brown</pre>
Brown</pre>


We make and add the following script to the letter
We make and add the following script to the letter


<pre>Scriptname BGM001BrownsLetterSCRIPT
<pre>Scriptname BGM001BrownScript


Begin OnAdd Player
Begin OnAdd Player


   If (GetStage BGM001 >= 80)
   If (GetStage BGm001>= 80)
     SetStage BGM001 90
     SetStage BGm001 90
   EndIf
   EndIf


End</pre>
End</pre>


Again we can bump the stage and enter another journal entry for stage 90:
Again we can bump the stage and enter another journal entry for stage 90


''I have found a letter from Brown. It appears the Red Rose leader has imprisoned him. Brown has knowledge of a secret treasure. I should try to talk to him.''
''I have found a letter from Brown. It appears the Red Rose leader has imprisoned him. Brown has knowledge of a secret treasure. I should try to talk to him.''


Finally, I messed about with the lighting to try to create a little more atmosphere. Clearly, caves should be darker than the outside world. Try to use spot lights to pick out areas you want the PC to notice and to hide threats that you want to be a surprise.
Finally I messed about with the lighting, to try to create a little more atmosphere. Clearly caves should be darker than the normal world. Try to use spot lights to pick out the bit you want the PC to see and to hide threats you want to be a surprise.


The second chamber will contain a single NPC. We want all the Red Rose Brigade NPC’s to act as a team. How? With Factions.
The second chamber will contain a single NPC. We want all the Red Rose Brigade NPC’s to act as a team. How? Factions are the answer.


===Factions===
===Factions===

Please note that all contributions to the Oblivion ConstructionSet Wiki are considered to be released under the Creative Commons Attribution-ShareAlike (see CSwiki:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

Cancel Editing help (opens in new window)

Templates used on this page: