Jump to content

[LE] Help with quest scripting.


SerchBoogie

Recommended Posts

Hi everyone.

 

I'm trying to make a quest. I've followed a full tutorial about it and at this point I can use what i've learn to make the 80% of my quest. But there are two thing I need to learn and they are not covered on most tutorials i've found.

 

1.- The first part of my quest is about following an NPC (the quest giver), to a certain place on Tamriel. I have no idea of how to do this. Like the guy you have to follow to Riverwood to see his uncle at the beginning of the game. I want something like that.

 

2.- This one might be too ambitious but I really want to try it. It's a cutscene that the player will watch when he arrives to the place marked in the quest.

  • The player and the NPC arrive to the place. The quest goes to the next stage
  • Another NPC appears on scene through a portal (teleport spell effect maybe).
  • This new NPC exchanges some words with the other NPC,
  • The new NPC attacks the old NPC
  • The new NPC looks at the player and delivers a line.
  • The new NPC disappears form the scene using the portal again.
  • The scene and the quest ends there.

The player controls must be disabled through all the cutscene.

 

Can you guys help me with this?. Thanks.

Link to comment
Share on other sites

Hi everyone.

 

I'm trying to make a quest. I've followed a full tutorial about it and at this point I can use what i've learn to make the 80% of my quest. But there are two thing I need to learn and they are not covered on most tutorials i've found.

 

1.- The first part of my quest is about following an NPC (the quest giver), to a certain place on Tamriel. I have no idea of how to do this. Like the guy you have to follow to Riverwood to see his uncle at the beginning of the game. I want something like that.

 

2.- This one might be too ambitious but I really want to try it. It's a cutscene that the player will watch when he arrives to the place marked in the quest.

  • The player and the NPC arrive to the place. The quest goes to the next stage
  • Another NPC appears on scene through a portal (teleport spell effect maybe).
  • This new NPC exchanges some words with the other NPC,
  • The new NPC attacks the old NPC
  • The new NPC looks at the player and delivers a line.
  • The new NPC disappears form the scene using the portal again.
  • The scene and the quest ends there.

The player controls must be disabled through all the cutscene.

 

Can you guys help me with this?. Thanks.

Not sure how the first part works, but if you look at the quest Under Saarthal, MG02 it may give you an idea.

Link to comment
Share on other sites

You will want a scene for the last part. Scenes are fairly straight forward. They are another functional part of a quest, and used frequently by Skyrim. They are a sequence of ai packages and dialogue that trigger the next one in the sequence once they are completed (that's kinda the trick to getting them right, to determine the completion conditions). Check out the CK wiki for scenes for more description. Also, any of the mq quests have significantly descriptive scenes for reference.

 

Scenes trigger by script. You'd add a scene property, and just point to your scene and call scene.start() in your script to initiate it. For your script, I would start the scene on some readily evident transition. Like, if the player enters a trigger box at the location, call the character disabled functions, do the teleport animations, move the actor for the teleportation and then start the scene when you have validated everything.

 

The great thing about scenes is NPCs will say their dialogue on trigger exactly as commanded, and you can tell them who to look at, etc. Make your two NPCs path to header markers as the first step, then actor 2 speaks while looking at actor 1. Actor 2 attacks actor 1 with some spell action or whatever, where you can kill actor 1 or do some other dramatic event on end of the action by script -- they work just like dialogue with before and after snippets. Then, make actor 2 say dialogue and have the look target be the PC. Then, make actor 2 walk to a marker, then cast a spell, then by spell's script you trigger the portal effect, then the scene completes and you run an on end script that moves actor 2 away, and triggers the next stage. On the next stage trigger, give the player their controls back ...or before the stage transition... I tend to do return of controls on stage starts as you can set the stage by console command fairly easily which will be helpful during debug in case something goes fubar.

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...