Rexdorchester Posted May 24, 2013 Share Posted May 24, 2013 This code will not save therefore meaning that it will not resolve. Am I missing somthing abvoius? The 000AmmoChargingLocker is the editor ID of that container, am I supposed to have a different one? Is it the way I lauched OnActivate? HELP! IM SO CONFUSED! I DONT USIALLY MAKE ALL THE CODE! ScriptName 000ConversionSwitchSCRIPT int varNumOfMFCInt int varNumOfSECInt BEGIN OnActivate player set varNumOfSECInt to 000AmmoChargingLocker.GetItemCount DrainedSmallEnergyCell set varNumOfMFCInt to 000AmmoChargingLocker.GetItemCount DrainedMicrofusionCell If (varNumOfMFCInt == 0) ShowMessage NoDrainedMFCells Else 000AmmoChargingLocker.RemoveItem DrainedMicrofusionCell varNumOfMFCInt 000AmmoChargingLocker.AddItem AmmoMicrofusionCell varNumOfMFCInt EndIf ; SEC STARTS HERE If (varNumOfSECInt == 0) ShowMessage NoDrainedSECells ; ChargeUpSECELLS. Else 000AmmoChargingLocker.RemoveItem DrainedSmallEnergyCell varNumOfSECInt 000AmmoChargingLocker.AddItem AmmoSmallEnergyCell varNumOfSECInt EndIf END Link to comment Share on other sites More sharing options...
luthienanarion Posted May 24, 2013 Share Posted May 24, 2013 (edited) set varNumOfSECInt to 000AmmoChargingLocker.GetItemCount DrainedSmallEnergyCell The names of objects and references cannot be used in scripts if they begin with a numerical character. Prefix your references with something alphabetic instead. Edited May 24, 2013 by luthienanarion Link to comment Share on other sites More sharing options...
Recommended Posts