Jump to content

Assigning area scripts


Recommended Posts

Baldurdash fixes a couple of missing area scripts, but I say let's go whole hog and help modders. This will patch any area file of the form ARxxxx.are (where x is a number) to use ARxxxx as their area script, only if it does not have one assigned.


COPY_EXISTING_REGEXP GLOB ~AR[0-9][0-9][0-9][0-9]\.are~ ~override~
 READ_ASCII 0x94 "script"
 PATCH_IF ("" STRING_COMPARE "%script%" = 0) BEGIN
   READ_LONG   0x9A "temp"
   WRITE_LONG  0x9A "%temp%" 

Link to comment


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

  • Create New...