FalloutBeast Posted December 23, 2012 Share Posted December 23, 2012 So, I am not too good with papryus. I was able to do some things here and there with help but now I am stuck. I am trying to make a quest and have it start by courier coming to give you an item;however, after looking at WIcourier and the scripting in other quests like that, I am just confused on how to continue. Any help would be great, thanks. Link to comment Share on other sites More sharing options...
Korodic Posted December 23, 2012 Share Posted December 23, 2012 Well, I will try. For an example go into the quest MS06. You only need this line of code to use in your script "(CourierQuest as WICourierScript).AddItemToContainer(YOUROBJECTHERE)" Make sure you add CourierQuest and your object to the properties window. Getting him to say what you want requires a little more explanation. Go into WICourier quest, look at the dialogue. Then right click (my example will be letter from a friend) and then you will see his default stuff. Make sure you add the right OR/AND configuration, and add your object to the list of conditionals, which will make him say that specific line when he delivers it. Doing so is not recommended as it may cause incompatibility with other mods. You're welcome. this is quoted from my post ages ago here: http://forums.nexusmods.com/index.php?/topic/555006-getting-a-courier-to-give-you-a-letter/ Link to comment Share on other sites More sharing options...
FalloutBeast Posted December 23, 2012 Author Share Posted December 23, 2012 well thank you for the info and the quick response. Link to comment Share on other sites More sharing options...
Korodic Posted December 23, 2012 Share Posted December 23, 2012 anytime. Always spread the knowledge ;) Link to comment Share on other sites More sharing options...
FalloutBeast Posted December 23, 2012 Author Share Posted December 23, 2012 Well... i tried adding just that code but i get this error: Starting 1 compile threads for 1 files...Compiling "QF_ToD01_02005697"...c:\program files (x86)\steam\steamapps\common\skyrim\Data\Scripts\Source\temp\QF_ToD01_02005697.psc(18,1): variable CourierQuest is undefinedc:\program files (x86)\steam\steamapps\common\skyrim\Data\Scripts\Source\temp\QF_ToD01_02005697.psc(18,14): cannot cast a none to a wicourierscript, types are incompatiblec:\program files (x86)\steam\steamapps\common\skyrim\Data\Scripts\Source\temp\QF_ToD01_02005697.psc(18,53): variable ToDFlyer is undefinedNo output generated for QF_ToD01_02005697, compilation failed. Batch compile of 1 files finished. 0 succeeded, 1 failed.Failed on QF_ToD01_02005697 Link to comment Share on other sites More sharing options...
TheSkoomaKing Posted December 24, 2012 Share Posted December 24, 2012 (x86)\steam\steamapps\common\skyrim\Data\Scripts\Source\temp\QF_ToD01_02005697.psc(18,1): variable CourierQuest is undefined i think you just forgot to set properties here. That is why its undefined. Same goes for: "" (x86)\steam\steamapps\common\skyrim\Data\Scripts\Source\temp\QF_ToD01_02005697.psc(18,53): variable ToDFlyer is undefined"" set them correctly by going into quest tab, --->Script---->YourScript---->Properties-----> and there you should have them laying there :) Link to comment Share on other sites More sharing options...
Korodic Posted December 24, 2012 Share Posted December 24, 2012 Yes. If you are unsure of what "properties" are in Papyrus, they are basically variables. You can fill in values to those variables in the "properties window". If the properties are not there, it will give you errors basically saying "IDK WTF THE VARIABLE YOU JUST USED WAS DDDDAWWWWWWGGG" :thumbsup: Link to comment Share on other sites More sharing options...
FalloutBeast Posted December 24, 2012 Author Share Posted December 24, 2012 (edited) So I got the script compiled. it is this: Scriptname RoD01 extends ActorBook Property RoDFlyer01 Auto Quest Property CourierQuest Auto Event OnActivate(ObjectReference akActionRef)(CourierQuest as WICourierScript).AddItemToContainer(RoDFlyer01)EndEvent But when i go to add the fragment code for the event in the quest stage....I, well, am lost. I tried putting the (CourierQuest as WICourierScript).AddItemToContainer(RoDFlyer01), but that doesn't work. So now my question is how do i use the script i made and have it referenced and used in the quest stage. haha i really suck with papyrus :sweat: Edited December 24, 2012 by FalloutBeast Link to comment Share on other sites More sharing options...
Recommended Posts