Jump to content

EXTEND_TOP_REGEXP?


jastey

Recommended Posts

' date='Oct 5 2007, 11:45 AM' post='101051']

 

Remember to to include a Continue() at the end of your script block, otherwise you might disrupt the OnCreation() blocks.

 

Personally, I'd rather use EXTEND_BOTTOM unless it's absolutely necessary for your script block to run before the rest of the area scripts' contents.

Me too, but in this case it makes sense. The Continue() is there.

 

When would the INNER_ACTION not be needed after PATCH_IF? Could you give me an example?

Link to comment

Check the tp2 syntax description in the WeiDU Readme. Here are the relevant bits:

An action is one of the following:

COPY_EXISTING_REGEXP optNoBackup optGlob fromFileRegexp toDir ... patch list when list

EXTEND_TOP existingBCS newFile patch list

(etc. ad nauseam)

 

A patch is one of the following:

PATCH_IF value [ THEN ] BEGIN patch list END [ ELSE BEGIN patch list END ]

INNER_ACTION BEGIN TP2 Action list END

(etc. ad nauseam)

PATCH_IF is a patch (and it contains patches), whereas EXTEND_TOP is an action. Actions and Patches are non-interchangeable (I.E. you can't put an action where WeiDU expects a patch, such as inside a PATCH_IF). INNER_ACTION is a special patch that will run actions from inside a list of patches.

Link to comment
When would the INNER_ACTION not be needed after PATCH_IF? Could you give me an example?

when you don't use actions inside the patch list.

 

COPY_EXISTING_REGEXP - ~^.*\.are$~ ~.../override~

PATCH_IF (SOURCE_SIZE > 0x11b) BEGIN

READ_ASCII AREA_SCRIPT script

WRITE_EVALUATED_ASCII AREA_SCRIPT ~j#%script%~

END

BUT_ONLY_IF_IT_CHANGES

 

edit: nevermind, listen what the bigg says

Link to comment

Archived

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

×
×
  • Create New...