urza4315 Posted August 24, 2012 Share Posted August 24, 2012 Hi, I'm new to modding! How do I make a trigger for either NPC dialogue or a quest from shouting in town?Like in the game if you shout in town, either a guard will talk to you or a courier will deliver a letter to you about the location of a word of power. Link to comment Share on other sites More sharing options...
gasti89 Posted August 24, 2012 Share Posted August 24, 2012 (edited) Have your quest already started (set it as start game enabled), so you are at stage 0 when you load the mod. Ten put this script on the shout's magic effect. Location property myLocation auto Quest property myQuest auto Int property preReqStage auto Int property StageToSet auto Event OnEffectStart(Actor akTarget, Actor akCaster) if akCaster == Game.GetPlayer() if (akCaster as ObjectReference).IsInLocation(myLocation) if myQuest.GetStage() == preReqStage myQuest.SetStage(StageToSet) endif endif endif EndEvent Then just put a log entry/objective in the stage you want to set and it'll display. Or put a forcegreet package on the courier/guard with the new stage as a condition. EDIT: don't forget to fill the script properties Edited August 24, 2012 by gasti89 Link to comment Share on other sites More sharing options...
Recommended Posts