Problem with Quest Aliases

Post » Tue Jun 19, 2012 5:06 am

I've been attempting to reconstruct the Courier world events, and I've had success using AddItemToContainer, but I've been unable to use AddAliasToContainer. According to its script, it's simply grabbing the RefID of the appropriate alias, but it seems my item alias isn't being properly created. The Courier should deliver the alias Key, Alias_Key, which is created in the container alias StrongBox, or Alias_StrongBox. The alias Book should also be created in the alias StrongBox, but this doesn't occur either. Both items should be added, the key moved to the Courier, so the player can retrieve the book. The result is that the Courier appears, gives no item to the player, and the Strong Box is empty. Everything I've writted is modeled after quests that already exist, such as DA07.

As far as I know, the quest aliases should fire when the quest begins, creating and/or applying to whichever actors and objects are defined. The quest begins, both silently to activate the courier, then officially when the key changes containers to the player. Currently, the quest is activated by on OnInit even attached to the quest, itself. I'm using pQuest.SetStage(0), because pQuest.Start() didn't work. Would this not cause the aliases to fire? At one point I could leave Start Game Enabled ticked and have it activate properly, but after adding to the quest this no longer function, so the OnInit even was necessary.

I also attempted to begin the quest through the Story Manager, which didn't work. The event was set to On Location Change, and the quest was added to the Story Manager. I moved the particular node to the top of the stack, left shared ticked, and set conditions to check that the quest had not begun and was not already completed. I would expect the quest to begin on one change location event, and the courier to activate on the second, but neither of these occured. I added a debug.message box to the first stage and it didn't fire, so I believe the quest wasn't properly starting on the event.

All I'm trying to do is start a quest the moment the player loads into the game. On the first stage a courier is activated and should deliver an alias, which activates the next stage upon changing containers. If anybody knows of a better way to execute this, I would love to know.

Thanks
User avatar
Ells
 
Posts: 3430
Joined: Thu Aug 10, 2006 9:03 pm

Post » Mon Jun 18, 2012 5:53 pm

I don't specifically have any answers, but I just got a mod working that has a quest started by the story manager on location change events, and has another quest that uses aliases. Maybe looking at it would help? You can look at what I put in the SM Event Node and UBGLocationChangedQuest. The mod is Unread Books Glow.

Also note that Location != cell. For example, there is no LocationChanged event fired when you go from outside the front door of High Hrothgar to inside High Hrothgar. I still don't quite understand what's going on there.
User avatar
cheryl wright
 
Posts: 3382
Joined: Sat Nov 25, 2006 4:43 am


Return to V - Skyrim