Jump to content

This code gives me trouble


temnix

Recommended Posts

I have an ACTION_IF with globbing for CRE files, doing a lot of changes to them, starting with PATCH_IF (SOURCE_SIZE > 0x2c8) THEN BEGIN and concluding with END. I want to put another ACTION_IF inside, two actually, and within each of those a patch. They are almost identical and go like this:

ACTION_IF !(FILE_EXISTS_IN_GAME ~RNDSTA_#.SPL~) THEN BEGIN

PATCH_IF (class = 155 || class = 212 || class = 156 || class = 211) & level < 4 & !(~%SOURCE_RES%~ STRING_EQUAL ~SCAR~) & !(~%SOURCE_RES%~ STRING_EQUAL ~SCAR2~) & !(~%SOURCE_RES%~ STRING_EQUAL ~DELTAN~) THEN BEGIN        
    LPF ADD_CRE_EFFECT INT_VAR opcode = 146 target = 1 timing = 9 duration = 0 probability1 = 100 parameter2 = 1 STR_VAR resource = ~RNDSTA_#~ END
END
END

Weidu gives me a parsing error and demands an END, but I think I have enough. What is the problem here?

Link to comment

Join the conversation

You are posting as a guest. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

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.

×
×
  • Create New...