adding item/spell to inventory right when you load/start obl

Post » Tue Dec 06, 2011 2:08 pm

Hey, i've never really studied scripting, and i was wondering how would i add an item or spell to your inventory right when you load/start oblivion. Thanks in advance.
User avatar
Naughty not Nice
 
Posts: 3527
Joined: Sat Nov 04, 2006 6:14 am

Post » Tue Dec 06, 2011 6:28 pm

Easiest way is to create a quest and attach a script to it. Make sure the quest it set to start game enabled the use a script like this...

scn MyQuestScriptshort onceBegin GameModeif once == 0   player.additem MyItem 1   player.addspell MySpell   set once to 1   stopquest MyQuestendifEnd


Create the quest first then close the quest window. Then make the script and save it as a quest script. After that you can open the quest back up and select the script. Substitute your item/spell/quest names where I put myitem etc...
User avatar
djimi
 
Posts: 3519
Joined: Mon Oct 23, 2006 6:44 am

Post » Tue Dec 06, 2011 10:32 pm

Easiest way is to create a quest and attach a script to it. Make sure the quest it set to start game enabled the use a script like this...

scn MyQuestScriptshort onceBegin GameModeif once == 0   player.additem MyItem 1   player.addspell MySpell   set once to 1   stopquest MyQuestendifEnd


Create the quest first then close the quest window. Then make the script and save it as a quest script. After that you can open the quest back up and select the script. Substitute your item/spell/quest names where I put myitem etc...


Thanks!
User avatar
Veronica Flores
 
Posts: 3308
Joined: Mon Sep 11, 2006 5:26 pm

Post » Wed Dec 07, 2011 1:28 am

Someones alrady done it :)
User avatar
Ana
 
Posts: 3445
Joined: Sat Jul 01, 2006 4:29 am


Return to IV - Oblivion