temnix Posted October 22, 2019 Posted October 22, 2019 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? Quote
Recommended Posts
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.