Fallout 2 mod critter use skill SOLVED

Discussion in 'Fallout General Modding' started by Nirran, May 5, 2019.

  1. Nirran

    Nirran Vault Senior Citizen
    Modder

    Apr 15, 2007
    does this function exist to script a critter to use the skill?i looked through the fo2 editor doc,cannot find one
     
  2. Mr.Stalin

    Mr.Stalin Agent of Enclave Modder

    Oct 29, 2015
    For normal crettrs there is no, for party members there is a hs_useskillon + option PartyMemberSkillFix
     
  3. Nirran

    Nirran Vault Senior Citizen
    Modder

    Apr 15, 2007
    ok,i wanta make dude sneak on entrance of random encounter,would that function be usable this way?

    edit : i assume ur referingto this :

    Code:
    -------------------------------------------
    
    HOOK_USESKILL (hs_useskill.int)
    
    Runs when using any skill on any object.
    
    This is fired before the default handlers are called, which you can override. In this case you should write your own skill use handler entirely, or otherwise nothing will happen (this includes fade in/fade out, time lapsing and messages - all of this can be scripted; to get vanilla text messages - use message_str_game() along with sprintf()).
    Suggested use - override first aid/doctor skills to buff/nerf them, override steal skill to disallow observing NPCs inventories in some cases.
    Doesn't seem to run when lock picking.
    
    Critter arg1 - The user critter
    Obj     arg2 - The target object
    int     arg3 - skill being used
    int     arg4 - skill bonus from items such as first aid kits
    
    int     ret1 - overrides hard-coded handler (-1 - use engine handler, any other value - override)
    
    -------------------------------------------
    
    doesnt seem to be what im after
     
    Last edited: May 5, 2019
  4. Mr.Stalin

    Mr.Stalin Agent of Enclave Modder

    Oct 29, 2015
    Press key 1 to use sneak for dude)
    Or use function Tapkey(1) while enter to map.
     
  5. Nirran

    Nirran Vault Senior Citizen
    Modder

    Apr 15, 2007
    ok thnx stalin,ill try it now