Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Dark Dreams of Furiae - a new module for NWN:EE! Buy now
Attention, new and old users! Please read the new rules of conduct for the forums, and we hope you enjoy your stay!

Need an idea to exclude NPCs

CrevsDaakCrevsDaak Member Posts: 7,152
edited May 2014 in General Modding
I coded a (very easy) weidu today that gives all the mages/sorcerers 4 levels more, but I'm not very creative today so I can't think of any way of how to exclude NPCs of being edited by weidu too.
BEGIN ~Add 4 levels to all mages/sorcerers in the games~
COPY_EXISTING_REGEXP ~.*\.cre~ ~override~
PATCH_IF (SOURCE_SIZE > 0x2d3) BEGIN
READ_BYTE 0x273 class

PATCH_IF (class = 1) OR (class = 19) BEGIN
READ_BYTE 0x234 level1
WRITE_BYTE 0x234 ("level1" + 4)
END
END
BUT_ONLY_IF_IT_CHANGES

Erg

Comments

Sign In or Register to comment.