Videniofthesith Posted January 26, 2011 Share Posted January 26, 2011 Well, the last piece to the puzzle for my mod I believe. I have a NPC (aaaNirinaDracon) who in quest AAItem2 stage 30 has to follow the player back to her home near weye, then talk to her husband. I have a followpackage setup to run at that stage, the target set has the player, the location set to a map marker right outside her front door. After the quest updates when talking to her husband it is set that she should drop that package, setstage aaitem2 40 and take up a wander/eat/sleep package setup with getstage aaitem2 => 40. I got all the topics working right, only proble is she will not follow me. I know it needs a script more then likely, only I can't seem to make one work, even after following the tutorials to the best of my ability. Someone, please help! My mod is at a standstill until I can get this fixed. All help shall be placed in the special thanks of my mod! Link to comment Share on other sites More sharing options...
David Brasher Posted January 27, 2011 Share Posted January 27, 2011 If you use conditions on your packages, you don't need any scripting to accomplish your task. The location on a follow package seems to be totally irrelevant to anything that happens in the game. It would be nice to not have a location set, but if you copy and edit a package, it might have one. I have never figured out how to remove the location, but it doesn't seem to have any effect in the game so I just let it be. To get your package started in a more timely fashion, you might want to use commands like this: SetStage AAItem2 30 evp ; EValuate Package Order of the packages is very important. The program starts at the top of the list and picks the first package with conditions that are met. So if an NPC has two packages:Eat Any Any Any Any 0 Sleep Any Any Any Any 0This NPC will always eat, and will never ever sleep. So with your wander/eat/sleep package setup, you will need to put schedules or conditions on the three packages to prevent any one of them from always being in effect. So my guess would be that aaaNirinaDracon needs packages sort of like this: Wander Any Any Any Any 0 GetStage aaitem2 < 30 Editor Location Follow Player Any Any Any Any 0 GetStage aaitem2 == 30 Eat Any Any Any 6 2 Eat Any Any Any 12 2 Eat Any Any Any 18 2 Sleep Any Any Any 22 8 Wander Any Any Any Any 0 Current Location I don't really know the specifics of your mod, and how it is set up, so I don't really know what is wrong. If none of this solves your problem, I might need more information. Link to comment Share on other sites More sharing options...
Videniofthesith Posted January 28, 2011 Author Share Posted January 28, 2011 The setup for her packages are like this. NirinaEatHome Eat Any Any Any 10 3 n/a WawnetTavern Getstage AAitem2 >= 40NirinaSleepHome Sleep Any Any Any 0 7 n/a DraconHome GetStage AAitem2 >= 40NirinaWanderHome Wander Any Any Any 13 11 n/a Xmarker Getstage AAitem2 >= 40WanderSixcCampe Wander Any Any Any Any None n/a Xmarker Getstage AAitem = 30NirinaSleep Sleep Wander Any Any Any 0 7 n/a Ref:Bed Getstage AAitem = 30WanderInn Wander Wander Any Any Any Any None n/a Cell:ChorrolGareMare Getstage AAitem < 30NrinaFollowMe Follow Any Any Any Any None Object:Player N/a OnTarger(Getstage AAitem2 = 40 There is her entire AI Package, as you can see I think I got everything setup right. She does EVERYTHING right, wander at the inn, then moves to camp, then she is suppose to follow you back to her house and then begin to eat/sleep/wander there. Link to comment Share on other sites More sharing options...
Hickory Posted January 28, 2011 Share Posted January 28, 2011 Try to prioritise them like so: Follow -- Any 0 - Player == OnTarger Getstage AAitem2 = 40 Eat -- 10 3 - WawnetTavern Getstage AAitem2 >= 40Wander -- 13 11 - Xmarker Getstage AAitem2 >= 40Sleep -- 0 7 - DraconHome GetStage AAitem2 >= 40 Sleep -- 0 7 - Ref:Bed Getstage AAitem = 30Wander -- Any 0 - Xmarker Getstage AAitem = 30 Wander -- Any 0 - Cell:ChorrolGareMare Getstage AAitem < 30 Wander -- Any 0 - Near Location Link to comment Share on other sites More sharing options...
Videniofthesith Posted January 28, 2011 Author Share Posted January 28, 2011 I reordered them, but what is the bottom wander for? Mine has 7, yours has 8, Why is that one there? Link to comment Share on other sites More sharing options...
Hickory Posted January 28, 2011 Share Posted January 28, 2011 I reordered them, but what is the bottom wander for? Mine has 7, yours has 8, Why is that one there? It's a sandbox catch-all. You should always have a catch all (usually wander) as the last package, to account for any time the NPC has nothing to do. Get used to using it. Link to comment Share on other sites More sharing options...
Videniofthesith Posted January 28, 2011 Author Share Posted January 28, 2011 AH! I reordered them, didn't add the catch at the moment for the game was starting when I read your comment hickory, but I started the quest over so it would reload everything, but she STILL didn't follow me. This is the follow package I have for her. ID: aaaNirinaFollowmePackage Type: FollowFlags Checked: Must Complete, Skip Fallout Behavior and Defensive CombatConditions: GetIsd Nirina = 1 and Getstage AAItem2 = 30Target: Object ID PlayerSchedule Any Any Any Any 0 And when she is suppose to use it is in the topic Editor Id: Followme1Result Script: Setstage AAitem2 30 and evpConditions: Getstage AAitem2 = 20 and Getisd Nirina = 1 So what in the world am I doing wrong?! Link to comment Share on other sites More sharing options...
Hickory Posted January 28, 2011 Share Posted January 28, 2011 Try this: Follow PackageMust Reach LocationMust CompleteSkip Fallout Behaviour Schedule: Any Any Any Any Conditions: (GetStage Quest:AAItem2 == 30) AND (GetQuestRunning:AAItem2 == 1)Location: Near Ref: (Target location ref) Radius: 3000Target: Cell (whichever) Ref: PlayerRef Distance: 100 Link to comment Share on other sites More sharing options...
Videniofthesith Posted January 28, 2011 Author Share Posted January 28, 2011 Ok, will try that as soon as I get back from work. I will post something tomorrow afternoonish and let you know if it worked or not. Link to comment Share on other sites More sharing options...
Videniofthesith Posted January 28, 2011 Author Share Posted January 28, 2011 Thank you both SO MUCH! I got the follow package working! I had to take off the getquestrunning condition, for when that was on as soon as the stage started and before I told her to follow me, she would. Now it works! YES! Your both going into the thanks section of my mod. I believe now I only have a single scripting problem ahead, and that is writing one out for the quest. It is as follows. In the quests I have to take an item to a far off cave, kill a creature, place the item on its body and return to the npc. Sort of like the dark brotherhood quest with that imperial's finger. How would I go about that? Or can that only be done with objects and stuff? This is the turning point of the quest, so it would be HARD to change. Any help on that would be the final blow to completing this mod. I look forward to your replies. Link to comment Share on other sites More sharing options...
Recommended Posts