Xiron Posted August 2, 2008 Share Posted August 2, 2008 Alright, I was wondering if it was possible to make a script similar to the Archmage Chest script that would double the amount of any item placed in it. And I DO mean any item- vanilla item or from a mod. I know that a similar effect with mod-added ingredients is done through OBSE in this mod here: Arch-mage Chest Upgrade - OBSE As a clearer explanation, say I place 25 mod-added arrows in a container with this script on it. After the effect takes place I should now have 50 of the same arrows, enchanted or not. Same for equipment- I put one in, after effect I get 2 out, exact same, enchantment and all. If keeping the enchantment is simply not possible, then base itemtype will do. If this is even possible at all, that is. Thanks in advance for whatever may come, and hopefully someone else may get some use out of this idea if it can be made. Link to comment Share on other sites More sharing options...
simonp92 Posted August 2, 2008 Share Posted August 2, 2008 hehe.. dude i requested the exsact same thing a month ago..i dont think anyone can help us.. Link to comment Share on other sites More sharing options...
myrmaad Posted August 2, 2008 Share Posted August 2, 2008 hehe.. dude i requested the exsact same thing a month ago..i dont think anyone can help us.. I know of no such mod specifically, but the Mod "Advanced Magecraft" allows cloning of any item. I've been using it for about a month. As scripted it costs money to clone, but there's an included ini file if you must make it more of a cheat item than it is, but for my character who has worked to become a powerful wealthy mage, it's perfect. Link to comment Share on other sites More sharing options...
simonp92 Posted August 2, 2008 Share Posted August 2, 2008 i would take a look on it... thanks.. Link to comment Share on other sites More sharing options...
Xiron Posted August 2, 2008 Author Share Posted August 2, 2008 Heh. With a short look-through of the OBSE functions, I think that I can do this. Will edit post and upload the file if and when it's working. Link to comment Share on other sites More sharing options...
ihateregisteringeverywhere Posted August 2, 2008 Share Posted August 2, 2008 You don't need OBSE for this, just look at the original duplication script. Link to comment Share on other sites More sharing options...
Xiron Posted August 2, 2008 Author Share Posted August 2, 2008 Yes, actually you do. You need it for non-vanilla items, as vanilla oblivion has no power over mod-added items. You need OBSE to allow the script to duplicate ANY item, no matter what mod it came from. I've gotten it to work, just working on detaching it from the MG19 chest. EDIT: As I promised, here is the code. It will double the number of ANY item you place within the chest, enchantments and all, from any mod, or anything. If you don't like some of the settings, change them. Also I assume the people here know enough to copy/paste to change scripts. Unless someone wishes to tell me how to create an entirely new plugin.....I'm a bit new to modding, but good at scripting in general. Feel free to makean actual plugin out of this and upload it anywhere, but please note me in the credits, as well as the original code that I edited to do this, author LazMonk of this beautiful piece of script which showed me the power of OBSE and inspired this: LinkAnother note: This script is not tied to the chest in the archmage's quarters, other than currently using all of the same timers, so other containers running the MG19 script will work with this. I have not, however, tried putting stuff in 2 containers running this script, and I wouldn't reccomend it. But if someone can figure out a way to completely detach it from the MG19 timers and such, please do so and re-upload it for the benefit of all.; ************************************************************* ; This script is responsible for timers involved in quest MG19. ; ************************************************************* Scriptname MG19ChestScript short startday short dayspassed short itemcount ; used to check if the player is trying to cheat the system short update float hourtimer float currentday float daycheck ref boxeditem ; when var equals 0 and chest is activated, initialize variables and increment quest var Begin OnActivate if ( MG19Alchemy.ingredvar == 0 ) set MG19Alchemy.currentday to GameDaysPassed set MG19Alchemy.daycheck to GameDaysPassed set MG19Alchemy.hourtimer to GameHour set MG19Alchemy.ingredvar to 1 set MG19Alchemy.update to 1 Activate else Activate endif End ; when var equals 1, check for ingredients in the chest and duplicate if at least one ; day and less than 7, have passed...otherwise wipe contents of chest completely Begin Gamemode if ( MG19Alchemy.ingredvar == 1 ) if ( MG19Alchemy.dayspassed >= 1 ) && ( MG19Alchemy.dayspassed < 2 ) set boxeditem to (GetInventoryObject 0) set itemcount to (GetItemCount boxeditem) if boxeditem == MS04HornGift removeitem MS04HornGift 10 set boxeditem to MinotaurHorn elseif boxeditem == MG01Bonemeal removeitem MG01Bonemeal 10 set boxeditem to bonemeal elseif boxeditem == MG13VampireDust removeitem MG13VampireDust 10 set boxeditem to vampiredust endif if boxeditem != MS39Nirnroot additem boxeditem itemcount endif endif endif if ( itemcount > 1 ) ; RemoveAllItems set MG19Alchemy.ingredvar to 0 set MG19Alchemy.update to 0 set itemcount to 0 set MG19Alchemy.dayspassed to 0 elseif ( itemcount == 1 ) set MG19Alchemy.ingredvar to 2 endif ; After seven days have passed clean container. if ( MG19Alchemy.dayspassed >= 1 ) ; RemoveAllItems set MG19Alchemy.ingredvar to 0 set MG19Alchemy.update to 0 set itemcount to 0 set MG19Alchemy.dayspassed to 0 endif endif End Link to comment Share on other sites More sharing options...
ihateregisteringeverywhere Posted August 2, 2008 Share Posted August 2, 2008 Aaah, that didn't ocure to me. Nice one. Link to comment Share on other sites More sharing options...
simonp92 Posted August 2, 2008 Share Posted August 2, 2008 i am sorry.. but could you release this on TES nexus??an esp? Link to comment Share on other sites More sharing options...
Xiron Posted August 3, 2008 Author Share Posted August 3, 2008 Would that I knew how to make an esp out of it, lol. I know enough to modify existing ones, but I never did figure out how to make one from nothing. I haven't read any tutorials, you see...self-taught. I will take a look and see if I can find how to do so on the net. EDIT: Rejoice all, the file is uploaded and the link follows. Press that little kudos button on the side if you like it, small modification that it is it's still useful. =)Link: Archmage Chest Item Duplicator Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.