Jump to content

[SORTED] How to write negative numbers?


Recommended Posts

Posted (edited)

Stand down, I seem to have figured it out :)

ACTION_IF GAME_IS ~bgee bg2ee~ BEGIN
	COPY_EXISTING_REGEXP ".*\.cre" override
		READ_BYTE 0x272 race
		PATCH_MATCH "%race%" WITH
		199 142 113 BEGIN
        	LPF ADD_CRE_EFFECT INT_VAR opcode = 178 target = 2 timing = 9 parameter1 = (IDS_OF_SYMBOL (~race~ ~dwarf~)) parameter2 = 4 special = "-4" END
            END
	  DEFAULT
	  END
   BUT_ONLY
END
Edited by a.greene

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...