Scripting a gather x items quest

Post » Sat Dec 29, 2012 8:55 am

So I'm working on one of these right now, and I'm using a quest from Riften to help me along. However, I have now hit a point that I don't know what to do. Looking at the Riften quest (http://i.imgur.com/rdb7a.png), it has custom property type which I am not able to set. I looked at a few gather quests and they all had something similar to this. I'm wondering how I go about making a property type like FFR07QuestScript, which counts to see if you have the right amount of materials. Whenever I tried to make a custom property like that, it would say it's not a recognized property and the compile would fail.
User avatar
Chris Guerin
 
Posts: 3395
Joined: Thu May 10, 2007 2:44 pm

Post » Sat Dec 29, 2012 12:56 pm

So I'm working on one of these right now, and I'm using a quest from Riften to help me along. However, I have now hit a point that I don't know what to do. Looking at the Riften quest (http://i.imgur.com/rdb7a.png), it has custom property type which I am not able to set. I looked at a few gather quests and they all had something similar to this. I'm wondering how I go about making a property type like FFR07QuestScript, which counts to see if you have the right amount of materials. Whenever I tried to make a custom property like that, it would say it's not a recognized property and the compile would fail.

Have you looked at the source code and attempted to copy how they declared the property from there?

Basically what they're doing is setting another script as their property, but you don't necessarily need to do that. If you have a script you want to reference as a property another way is to attach it to a dummy quest, and then use the following syntax

Quest Property DummyQuest autoevent OnNonsense();some nonsense(DummyQuest as DummyQuestScript).TheNameOfTheFunctionWithinThisScript(PropertyType PassedInValue);more nonsenseendEvent
User avatar
CYCO JO-NATE
 
Posts: 3431
Joined: Fri Sep 21, 2007 12:41 pm


Return to V - Skyrim