diamonddigs Posted August 8, 2016 Share Posted August 8, 2016 OK so this script worked fine in fallout 3 however when i try to use it in New Vegas it wont save no mater what i do i learned it was probably because the script was set up wrong but i don't know could someone help please? the script gives a nuka cola machine using it the option to take all colas out of inventory and make them ice cold, get an ice cold nuka, or refill an empty nuka bottle or regular soda bottle. those are the options when the machine is activated. Here is the script scn EHNukaVendingMachineScript ;The Player can add Nuka-Colas to the machine and have them changed to Ice-Cold Nuka-Colas;He can then dispense them as he wants to take some or drink them short Buttonshort NukasOnMeshort GoNukaShort BottlesOnMeShort CapsOnMeShort Dispense begin OnActivate Reset3DState if ( IsActionRef Player == 1 )if ( Player.GetItemCount NukaCola >= 1 )ShowMessage EHNukaMachineWithset GoNuka to 2elseif ( Player.GetItemCount NukaCola < 1 )ShowMessage EHNukaMachineWithoutset GoNuka to 1endif endif end begin gamemode set Button to GetButtonPressed if ( Button == 0 ) && ( GoNuka >= 1 )Activateset GoNuka to 0elseif ( Button == 1 ) && ( GoNuka == 2 )set NukasOnMe to ( Player.GetItemCount NukaCola )Player.RemoveItem NukaCola NukasOnMeEHnukafridgeREF.AddItem MS05IceNukaCola NukasOnMeset NukasOnMe to 0set GoNuka to 0elseif ( Button == 1 ) && ( GoNuka == 1 )Set Dispense to 1set GoNuka to 0elseif ( Button == 2 ) && ( GoNuka == 2 )Set Dispense to 1set GoNuka to 0endif If Dispense == 1 Set BottlesOnMe to player.getitemcount SodaBottleEmpty01 + player.getitemcount NukaColaBottleSet CapsOnMe to Player.getitemcount caps001 if BottlesOnMe < 1 || CapsOnMe < 1 Set Dispense to 0ShowMessage EHNukaDispense, BottlesOnMe , CapsOnMe elseIf BottlesOnMe >= 1 && CapsOnMe >= 1 If player.getitemcount SodaBottleEmpty01 >= 1player.removeitem SodaBottleEmpty01 1elseplayer.removeitem NukaColaBottle 1endif player.removeitem caps001 1player.additem NukaCola 1Set Dispense to 0 endif END Link to comment Share on other sites More sharing options...
clanky4 Posted August 8, 2016 Share Posted August 8, 2016 (edited) The script contains several references which do not exist in new vegas, possibly among others: messages:EHNukaMachineWithEHNukaMachineWithoutEHNukaDispense items:MS05IceNukaCola Additionally the object EHnukafridgeREF would need to exist in the worldspace. Edited August 8, 2016 by clanky4 Link to comment Share on other sites More sharing options...
Recommended Posts