ShadowLance194 Posted July 29, 2008 Share Posted July 29, 2008 In my mod, The Ilztafein, I added 10 new races. What I want is for when you select a new race, you get a guidebook for that race in your inventory. I have written all of the guidebooks and have them in-game, I just need to know how to get them to appear in the player's inventory when he picks that race. Any help would be much appreciated, thanks! Link to comment Share on other sites More sharing options...
CompacFeedbackSystem Posted July 29, 2008 Share Posted July 29, 2008 I think you could just make a quest to associate a script with to make the script run right away. Then you could use GetPCIsRace as a condition to check for your new races and then use AddItem on the player to add the guide book. There are some decent scripting references at The Elder Scrolls Construction Set Wiki. Link to comment Share on other sites More sharing options...
LoginToDownload Posted July 29, 2008 Share Posted July 29, 2008 I would do it by creating a Quest with Initially Started checked and the usual GetIsPlayableRace condition, with something like this script attached. (Make sure it's a Quest script) scn MyGuidebookQuestScript Begin GameMode if (player.GetIsRace MyRace1) player.AddItem MyRace1Guidebook 1 elseif (player.GetIsRace MyRace2) player.AddItem MyRace2Guidebook 1 ;Repeat for races 3 through 9 elseif (player.GetIsRace MyRace10) player.AddItem MyRace10Guidebook 1 endif StopQuest MyGuidebookQuest end The problem with that script, though is that it would only work if you chose the race right at the beginning, as opposed to changing it by opening the race menu later, like at the sewer door. If you wanted the quest to keep running/checking instead of stopping, the script would go like this instead. scn MyGuidebookQuestScript short LastGuidebook ;LastGuidebook will store which of the races the player last was. ;If they're one of the races and not the one they were last, give them the appropriate book. Begin GameMode if (player.GetIsRace MyRace1 && LastGuidebook != 1) player.AddItem MyRace1Guidebook 1 set LastGuidebook to 1 elseif (player.GetIsRace MyRace2 && LastGuidebook != 2) player.AddItem MyRace2Guidebook 1 set LastGuidebook to 2 ;Repeat for races three through nine elseif (player.GetIsRace MyRace10 && LastGuidebook != 10) player.AddItem MyRace10Guidebook 1 set LastGuidebook to 10 endif end Link to comment Share on other sites More sharing options...
ShadowLance194 Posted July 29, 2008 Author Share Posted July 29, 2008 Thanks much! I'll read through some scripting tutorials so I actually understand this stuff, but I'll use that script and put you in the credits Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.