Nosnamreh Posted March 14, 2013 Share Posted March 14, 2013 This is a script to swap out the duster Ulysses gives the player. Right now it just adds a duster of the player's choice, based on a message box I made. Almost all of the code was taken out of the script for the Chemistry Set, but it still isn't saving. Anyone tell me what I did wrong? ~ scn LostVaultDusterMachine Begin OnActivate if IsActionRef player ShowMessage LostVaultDusterMachineActive endif end BEGIN MenuMode 1001 set Button to GetButtonpressed if ( button == 0) player.additem NVDLC04ArmorDusterNCR 1 else ( button == 1) player.additem NVDLC04ArmorDusterLegion 1 else ( button == 2) player.additem NVDLC04ArmorDusterCourier 1 else ( button == 3) player.additem NVDLC04ArmorDusterOldWorld 1 endif end After getting this figured out, I plan to add another part to grab the duster the player has before they started using it. Also, the mod this is a part of will be released once it's in any kind of playable condition. Link to comment Share on other sites More sharing options...
jazzisparis Posted March 14, 2013 Share Posted March 14, 2013 I corrected your script. There were several problems here, which I will explain later, as I really have to go now. scn LostVaultDusterMachine short bMenuUp short iButton begin OnActivate if IsActionRef player ShowMessage LostVaultDusterMachineActive set bMenuUp to 1 endif end begin GameMode if bMenuUp set iButton to GetButtonPressed if iButton > -1 set bMenuUp to 0 if iButton == 0 player.AddItem NVDLC04ArmorDusterNCR 1 elseif iButton == 1 player.AddItem NVDLC04ArmorDusterLegion 1 elseif iButton == 2 player.AddItem NVDLC04ArmorDusterCourier 1 elseif iButton == 3 player.AddItem NVDLC04ArmorDusterOldWorld 1 endif endif endif end Link to comment Share on other sites More sharing options...
Nosnamreh Posted March 14, 2013 Author Share Posted March 14, 2013 (edited) Huge thanks, man! I'll give this a try in a few days, then see if I can get it to take the duster they already have when they begin. Thanks for the help, I really appreciate it. I'm such a scripting noob. :-| Edit: It works! Thanks. Edited March 17, 2013 by Nosnamreh Link to comment Share on other sites More sharing options...
Recommended Posts