Jump to content

HELP Code is not working


Recommended Posts

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

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 by luthienanarion
Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...