Jump to content

Archived

This topic is now archived and is closed to further replies.

jms

question on sc4 scripting variables

5 posts in this topic Last Reply

Highlighted Posts

  • Original Poster
  • Posted:
    Last Online: A long, long time ago... 
     

    hi guys,

    can anybody tell me the difference between the difference types of variables advisor scripts use inside the game?

    here's an example of each i've come across so far:

    game.ga_school_grade

    game.l_school_grade_l

    game.l_school_grade_l_subject

    what's the difference between each of these variables?

    game.g_num_high_schools

    what does a .g at the start of this variable mean?

    and what is the difference between the following two variables?

    game.l_tract_eq_h

    game.l_tract_eq_l

    thank-you so much in advance to anybody that can help me.

    -jeremy

    Share this post


    Link to post
    Share on other sites
  • Original Poster
  • Posted:
    Last Online: A long, long time ago... 
     

    15.gif

    ...anyone?

    Share this post


    Link to post
    Share on other sites
  • Original Poster
  • Posted:
    Last Online: A long, long time ago... 
     

    stupid me, i've skipped past these values for the last few months and have failed to give them the time of day.
    i just found this if it's useful for anybody else...


    ------------------------------------------------------------------------------------------
    -- Abbreviations

    -- prefixes ---------------------------------------------
    --          g -- Global value (city-wide).
    --          l  -- Local  value value that has location object associated with it.
    --          a   -- Average value.
    --          t   -- Trend value.

    -- suffixes ---------------------------------------------
    --          p --   Values representing a percentages.
    --          h   -- The highest value in its domain.
    --          l   --  The lowest value in its domain.
    --         subject -- Used for objects associated with variables using
    --                           'l' (local) prefix. This object holds the locality
    --                            data related to that variable. Hence
    --                            game.l_air_pollution_h_subject is a locality
    --                            object for the cell with the highest air pollution value.

    ------------------------------------------------------------------------------------------

    Share this post


    Link to post
    Share on other sites

    • Recently Browsing   0 members

      No registered users viewing this page.

    ×

    Thank You for the Continued Support!

    Simtropolis depends on donations to fund site maintenance costs.
    Without your support, we just would not be in our 24th year online!  You really help make this a great community. *:thumb:

    But we still need your support to stay online. If you're able to, please consider a donation to help us stay up and running. This helps sustain a platform where we can share our community creations for years to come.

    Make a Donation, Get a Gift!

    Expand your city with the best from the Simtropolis Exchange.
    Make a Donation and get one or all three discs today!

    STEX Collections

    By way of a "Thank You" gift, we'd like to send you our STEX Collector's DVD. It's some of the best buildings, lots, maps and mods collected for you over the years. Check out the STEX Collections for more info.

    Each donation helps keep Simtropolis online, open and free!

    Thank you for reading and enjoy the site!

    More About STEX Collections