Jump to content

Question about Form and Levellist


Recommended Posts

Posted (edited)

Howdy.

 

I have two small question about adding Weapon to the Formlist and Leveldlist. Should i use "ListAddForm" or "AddFormToFormList"?

 

This is the script i use for now.

Spoiler

scn GsWpFormListScript

Begin GameMode

    if (GetGameRestarted || GetGameLoaded)
        ;Shotguns
        ListAddForm ShotgunSurgeonWeaponsList GsWpBenelliA
        ListAddForm ShotgunSurgeonWeaponsList GsWpBenelliB
        ListAddForm ShotgunSurgeonWeaponsList GsWpMirage
        ListAddForm ShotgunSurgeonWeaponsList GsWpPA3a
        ListAddForm ShotgunSurgeonWeaponsList GsWpPA3b
        ListAddForm ShotgunSurgeonWeaponsList GsWpPA3c
        ListAddForm ShotgunSurgeonWeaponsList GsWpSpas12a
        ListAddForm ShotgunSurgeonWeaponsList GsWpSpas12b

        ListAddForm WeaponShotgunLIST GsWpBenelliA
        ListAddForm WeaponShotgunLIST GsWpBenelliB
        ListAddForm WeaponShotgunLIST GsWpMirage
        ListAddForm WeaponShotgunLIST GsWpPA3a
        ListAddForm WeaponShotgunLIST GsWpPA3b
        ListAddForm WeaponShotgunLIST GsWpPA3c
        ListAddForm WeaponShotgunLIST GsWpSpas12a
        ListAddForm WeaponShotgunLIST GsWpSpas12b

        ListAddForm WeaponListRangedALL GsWpBenelliA
        ListAddForm WeaponListRangedALL GsWpBenelliB
        ListAddForm WeaponListRangedALL GsWpMirage
        ListAddForm WeaponListRangedALL GsWpPA3a
        ListAddForm WeaponListRangedALL GsWpPA3b
        ListAddForm WeaponListRangedALL GsWpPA3c
        ListAddForm WeaponListRangedALL GsWpSpas12a
        ListAddForm WeaponListRangedALL GsWpSpas12b

        ListAddForm NVAllWeapons GsWpBenelliA
        ListAddForm NVAllWeapons GsWpBenelliB
        ListAddForm NVAllWeapons GsWpMirage
        ListAddForm NVAllWeapons GsWpPA3a
        ListAddForm NVAllWeapons GsWpPA3b
        ListAddForm NVAllWeapons GsWpPA3c
        ListAddForm NVAllWeapons GsWpSpas12a
        ListAddForm NVAllWeapons GsWpSpas12b

        ListAddForm WeaponRiflesLIST GsWpBenelliA
        ListAddForm WeaponRiflesLIST GsWpBenelliB
        ListAddForm WeaponRiflesLIST GsWpMirage
        ListAddForm WeaponRiflesLIST GsWpPA3a
        ListAddForm WeaponRiflesLIST GsWpPA3b
        ListAddForm WeaponRiflesLIST GsWpPA3c
        ListAddForm WeaponRiflesLIST GsWpSpas12a
        ListAddForm WeaponRiflesLIST GsWpSpas12b

        ListAddForm Everything GsWpBenelliA
        ListAddForm Everything GsWpBenelliB
        ListAddForm Everything GsWpMirage
        ListAddForm Everything GsWpPA3a
        ListAddForm Everything GsWpPA3b
        ListAddForm Everything GsWpPA3c
        ListAddForm Everything GsWpSpas12a
        ListAddForm Everything GsWpSpas12b

        ;Cynthia Pistols
        ListAddForm GunsList GsWpCynthia357a
        ListAddForm GunsList GsWpCynthia357b
        ListAddForm GunsList GsWpCynthia357c
        ListAddForm GunsList GsWpCynthia357d
        ListAddForm GunsList GsWpCynthia44a
        ListAddForm GunsList GsWpCynthia44b
        ListAddForm GunsList GsWpCynthia44c
        ListAddForm GunsList GsWpCynthia44d
        ListAddForm GunsList GsWpCynthia50a
        ListAddForm GunsList GsWpCynthia50b
        ListAddForm GunsList GsWpCynthia50c
        ListAddForm GunsList GsWpCynthia50d
        ListAddForm GunsList GsWpCynthiaA
        ListAddForm GunsList GsWpCynthiaB
        ListAddForm GunsList GsWpCynthiaC

        ListAddForm TheProfessionalWeaponsList GsWpCynthia357a
        ListAddForm TheProfessionalWeaponsList GsWpCynthia357b
        ListAddForm TheProfessionalWeaponsList GsWpCynthia357c
        ListAddForm TheProfessionalWeaponsList GsWpCynthia357d
        ListAddForm TheProfessionalWeaponsList GsWpCynthia44a
        ListAddForm TheProfessionalWeaponsList GsWpCynthia44b
        ListAddForm TheProfessionalWeaponsList GsWpCynthia44c
        ListAddForm TheProfessionalWeaponsList GsWpCynthia44d
        ListAddForm TheProfessionalWeaponsList GsWpCynthia50a
        ListAddForm TheProfessionalWeaponsList GsWpCynthia50b
        ListAddForm TheProfessionalWeaponsList GsWpCynthia50c
        ListAddForm TheProfessionalWeaponsList GsWpCynthia50d
        ListAddForm TheProfessionalWeaponsList GsWpCynthiaA
        ListAddForm TheProfessionalWeaponsList GsWpCynthiaB
        ListAddForm TheProfessionalWeaponsList GsWpCynthiaC

        ListAddForm WeaponListRangedALL GsWpCynthia357a
        ListAddForm WeaponListRangedALL GsWpCynthia357b
        ListAddForm WeaponListRangedALL GsWpCynthia357c
        ListAddForm WeaponListRangedALL GsWpCynthia357d
        ListAddForm WeaponListRangedALL GsWpCynthia44a
        ListAddForm WeaponListRangedALL GsWpCynthia44b
        ListAddForm WeaponListRangedALL GsWpCynthia44c
        ListAddForm WeaponListRangedALL GsWpCynthia44d
        ListAddForm WeaponListRangedALL GsWpCynthia50a
        ListAddForm WeaponListRangedALL GsWpCynthia50b
        ListAddForm WeaponListRangedALL GsWpCynthia50c
        ListAddForm WeaponListRangedALL GsWpCynthia50d
        ListAddForm WeaponListRangedALL GsWpCynthiaA
        ListAddForm WeaponListRangedALL GsWpCynthiaB
        ListAddForm WeaponListRangedALL GsWpCynthiaC

        ListAddForm NVAllWeapons GsWpCynthia357a
        ListAddForm NVAllWeapons GsWpCynthia357b
        ListAddForm NVAllWeapons GsWpCynthia357c
        ListAddForm NVAllWeapons GsWpCynthia357d
        ListAddForm NVAllWeapons GsWpCynthia44a
        ListAddForm NVAllWeapons GsWpCynthia44b
        ListAddForm NVAllWeapons GsWpCynthia44c
        ListAddForm NVAllWeapons GsWpCynthia44d
        ListAddForm NVAllWeapons GsWpCynthia50a
        ListAddForm NVAllWeapons GsWpCynthia50b
        ListAddForm NVAllWeapons GsWpCynthia50c
        ListAddForm NVAllWeapons GsWpCynthia50d
        ListAddForm NVAllWeapons GsWpCynthiaA
        ListAddForm NVAllWeapons GsWpCynthiaB
        ListAddForm NVAllWeapons GsWpCynthiaC

        ListAddForm Everything GsWpCynthia357a
        ListAddForm Everything GsWpCynthia357b
        ListAddForm Everything GsWpCynthia357c
        ListAddForm Everything GsWpCynthia357d
        ListAddForm Everything GsWpCynthia44a
        ListAddForm Everything GsWpCynthia44b
        ListAddForm Everything GsWpCynthia44c
        ListAddForm Everything GsWpCynthia44d
        ListAddForm Everything GsWpCynthia50a
        ListAddForm Everything GsWpCynthia50b
        ListAddForm Everything GsWpCynthia50c
        ListAddForm Everything GsWpCynthia50d
        ListAddForm Everything GsWpCynthiaA
        ListAddForm Everything GsWpCynthiaB
        ListAddForm Everything GsWpCynthiaC

        ;Other Pistols
        ListAddForm TheProfessionalWeaponsList GsWpG17
        ListAddForm TheProfessionalWeaponsList GsWpG17cAuto
        ListAddForm TheProfessionalWeaponsList GsWpG17Req
        ListAddForm TheProfessionalWeaponsList GsWpG17ReqAuto
        ListAddForm TheProfessionalWeaponsList GsWpPR88Chrome
        ListAddForm TheProfessionalWeaponsList GsWpPR88s
        ListAddForm TheProfessionalWeaponsList GsWpPR88Sig

        ListAddForm WeaponListRangedALL GsWpG17
        ListAddForm WeaponListRangedALL GsWpG17cAuto
        ListAddForm WeaponListRangedALL GsWpG17Req
        ListAddForm WeaponListRangedALL GsWpG17ReqAuto
        ListAddForm WeaponListRangedALL GsWpPR88Chrome
        ListAddForm WeaponListRangedALL GsWpPR88s
        ListAddForm WeaponListRangedALL GsWpPR88Sig

        ListAddForm NVAllWeapons GsWpG17
        ListAddForm NVAllWeapons GsWpG17cAuto
        ListAddForm NVAllWeapons GsWpG17Req
        ListAddForm NVAllWeapons GsWpG17ReqAuto
        ListAddForm NVAllWeapons GsWpPR88Chrome
        ListAddForm NVAllWeapons GsWpPR88s
        ListAddForm NVAllWeapons GsWpPR88Sig

        ListAddForm GunsList GsWpG17
        ListAddForm GunsList GsWpG17cAuto
        ListAddForm GunsList GsWpG17Req
        ListAddForm GunsList GsWpG17ReqAuto
        ListAddForm GunsList GsWpPR88Chrome
        ListAddForm GunsList GsWpPR88s
        ListAddForm GunsList GsWpPR88Sig

        ListAddForm Everything GsWpG17
        ListAddForm Everything GsWpG17cAuto
        ListAddForm Everything GsWpG17Req
        ListAddForm Everything GsWpG17ReqAuto
        ListAddForm Everything GsWpPR88Chrome
        ListAddForm Everything GsWpPR88s
        ListAddForm Everything GsWpPR88Sig

        ;Rifles
        ListAddForm TheProfessionalWeaponsList GsWpG36c
        ListAddForm TheProfessionalWeaponsList GsWpG36cAcog
        ListAddForm TheProfessionalWeaponsList GsWpG36Comp
        ListAddForm TheProfessionalWeaponsList GsWpG36L
        ListAddForm TheProfessionalWeaponsList GsWpG36LComp
        ListAddForm TheProfessionalWeaponsList GsWpG36LEotech
        ListAddForm TheProfessionalWeaponsList GsWpG36SVa
        ListAddForm TheProfessionalWeaponsList GsWpG36SVb
        ListAddForm TheProfessionalWeaponsList GsWpG36SVComp

        ListAddForm WeaponListRangedALL GsWpG36c
        ListAddForm WeaponListRangedALL GsWpG36cAcog
        ListAddForm WeaponListRangedALL GsWpG36Comp
        ListAddForm WeaponListRangedALL GsWpG36L
        ListAddForm WeaponListRangedALL GsWpG36LComp
        ListAddForm WeaponListRangedALL GsWpG36LEotech
        ListAddForm WeaponListRangedALL GsWpG36SVa
        ListAddForm WeaponListRangedALL GsWpG36SVb
        ListAddForm WeaponListRangedALL GsWpG36SVComp

        ListAddForm NVAllWeapons GsWpG36c
        ListAddForm NVAllWeapons GsWpG36cAcog
        ListAddForm NVAllWeapons GsWpG36Comp
        ListAddForm NVAllWeapons GsWpG36L
        ListAddForm NVAllWeapons GsWpG36LComp
        ListAddForm NVAllWeapons GsWpG36LEotech
        ListAddForm NVAllWeapons GsWpG36SVa
        ListAddForm NVAllWeapons GsWpG36SVb
        ListAddForm NVAllWeapons GsWpG36SVComp

        ListAddForm WeaponRiflesLIST GsWpG36c
        ListAddForm WeaponRiflesLIST GsWpG36cAcog
        ListAddForm WeaponRiflesLIST GsWpG36Comp
        ListAddForm WeaponRiflesLIST GsWpG36L
        ListAddForm WeaponRiflesLIST GsWpG36LComp
        ListAddForm WeaponRiflesLIST GsWpG36LEotech
        ListAddForm WeaponRiflesLIST GsWpG36SVa
        ListAddForm WeaponRiflesLIST GsWpG36SVb
        ListAddForm WeaponRiflesLIST GsWpG36SVComp

        ListAddForm Everything GsWpG36c
        ListAddForm Everything GsWpG36cAcog
        ListAddForm Everything GsWpG36Comp
        ListAddForm Everything GsWpG36L
        ListAddForm Everything GsWpG36LComp
        ListAddForm Everything GsWpG36LEotech
        ListAddForm Everything GsWpG36SVa
        ListAddForm Everything GsWpG36SVb
        ListAddForm Everything GsWpG36SVComp

        PrintToConsole "Weapons added to Formlist."

    endif
