Lordspence Posted August 13, 2012 Share Posted August 13, 2012 Hey guys, I know I'm waaay late to the game here, and also probably proving to you all conclusively the extent of my stupidity, but I can't find a solution to this anywhere. I'm trying to create a mod that adds some modified items to the player's inventory upon startup. So far all I've got is to make a priority 100 quest with the script: Begin GameMode player.additem ......... 1 player.additem ......... 1 End The quest condition I set in addition to the script was GetIsPlayableRace NONE == 1, which I gather is the sandbox quest condition. Tell me what I'm doing wrong? And some advice on how to fix it would be nice Thanks. Link to comment Share on other sites More sharing options...
Vagrant0 Posted August 13, 2012 Share Posted August 13, 2012 Hey guys, I know I'm waaay late to the game here, and also probably proving to you all conclusively the extent of my stupidity, but I can't find a solution to this anywhere. I'm trying to create a mod that adds some modified items to the player's inventory upon startup. So far all I've got is to make a priority 100 quest with the script: Begin GameMode player.additem ......... 1 player.additem ......... 1 End The quest condition I set in addition to the script was GetIsPlayableRace NONE == 1, which I gather is the sandbox quest condition. Tell me what I'm doing wrong? And some advice on how to fix it would be nice Thanks.For which game? For Oblivion atleast, quest scripts don't run unless the quest they are tied to is running. In most cases this can easily be achieved by having the quest have a stage 0, 1, and 100 with a startgame enabled quest. For the quest, don't assign any conditions, but instead use the stages as a means of triggering the script. Meaning that in the result script for stage 0, you have: Setstage <questname> 1 For stage 1 you have: player.additem ......... 1player.additem ......... 1Setstage <questname> 100 For stage 100 you have: Complete quest Or something like this, or just having it in the main quest script: begin gamemode if getstage.questname == 0setstage questname 1elseif getstage.questname == 1player.additem ......... 1player.additem ......... 1setstage questname 100endifend the main function of this script is to not only force the quest to run, but also to only give those items once, Link to comment Share on other sites More sharing options...
Recommended Posts