Restoration Project and SFall script problems.

Discussion in 'Fallout General Modding' started by Mulligun, Jun 17, 2023.

  1. Mulligun

    Mulligun Still Mildly Glowing

    264
    Dec 14, 2006
    How can i programmatically get currently set F2 window mode (window/no window and resolution) set by f2_res_config (I mean the F2 Resolution Patch)?
     
  2. Mulligun

    Mulligun Still Mildly Glowing

    264
    Dec 14, 2006
    Is there a way using sfall to get the proto (critter, item) name and description as a string? I know there is get_proto_data and get_object_data but if i write
    Code:
    val := get_proto_data(currObj, it_description);
    or
    Code:
    val := get_object_data(currObj, it_description);
    i get a number instead of a string!
     
  3. NovaRain

    NovaRain Casual Modder Modder Moderator

    Mar 10, 2007
    "it_description" and other similar constants in define.h are only for vanilla proto_data function. They are NOT the offset for sfall's proto/object data functions.
     
  4. Lexx

    Lexx Testament to the ghoul lifespan
    Moderator Modder

    Apr 24, 2005
    obj_name() should get the proto name. Don't know about descriptions. It's possible to grab the strings from files in the /game/ folder, though, so it might be possible to do it that way. Don't remember the script commands for that right now, though, and can't check.
     
  5. Mulligun

    Mulligun Still Mildly Glowing

    264
    Dec 14, 2006
    Is there a way to get CURRENT HP of the critter using sfall?
    Thx for help!
     
  6. fffffffff

    fffffffff First time out of the vault

    25
    Mar 20, 2017
    get_critter_stat(critter, STAT_current_hp)
     
  7. Mulligun

    Mulligun Still Mildly Glowing

    264
    Dec 14, 2006
    How to get critter weapon info and critter inventory using the sfall?
    Thx for help!