END

 

And for the Leveldlist i use this script.

Spoiler

scn GsWpLeveldListScript

int doOnce

Begin GameMode

    if doOnce == 0
        
        LeveledListAddForm Fiend1WeaponGunNV GsWpAmmoCynthia357 1 1 1
        LeveledListAddForm Fiend1WeaponGunNV GsWpAmmoCynthia44 1 1 1
        LeveledListAddForm Fiend1WeaponGunNV GsWpAmmoG17 1 1 1
        LeveledListAddForm Fiend1WeaponGunNV GsWpAmmoPa3 1 1 1

        LeveledListAddForm LL2Tier2GunsTown GsWpAmmoCynthia357 1 1 1
        LeveledListAddForm LL2Tier2GunsTown GsWpAmmoCynthia44 1 1 1
        LeveledListAddForm LL2Tier2GunsTown GsWpAmmoG17 1 1 1
        LeveledListAddForm LL2Tier2GunsTown GsWpAmmoPa3 1 1 1

        LeveledListAddForm VendorWeaponsGunsTier1 GsWpAmmoCynthia357 1 1 1
        LeveledListAddForm VendorWeaponsGunsTier1 GsWpAmmoCynthia44 1 1 1
        LeveledListAddForm VendorWeaponsGunsTier1 GsWpAmmoG17 1 1 1
        LeveledListAddForm VendorWeaponsGunsTier1 GsWpAmmoPa3 1 1 1
        LeveledListAddForm VendorWeaponsGunsTier1 GsWpAmmoPr88 1 1 1

        LeveledListAddForm VendorWeaponsGunsTier4 GsWpAmmoCynthia44 1 1 1
        LeveledListAddForm VendorWeaponsGunsTier4 GsWpAmmoG17 1 1 1
        LeveledListAddForm VendorWeaponsGunsTier4 GsWpAmmoG36c 1 1 1
        LeveledListAddForm VendorWeaponsGunsTier4 GsWpAmmoG36L 1 1 1
        LeveledListAddForm VendorWeaponsGunsTier4 GsWpAmmoG36SV 1 1 1
        LeveledListAddForm VendorWeaponsGunsTier4 GsWpAmmoPa3 1 1 1
        LeveledListAddForm VendorWeaponsGunsTier4 GsWpAmmoSpas12 1 1 1
        LeveledListAddForm VendorWeaponsGunsTier4 GsWpAmmoCynthia50 1 1 1
        LeveledListAddForm VendorWeaponsGunsTier4 GsWpAmmoBarrett95 1 1 1

        LeveledListAddForm LL2Tier3GunsLegionPrime GsWpAmmoCynthia44 1 1 1
        LeveledListAddForm LL2Tier3GunsLegionPrime GsWpAmmoG17 1 1 1
        LeveledListAddForm LL2Tier3GunsLegionPrime GsWpAmmoG36c 1 1 1
        LeveledListAddForm LL2Tier3GunsLegionPrime GsWpAmmoG36L 1 1 1
        LeveledListAddForm LL2Tier3GunsLegionPrime GsWpAmmoG36SV 1 1 1
        LeveledListAddForm LL2Tier3GunsLegionPrime GsWpAmmoPa3 1 1 1
        LeveledListAddForm LL2Tier3GunsLegionPrime GsWpAmmoSpas12 1 1 1

        LeveledListAddForm LL2Tier2GunsLegionVeteran GsWpAmmoCynthia44 1 1 1
        LeveledListAddForm LL2Tier2GunsLegionVeteran GsWpAmmoG17 1 1 1
        LeveledListAddForm LL2Tier2GunsLegionVeteran GsWpAmmoG36c 1 1 1
        LeveledListAddForm LL2Tier2GunsLegionVeteran GsWpAmmoG36L 1 1 1
        LeveledListAddForm LL2Tier2GunsLegionVeteran GsWpAmmoG36SV 1 1 1
        LeveledListAddForm LL2Tier2GunsLegionVeteran GsWpAmmoPa3 1 1 1
        LeveledListAddForm LL2Tier2GunsLegionVeteran GsWpAmmoSpas12 1 1 1

        LeveledListAddForm  RRCGreatKhanRanged GsWpAmmoCynthia357 1 1 1
        LeveledListAddForm  RRCGreatKhanRanged GsWpAmmoCynthia44 1 1 1
        LeveledListAddForm  RRCGreatKhanRanged GsWpAmmoG17 1 1 1
        LeveledListAddForm  RRCGreatKhanRanged GsWpAmmoG36c 1 1 1
        LeveledListAddForm  RRCGreatKhanRanged GsWpAmmoG36L 1 1 1
        LeveledListAddForm  RRCGreatKhanRanged GsWpAmmoG36SV 1 1 1
        LeveledListAddForm  RRCGreatKhanRanged GsWpAmmoPa3 1 1 1
        LeveledListAddForm  RRCGreatKhanRanged GsWpAmmoSpas12 1 1 1

        LeveledListAddForm  DamNCRTrooperWeapons GsWpAmmoCynthia357 1 1 1
        LeveledListAddForm  DamNCRTrooperWeapons GsWpAmmoCynthia44 1 1 1
        LeveledListAddForm  DamNCRTrooperWeapons GsWpAmmoG17 1 1 1
        LeveledListAddForm  DamNCRTrooperWeapons GsWpAmmoG36c 1 1 1
        LeveledListAddForm  DamNCRTrooperWeapons GsWpAmmoG36L 1 1 1
        LeveledListAddForm  DamNCRTrooperWeapons GsWpAmmoG36SV 1 1 1
        LeveledListAddForm  DamNCRTrooperWeapons GsWpAmmoPa3 1 1 1
        LeveledListAddForm  DamNCRTrooperWeapons GsWpAmmoSpas12 1 1 1


        set doOnce to 1
        StopQuest GsWpLeveldListQuest

    endif
END

 

Edited by DocHopfen
spelling
Posted

ListAddForm requires nvse and not pushing changes into the save file, had to be called every load. AddFormToFormList is vanilla command and is baking changes into the save. I'd go for ListAddForm to ensure correct list population and overall consistency.

Posted
20 minutes ago, Neutron_rus said:

ListAddForm requires nvse and not pushing changes into the save file, had to be called every load. AddFormToFormList is vanilla command and is baking changes into the save. I'd go for ListAddForm to ensure correct list population and overall consistency.

Thank you.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

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