Need help with scripting quest

Post » Sun Feb 13, 2011 8:25 am

Hi, basically i'm new to making quests and i've pretty much made all objects for it but i'm having a lot of trouble scripting it. This post is mainly about questions and if someone could give me scripts i could use for my mod. Ive been following the tutorials on the wiki but the CS is still giving me trouble FYI.
*And for all people who give me helpful info i will be mentioning in the finished product.*

1. I've been trying to make a map marker for my location but whenever I drag it to the render window its invisible but it says that its their in the list. I need help fixing this.

2. The starting part of the quest is that "you find a help wanted poster floating in the wind" and it puts it in your inventory but its repeating every 5 secs (which i know why, but i cant remember the scripting for doing it only once.) So if someone could post a script for this that would be great.

3. This is probably the most irritating at the moment. The npc that gives the player the quest in the beginning is INVISIBLE!!! I dont know how but he just is. hes not like invisible invisible just like full chameleon. I don't know how to fix this cuz i didnt give him any abilities to use like that. in Render window hes fine just not in real time play.

4. for one of the first bosses of my quest I want the player to beable to talk to him first and then fight after the conversation. How do I do this?

Thank you to anyone who can help me.
User avatar
u gone see
 
Posts: 3388
Joined: Tue Oct 02, 2007 2:53 pm

Post » Sun Feb 13, 2011 8:27 pm

1. I've been trying to make a map marker for my location but whenever I drag it to the render window its invisible but it says that its their in the list. I need help fixing this.


It sounds like you have the markers turned off in the CS. Select the Render Window and press M to toggle them back on. You may also find http://cs.elderscrolls.com/constwiki/index.php/Shortcuts handy.

2. The starting part of the quest is that "you find a help wanted poster floating in the wind" and it puts it in your inventory but its repeating every 5 secs (which i know why, but i cant remember the scripting for doing it only once.) So if someone could post a script for this that would be great.


That depends on how you add it to the Player's inventory. I'm assuming you're using a quest script for this. If so, you need to put the line StopQuest QuestID after the part where the poster is added.

3. This is probably the most irritating at the moment. The npc that gives the player the quest in the beginning is INVISIBLE!!! I dont know how but he just is. hes not like invisible invisible just like full chameleon. I don't know how to fix this cuz i didnt give him any abilities to use like that. in Render window hes fine just not in real time play.


If you created him by duplicating an original NPC, he may have an AI package that makes him go somewhere else. Cast a Detect Life spell when you are in the ares he's supposed to be in. If you can't see him, he isn't there.


4. for one of the first bosses of my quest I want the player to be able to talk to him first and then fight after the conversation. How do I do this?



Set his aggression to be very low, then use StartCombat Player is a dialogue result script.
User avatar
Lilit Ager
 
Posts: 3444
Joined: Thu Nov 23, 2006 9:06 pm

Post » Sun Feb 13, 2011 10:41 pm

2. The starting part of the quest is that "you find a help wanted poster floating in the wind" and it puts it in your inventory but its repeating every 5 secs (which i know why, but i cant remember the scripting for doing it only once.) So if someone could post a script for this that would be great.


Use a "doonce"

In your quest script, declare a short variable "doonce."

Then when you add the poster to inventory, do this:

if doonce != 1
player.additem poster 1
set doonce to 1
endif

This way it will only happen once. Use this if you can't stop the quest.
User avatar
Sophie Louise Edge
 
Posts: 3461
Joined: Sat Oct 21, 2006 7:09 pm

Post » Sun Feb 13, 2011 4:42 pm

1. I've been trying to make a map marker for my location but whenever I drag it to the render window its invisible but it says that its their in the list. I need help fixing this.

Another possibility for this is that it's either way up in the air, waiting to be dropped to the ground, or else you dropped it while you were viewing at an angle, and it didn't land where you were looking. Double-clicking it in the list will refocus the render window on it. If it's still invisible, hit the M key as previously suggested. If you can see it, (and it's not where you thought it would be) just hit F for fall to drop it, or drag it around to the right place - it's already the selected object.
User avatar
joannARRGH
 
Posts: 3431
Joined: Mon Mar 05, 2007 6:09 am


Return to IV - Oblivion