Fallout 2 mod question about arrays

Discussion in 'Fallout General Modding' started by Nirran, Sep 29, 2018.

  1. Nirran

    Nirran Vault Senior Citizen
    Modder

    Apr 15, 2007
    how do i save them in the saved game?

    also what would be the method of creating and addiong all these globals into one array ?

    Code:
    #define a1                                                                       get_sfall_global_int(194)
    #define b1                                                                       get_sfall_global_int(195)
    #define c1                                                                       get_sfall_global_int(196)
    #define d1                                                                       get_sfall_global_int(197)
    #define e1                                                                       get_sfall_global_int(198)
    #define f1                                                                       get_sfall_global_int(199)
    #define g1                                                                       get_sfall_global_int(200)
    #define h1                                                                       get_sfall_global_int(201)
    #define i1                                                                       get_sfall_global_int(202)
    #define j1                                                                       get_sfall_global_int(203)
    #define k1                                                                       get_sfall_global_int(204)
    #define l1                                                                       get_sfall_global_int(205)
    #define m1                                                                       get_sfall_global_int(206)
    #define n1                                                                       get_sfall_global_int(207)
    #define o1                                                                       get_sfall_global_int(208)
    #define p1                                                                       get_sfall_global_int(209)
    #define q1                                                                       get_sfall_global_int(210)
    #define r1                                                                       get_sfall_global_int(211)
    #define s1                                                                       get_sfall_global_int(212)
    #define t1                                                                       get_sfall_global_int(213)
    #define u1                                                                       get_sfall_global_int(214)
    #define v1                                                                       get_sfall_global_int(215)
    #define w1                                                                       get_sfall_global_int(216)
    #define x1                                                                       get_sfall_global_int(217)
    #define y1                                                                       get_sfall_global_int(218)
    #define z1                                                                       get_sfall_global_int(219)
    #define aa1                                                                      get_sfall_global_int(219)
    #define bb1                                                                      get_sfall_global_int(219)
    #define cc1                                                                      get_sfall_global_int(219)
    #define dd1                                                                      get_sfall_global_int(219)
    #define ee1                                                                      get_sfall_global_int(219)
    #define ff1                                                                      get_sfall_global_int(219)
    #define gg1                                                                      get_sfall_global_int(219)
    #define hh1                                                                      get_sfall_global_int(219)
    Nirran

    edit : mainly what im asking is the method to create and them load if already made,an array

    edit 2:
    Code:
    > void save_array(mixed key, int arrayID):
    - arrayID is associated with given "key"
    - array becomes permanent (if it was temporary) and "saved"
    - key can be of any type (int, float or string)
    
    > int load_array(mixed key):
    - load array from savegame data by the same key provided in "save_array"
    - arrayID is returned or zero (0) if none found
    seems those are what im after
     
    Last edited: Sep 30, 2018