Jump to content

Scripts in quest question


h0rsel0ver

Recommended Posts

Hello, I'm pretty new to GECK, and I've been working on a simple mod that adds a bit of content, changes a perk, and a quest.

I've got everything working ( after spending 5 hours solving a sideways hat crisis >:S ), except for the quest.

I've been working on this for 2 days straight almost, I've done lots of googling, and I've searched this forum and the GECK wiki; forgive me if I've overlooked something!

 

Here is what I'd like to achieve: I want the quest to complete after the player has collected 3 items in any order.

 

What I'm doing: I'm using 3 separate scripts for each item that check for the other two. Here's an example of the script I'm using (I've changed the item and quest names):

scn scriptname

begin OnAdd Player

if getStage Quest < 100
	if player.GetItemCount Item1 > 0 && player.GetItemCount Item2 > 0
		setStage Quest 100
	endif
endif

end

The other 2 check for items 1 & 3, and 2 & 3 respectively.

 

What's going wrong: The quest won't complete. The script is formatted properly (I can save it), and I copy/pasted all of the IDs, so I know they're correct. I tried changed the script to trigger a message to verify it wasn't a problem with the quest, and it won't display the message either. As the formatting is correct, I can only assume that I'm either using the wrong conditionals, or that the I'm pointing to the wrong IDs with the script.

 

Can anyone provide any insight into the problem?

 

Edit: I've triple checked and verified that it's a problem with my conditionals; I just don't know what...

Edited by h0rsel0ver
Link to comment
Share on other sites

Well, I'm glad that nobody's replied - I fixed the problem!

I had one of my IDs incorrect - I copied the wrong item ID, and didn't notice (every time I checked :facepalm: ).

 

If anyone knows how to make a quest unmarked I'd love to know, but I'll probably figure it out soon. Pardon my groggy stupidity - at least I'll have a mod soon!

Link to comment
Share on other sites

  • Recently Browsing   0 members

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