Jump to content
Sign in to follow this  
jastey

List: Unified .cre Patching in Mods

Recommended Posts

There’s a ‘resolve_stat’ function in SCS that does it.

Share this post


Link to post
3 hours ago, jastey said:

@Mike1072 In your example, is "exampe_dv" a variable I can use with OUTER_SPRINT for the rest of the mod?

Yes.  Any time that variables are assigned (except within functions), those variables can be accessed anywhere.

On 3/25/2019 at 8:41 AM, DavidW said:

(Incidentally, it needs to be an action rather than a patch function because as far as I'm aware there's no totally reliable way of finding the resref of the file being patched.)

You should still have access to SOURCE_RES.  If you were writing a generic patch function, you might not want to rely on it (since it can easily be overridden by an INNER_ACTION) but for something simple like this, it should be okay.

That being said, this works perfectly fine as an action function.

Share this post


Link to post

INNER_ACTION was exactly my concern. (And I agree it's a bit of an edge case.)

Share this post


Link to post
Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...