Q for weidu experts: ACTION_IF inside ACTION_IF?
[Deleted User]
Posts: 0
The user and all related content has been deleted.
Post edited by [Deleted User] on
0
Comments
I could be missing something. Haven't actually used that command
To launch an ACTION_FUNCTION simply use (LPF is the short for LAUNCH_PATCH_FUNCTION).
BEGIN ~Add kit for TobEx~
REQUIRE_PREDICATE ((ENGINE_IS ~tob~) AND (FILE_EXISTS_IN_GAME ~clsrcreq.2da~))
ADD_KIT ~yadda yadda
If the predicate is false the component is skipped and the user is notified of the reason why it is skipped. There is no interaction unless the predicate is true. For example
REQUIRE_PREDICATE condition ~Message for the User.~
will simply produce something like that during installation (and in the DEBUG file), if the condition is false.
Yes, you can have multiple REQUIRE_PREDICATEs for the same component. They must all be true or the component will not install (it's semantically equivalent to using AND, except you can have one message per REQUIRE_PREDICATE). And to keep our terminology straight, REQUIRE_PREDICATE is a component flag and not a function.