Difference between revisions of "A beginner's guide, lesson 7 - Using Scripts in Quests"
Jump to navigation
Jump to search
A beginner's guide, lesson 7 - Using Scripts in Quests (edit)
Revision as of 08:04, 2 August 2010
, 08:04, 2 August 2010→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=== | ||
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. | |||
<pre> | |||
If ( | If (GetStage BGM001 == 70) | ||
If (Player.GetInCell BGmodtSugglersCaveCOPY0000 == 1) | |||
SetStage BGM001 80 | |||
EndIf | EndIf | ||
EndIf | |||
</pre> | |||
We can also | We can also add a journal entry for stage 80: | ||
''I've | ''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 | 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 | 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 | 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 | 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 | 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> | <pre><font face=5> | ||
<font face=5 | |||
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 | 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 | |||
<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. | |||
to open his treasure chest. He wants to | |||
might turn on him. | |||
<br> | <br> | ||
Please Smith, send help.I have asked one of gang | 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 | <pre>Scriptname BGM001BrownsLetterSCRIPT | ||
Begin OnAdd Player | Begin OnAdd Player | ||
If (GetStage | If (GetStage BGM001 >= 80) | ||
SetStage | 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 | 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 | 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=== |