Jump to content

Scripting problems...


corsta

Recommended Posts

Wondering if anyone can help with my script problems - I can't save the script, which tells me there's an issue somewhere. However, Script Validator couldn't pick up on anything and all references made in the script are as mentioned. Other than that, I have no idea what it may be, and yet that's fine.

 

I've tried different variations of SCN to see if that may be it, but nope. Here's my script - can anyone recommend a fix please?

 

SCN VAmmoSortingScript
int AmmoCount
Begin OnActivate Player
Activate
;10 mm
set AmmoCount to Player.GetItemCount Ammo10mm
AmmoBox10mmRef.AddItem Ammo10mm AmmoCount
Player.RemoveItem Ammo10mm AmmoCount 1
set AmmoCount to Player.GetItemCount Ammo10mmHollowPoint
AmmoBox10mmRef.AddItem Ammo10mmHollowPoint AmmoCount
Player.RemoveItem Ammo10mmHollowPoint AmmoCount 1
set AmmoCount to Player.GetItemCount Ammo10mmJHPHandLoad
AmmoBox10mmRef.AddItem Ammo10mmJHPHandLoad AmmoCount
Player.RemoveItem Ammo10mmJHPHandLoad AmmoCount 1
;9mm
set AmmoCount to Player.GetItemCount Ammo9mm
AmmoBox9mmRef.AddItem Ammo9mm AmmoCount
Player.RemoveItem Ammo9mm AmmoCount 1
set AmmoCount to Player.GetItemCount Ammo9mmHollowPoint
AmmoBox9mmRef.AddItem Ammo9mmHollowPoint AmmoCount
Player.RemoveItem Ammo9mmHollowPoint AmmoCount 1
set AmmoCount to Player.GetItemCount Ammo9mmP
AmmoBox9mmRef.AddItem Ammo9mmP AmmoCount
Player.RemoveItem Ammo9mmP AmmoCount 1
;22LR
set AmmoCount to Player.GetItemCount Ammo22LR
AmmoBox22LRRef.AddItem Ammo22LR AmmoCount
Player.RemoveItem Ammo22LR AmmoCount 1
set AmmoCount to Player.GetItemCount Ammo22LRHollowPoint
AmmoBox22LRRef.AddItem Ammo22LRHollowPoint AmmoCount
Player.RemoveItem Ammo22LRHollowPoint AmmoCount 1
set AmmoCount to Player.GetItemCount Ammo22LRPlinking
AmmoBox22LRRef.AddItem Ammo22LRPlinking AmmoCount
Player.RemoveItem Ammo22LRPlinking AmmoCount 1
;BBs
set AmmoCount to Player.GetItemCount AmmoBB
AmmoBoxBBRef.AddItem AmmoBB AmmoCount
Player.RemoveItem AmmoBB AmmoCount 1
;357
set AmmoCount to Player.GetItemCount Ammo357Magnum
AmmoBox357MagnumREF.AddItem Ammo357Magnum AmmoCount
Player.RemoveItem Ammo357Magnum AmmoCount 1
set AmmoCount to Player.GetItemCount Ammo357MagnumJFPHandLoad
AmmoBox357MagnumREF.AddItem Ammo357MagnumJFPHandLoad AmmoCount
Player.RemoveItem Ammo357MagnumJFPHandLoad AmmoCount 1
set AmmoCount to Player.GetItemCount Ammo357MagnumHollowPoint
AmmoBox357MagnumREF.AddItem Ammo357MagnumHollowPoint AmmoCount
Player.RemoveItem Ammo357MagnumHollowPoint AmmoCount 1
;44mag
set AmmoCount to Player.GetItemCount Ammo44magnum
AmmoBox44MagnumREF.AddItem Ammo44magnum AmmoCount
Player.RemoveItem Ammo44magnum AmmoCount 1
set AmmoCount to Player.GetItemCount Ammo44MagnumHollowPoint
AmmoBox44MagnumREF.AddItem Ammo44MagnumHollowPoint AmmoCount
Player.RemoveItem Ammo44MagnumHollowPoint AmmoCount 1
set AmmoCount to Player.GetItemCount Ammo44MagnumSWCHandLoad
AmmoBox44MagnumREF.AddItem Ammo44MagnumSWCHandLoad AmmoCount
Player.RemoveItem Ammo44MagnumSWCHandLoad AmmoCount 1
;38special
set AmmoCount to Player.GetItemCount Ammo38Special
AmmoBox357MagnumREF.AddItem Ammo38Special AmmoCount
Player.RemoveItem Ammo38Special AmmoCount 1
;44special
set AmmoCount to Player.GetItemCount Ammo44Special
AmmoBox44MagnumREF.AddItem Ammo44Special AmmoCount
Player.RemoveItem Ammo44Special AmmoCount 1
;12gauge
set AmmoCount to Player.GetItemCount Ammo12Ga
AmmoBox12GaREF.AddItem Ammo12Ga AmmoCount
Player.RemoveItem Ammo12Ga AmmoCount 1
set AmmoCount to Player.GetItemCount Ammo12GaMagnum
AmmoBox12GaREF.AddItem Ammo12GaMagnum AmmoCount
Player.RemoveItem Ammo12GaMagnum AmmoCount 1
set AmmoCount to Player.GetItemCount Ammo12GaSlug
AmmoBox12GaREF.AddItem Ammo12GaSlug AmmoCount
Player.RemoveItem Ammo12GaSlug AmmoCount 1
set AmmoCount to Player.GetItemCount Ammo12GaBeanBag
AmmoBox12GaREF.AddItem Ammo12GaBeanBag AmmoCount
Player.RemoveItem Ammo12GaBeanBag AmmoCount 1
set AmmoCount to Player.GetItemCount Ammo12GaCoinShot
AmmoBox12GaREF.AddItem Ammo12GaCoinShot AmmoCount
Player.RemoveItem Ammo12GaCoinShot AmmoCount 1
;20Gauge
set AmmoCount to Player.GetItemCount Ammo20Ga
AmmoBox20GaREF.AddItem Ammo20Ga AmmoCount
Player.RemoveItem Ammo20Ga AmmoCount 1
set AmmoCount to Player.GetItemCount Ammo20GaMagnum
AmmoBox20GaREF.AddItem Ammo20GaMagnum AmmoCount
Player.RemoveItem Ammo20GaMagnum AmmoCount 1
set AmmoCount to Player.GetItemCount Ammo20GaSlug
AmmoBox20GaREF.AddItem Ammo20GaSlug AmmoCount
Player.RemoveItem Ammo20GaSlug AmmoCount 1
;556mm
set AmmoCount to Player.GetItemCount Ammo556mm
AmmoBox556mmREF.AddItem Ammo556mm AmmoCount
Player.RemoveItem Ammo556mm AmmoCount 1
set AmmoCount to Player.GetItemCount Ammo556mmHollowPoint
AmmoBox556mmREF.AddItem Ammo556mmHollowPoint AmmoCount
Player.RemoveItem Ammo556mmHollowPoint AmmoCount 1
set AmmoCount to Player.GetItemCount Ammo556mmArmorPiercing
AmmoBox556mmREF.AddItem Ammo556mmArmorPiercing AmmoCount
Player.RemoveItem Ammo556mmArmorPiercing AmmoCount 1
set AmmoCount to Player.GetItemCount Ammo556mmSurplus
AmmoBox556mmREF.AddItem Ammo556mmSurplus AmmoCount
Player.RemoveItem Ammo556mmSurplus AmmoCount 1
;223
set AmmoCount to Player.GetItemCount Ammo223
AmmoBox556mmREF.AddItem Ammo223 AmmoCount
Player.RemoveItem Ammo223 AmmoCount 1
;127mm
set AmmoCount to Player.GetItemCount Ammo127mm
AmmoBox127REF.AddItem Ammo127mm AmmoCount
Player.RemoveItem Ammo127mm AmmoCount 1
set AmmoCount to Player.GetItemCount Ammo127mmHollowPoint
AmmoBox127REF.AddItem Ammo127mmHollowPoint AmmoCount
Player.RemoveItem Ammo127mmHollowPoint AmmoCount 1
;4570
set AmmoCount to Player.GetItemCount Ammo4570
AmmoBox4570REF.AddItem Ammo4570 AmmoCount
Player.RemoveItem Ammo4570 AmmoCount 1
set AmmoCount to Player.GetItemCount Ammo4570HollowPoint
AmmoBox4570REF.AddItem Ammo4570HollowPoint AmmoCount
Player.RemoveItem Ammo4570HollowPoint AmmoCount 1
set AmmoCount to Player.GetItemCount Ammo4570SWCHandLoad
AmmoBox4570REF.AddItem Ammo4570SWCHandLoad AmmoCount
Player.RemoveItem Ammo4570SWCHandLoad AmmoCount 1
;308
set AmmoCount to Player.GetItemCount Ammo308
AmmoBox308REF.AddItem Ammo308 AmmoCount
Player.RemoveItem Ammo308 AmmoCount 1
set AmmoCount to Player.GetItemCount Ammo308ArmorPiercing
AmmoBox308REF.AddItem Ammo308ArmorPiercing AmmoCount
Player.RemoveItem Ammo308ArmorPiercing AmmoCount 1
set AmmoCount to Player.GetItemCount Ammo308HollowPoint
AmmoBox308REF.AddItem Ammo308HollowPoint AmmoCount
Player.RemoveItem Ammo308HollowPoint AmmoCount 1
set AmmoCount to Player.GetItemCount Ammo308JSPHandLoad
AmmoBox308REF.AddItem Ammo308JSPHandLoad AmmoCount
Player.RemoveItem Ammo308JSPHandLoad AmmoCount 1
;50mg
set AmmoCount to Player.GetItemCount Ammo50MG
AmmoBox50calREF.AddItem Ammo50MG AmmoCount
Player.RemoveItem Ammo50MG AmmoCount 1
set AmmoCount to Player.GetItemCount Ammo50MGArmorPiercing
AmmoBox50calREF.AddItem Ammo50MGArmorPiercing AmmoCount
Player.RemoveItem Ammo50MGArmorPiercing AmmoCount 1
set AmmoCount to Player.GetItemCount Ammo50MGHandLoad
AmmoBox50calREF.AddItem Ammo50MGHandLoad AmmoCount
Player.RemoveItem Ammo50MGHandLoad AmmoCount 1
set AmmoCount to Player.GetItemCount Ammo50MGIncendiary
AmmoBox50calREF.AddItem Ammo50MGIncendiary AmmoCount
Player.RemoveItem Ammo50MGIncendiary AmmoCount 1
;5mm
set AmmoCount to Player.GetItemCount Ammo5mm
AmmoBox5mmREF.AddItem Ammo5mm AmmoCount
Player.RemoveItem Ammo5mm AmmoCount 1
set AmmoCount to Player.GetItemCount Ammo5mmArmorPiercing
AmmoBox5mmREF.AddItem Ammo5mmArmorPiercing AmmoCount
Player.RemoveItem Ammo5mmArmorPiercing AmmoCount 1
set AmmoCount to Player.GetItemCount Ammo5mmHollowPoint
AmmoBox5mmREF.AddItem Ammo5mmHollowPoint AmmoCount
Player.RemoveItem Ammo5mmHollowPoint AmmoCount 1
set AmmoCount to Player.GetItemCount Ammo5mmSurplus
AmmoBox5mmREF.AddItem Ammo5mmSurplus AmmoCount
Player.RemoveItem Ammo5mmSurplus AmmoCount 1
;ECP
set AmmoCount to Player.GetItemCount AmmoElectronChargePack
AmmoBoxElectronChargePacksREF.AddItem AmmoElectronChargePack AmmoCount
Player.RemoveItem AmmoElectronChargePack AmmoCount 1
set AmmoCount to Player.GetItemCount AmmoElectronChargePackBulk
AmmoBoxElectronChargePacksREF.AddItem AmmoElectronChargePackBulk AmmoCount
Player.RemoveItem AmmoElectronChargePackBulk AmmoCount 1
set AmmoCount to Player.GetItemCount AmmoElectronChargePackMaxCharge
AmmoBoxElectronChargePacksREF.AddItem AmmoElectronChargePackMaxCharge AmmoCount
Player.RemoveItem AmmoElectronChargePackMaxCharge AmmoCount 1
set AmmoCount to Player.GetItemCount AmmoElectronChargePackOverCharge
AmmoBoxElectronChargePacksREF.AddItem AmmoElectronChargePackOverCharge AmmoCount
Player.RemoveItem AmmoElectronChargePackOverCharge AmmoCount 1
;MFC
set AmmoCount to Player.GetItemCount AmmoMicroFusionCell
AmmoBoxMicroFusionCellsREF.AddItem AmmoMicroFusionCell AmmoCount
Player.RemoveItem AmmoMicroFusionCell AmmoCount 1
set AmmoCount to Player.GetItemCount AmmoMicroFusionCellBulk
AmmoBoxMicroFusionCellsREF.AddItem AmmoMicroFusionCellBulk AmmoCount
Player.RemoveItem AmmoMicroFusionCellBulk AmmoCount 1
set AmmoCount to Player.GetItemCount AmmoMicroFusionCellMaxCharge
AmmoBoxMicroFusionCellsREF.AddItem AmmoMicroFusionCellMaxCharge AmmoCount
Player.RemoveItem AmmoMicroFusionCellMaxCharge AmmoCount 1
set AmmoCount to Player.GetItemCount AmmoMicroFusionCellOverCharge
AmmoBoxMicroFusionCellsREF.AddItem AmmoMicroFusionCellOverCharge AmmoCount
Player.RemoveItem AmmoMicroFusionCellOverCharge AmmoCount 1
;SEC
set AmmoCount to Player.GetItemCount AmmoSmallEnergyCell
AmmoBoxSmallEnergyCellsREF.AddItem AmmoSmallEnergyCell AmmoCount
Player.RemoveItem AmmoSmallEnergyCell AmmoCount 1
set AmmoCount to Player.GetItemCount AmmoSmallEnergyCellBulk
AmmoBoxSmallEnergyCellsREF.AddItem AmmoSmallEnergyCellBulk AmmoCount
Player.RemoveItem AmmoSmallEnergyCellBulk AmmoCount 1
set AmmoCount to Player.GetItemCount AmmoSmallEnergyCellMaxCharge
AmmoBoxSmallEnergyCellsREF.AddItem AmmoSmallEnergyCellMaxCharge AmmoCount
Player.RemoveItem AmmoSmallEnergyCellMaxCharge AmmoCount 1
set AmmoCount to Player.GetItemCount AmmoSmallEnergyCellOverCharge
AmmoBoxSmallEnergyCellsREF.AddItem AmmoSmallEnergyCellOverCharge AmmoCount
Player.RemoveItem AmmoSmallEnergyCellOverCharge AmmoCount 1
;Alien
set AmmoCount to Player.GetItemCount AmmoAlienPowerCell
AmmoBoxAlienPowerCellsREF.AddItem AmmoAlienPowerCell AmmoCount
Player.RemoveItem AmmoAlienPowerCell AmmoCount 1
;Mes
set AmmoCount to Player.GetItemCount AmmoMesmetronPowerCell
AmmoBoxMiscREF.AddItem AmmoMesmetronPowerCell AmmoCount
Player.RemoveItem AmmoMesmetronPowerCell AmmoCount 1
;Explosives
set AmmoCount to Player.GetItemCount AmmoFatMans
AmmoBoxMiniNukeREF.AddItem AmmoFatMans AmmoCount
Player.RemoveItem AmmoFatMans AmmoCount 1
set AmmoCount to Player.GetItemCount AmmoMissile
AmmoBoxMissilesREF.AddItem AmmoMissile AmmoCount
Player.RemoveItem AmmoMissile AmmoCount 1
set AmmoCount to Player.GetItemCount AmmoMissileHighExplosive
AmmoBoxMissilesREF.AddItem AmmoMissileHighExplosive AmmoCount
Player.RemoveItem AmmoMissileHighExplosive AmmoCount 1
set AmmoCount to Player.GetItemCount AmmoMissileHighVelocity
AmmoBoxMissilesREF.AddItem AmmoMissileHighVelocity AmmoCount
Player.RemoveItem AmmoMissileHighVelocity AmmoCount 1
set AmmoCount to Player.GetItemCount Ammo25mmGrenade
AmmoBox25mmGrenadeREF.AddItem Ammo25mmGrenade AmmoCount
Player.RemoveItem Ammo25mmGrenade AmmoCount 1
set AmmoCount to Player.GetItemCount Ammo25mmGrenadeHighExplosive
AmmoBox25mmGrenadeREF.AddItem Ammo25mmGrenadeHighExplosive AmmoCount
Player.RemoveItem Ammo25mmGrenadeHighExplosive AmmoCount 1
set AmmoCount to Player.GetItemCount Ammo40mmGrenade
AmmoBox40mmGrenadeREF.AddItem Ammo40mmGrenade AmmoCount
Player.RemoveItem Ammo40mmGrenade AmmoCount 1
set AmmoCount to Player.GetItemCount Ammo40mmGrenadeIncendiary
AmmoBox40mmGrenadeREF.AddItem Ammo40mmGrenadeIncendiary AmmoCount
Player.RemoveItem Ammo40mmGrenadeIncendiary AmmoCount 1
set AmmoCount to Player.GetItemCount AmmoFlamerFuel
AmmoBoxFlamerFuelREF.AddItem AmmoFlamerFuel AmmoCount
Player.RemoveItem AmmoFlamerFuel AmmoCount 1
set AmmoCount to Player.GetItemCount AmmoFlamerFuelHomemade
AmmoBoxFlamerFuelREF.AddItem AmmoFlamerFuelHomemade AmmoCount
Player.RemoveItem AmmoFlamerFuelHomemade AmmoCount 1
set AmmoCount to Player.GetItemCount WeapNVDynamite
AmmoBoxExplosivesREF.AddItem WeapNVDynamite AmmoCount
Player.RemoveItem WeapNVDynamite AmmoCount 1
set AmmoCount to Player.GetItemCount WeapNVLongFuseDynamite
AmmoBoxExplosivesREF.AddItem WeapNVLongFuseDynamite AmmoCount
Player.RemoveItem WeapNVLongFuseDynamite AmmoCount 1
set AmmoCount to Player.GetItemCount WeapNVTimeBomb
AmmoBoxExplosivesREF.AddItem WeapNVTimeBomb AmmoCount
Player.RemoveItem WeapNVTimeBomb AmmoCount 1
set AmmoCount to Player.GetItemCount WeapGrenadeFrag
AmmoBoxExplosivesREF.AddItem WeapGrenadeFrag AmmoCount
Player.RemoveItem WeapGrenadeFrag AmmoCount 1
set AmmoCount to Player.GetItemCount WeapGrenadePlasma
AmmoBoxExplosivesREF.AddItem WeapGrenadePlasma AmmoCount
Player.RemoveItem WeapGrenadePlasma AmmoCount 1
set AmmoCount to Player.GetItemCount WeapGrenadePulse
AmmoBoxExplosivesREF.AddItem WeapGrenadePulse AmmoCount
Player.RemoveItem WeapGrenadePulse AmmoCount 1
set AmmoCount to Player.GetItemCount WeapNVGrenadeIncendiary
AmmoBoxExplosivesREF.AddItem WeapNVGrenadeIncendiary AmmoCount
Player.RemoveItem WeapNVGrenadeIncendiary AmmoCount 1
set AmmoCount to Player.GetItemCount WeapNVGrenadeStun
AmmoBoxExplosivesREF.AddItem WeapNVGrenadeStun AmmoCount
Player.RemoveItem WeapNVGrenadeStun AmmoCount 1
set AmmoCount to Player.GetItemCount WeapMineFrag
AmmoBoxExplosivesREF.AddItem WeapMineFrag AmmoCount
Player.RemoveItem WeapMineFrag AmmoCount 1
set AmmoCount to Player.GetItemCount WeapMinePlasma
AmmoBoxExplosivesREF.AddItem WeapMinePlasma AmmoCount
Player.RemoveItem WeapMinePlasma AmmoCount 1
set AmmoCount to Player.GetItemCount WeapMinePulse
AmmoBoxExplosivesREF.AddItem WeapMinePulse AmmoCount
Player.RemoveItem WeapMinePulse AmmoCount 1
set AmmoCount to Player.GetItemCount WeapNVMinePowderCharge
AmmoBoxExplosivesREF.AddItem WeapNVMinePowderCharge AmmoCount
Player.RemoveItem WeapNVMinePowderCharge AmmoCount 1
set AmmoCount to Player.GetItemCount WeapMineBottlecap
AmmoBoxExplosivesREF.AddItem WeapMineBottlecap AmmoCount
Player.RemoveItem WeapMineBottlecap AmmoCount 1
set AmmoCount to Player.GetItemCount WeapNVC4PlasticExplosive
AmmoBoxExplosivesREF.AddItem WeapNVC4PlasticExplosive AmmoCount
Player.RemoveItem WeapNVC4PlasticExplosive AmmoCount 1
ShowMessage VAmmoSorterDoneMsg
End
Link to comment
Share on other sites

  • Recently Browsing   0 members

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