ToastedBaby Posted August 13, 2015 Share Posted August 13, 2015 I'm trying to add a script to my companion that checks his inventory for a repair book AND a repair magazine. If he has them, then it switches the quest status and makes it so it will increase his Repair by 5 for every magazine you give him henceforth. I thought I got the script down OK, but the GECK doesn't like it and I'm still new to scripting, so I'm reaching out to you for help. Quest Status 2 is looking for book and mag, and then if found, switches status to 1 to check for magazines from here on out. short bCheckedOnce; float fLastCheckHour; short nLastCheckDay; BEGIN MenuMode 1008 if (GameHour > fLastCheckHour || GameDaysPassed > nLastCheckDay) set fLastCheckHour to GameHour; set nLastCheckDay to GameDaysPassed; if TBCourierRepairQuest.Status == 2 && GetItemCount MagazineNVRepair > 0 && GetItemCount BookSkillRepair > 0 ShowMessage TBCourierRepairAvailableMessage RemoveItem MagazineNVRepair 1 RemoveItem BookSkillRepair 1 set TBCourierRepairQuest.Status to 1 evp endif if TBCourierRepairQuest.Status == 1 && GetItemCount MagazineNVRepair > 0 ShowMessage TBCourierRepairIncreaseMessage modav Repair 5 RemoveItem MagazineNVRepair 1 evp endif endif End Link to comment Share on other sites More sharing options...
Recommended Posts