Jump to content

Assigning area scripts


CamDawg

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_EVALUATED_ASCII 0x94 ~\1~
   WRITE_LONG  0x9A "%temp%" 
 END
 BUT_ONLY_IF_IT_CHANGES

Link to comment

Archived

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

×
×
  • Create New...