Difference between revisions of "A beginner's guide, lesson 7 - Using Scripts in Quests"

Jump to navigation Jump to search
→‎Dressing the Dungeon: Editing English and some script
imported>Pyrocow2
(→‎Dungeon Design Ideas: editing English)
imported>Pyrocow2
(→‎Dressing the Dungeon: Editing English and some script)
Line 504: Line 504:
===Dressing the Dungeon===
===Dressing the Dungeon===


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.
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.


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


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


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


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 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.  
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.


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 near it a letter which informs them 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 a letter near it which informs the player about the special treasure chest and Brown's imprisonment.


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.
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.


The text for the letter is
The text for the letter is:
<pre><br>
<pre><font face=5>
<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 that the only treasure
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.  
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
member of our rivals, the Torch Gang. Now he's had me locked up because I know how
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.
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 gang member loyal to me to take this
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.
letter to you. I hope he makes it. Blair is watching my every move.
<br>
<br>
<br>
<br>
Your old friend,
Your old friend,<br>
<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 BGM001BrownScript
<pre>Scriptname BGM001BrownsLetterSCRIPT


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 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.
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.


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.
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.


===Factions===
===Factions===
Anonymous user

Navigation menu