Skip to content

item restriction modding

DanacmDanacm Member Posts: 951
Hi,

Im thinking about a class, that restricted to use any magical equipment. No armor, weapons etc is allowed, only mundane items.

But for compensate that,immune to all spells, friendly or foes doesnt matter. And have an ability to change enchantment weapon to hit enemies.

How can i mod item restriction like that ? pl help me with some advice. Thanks a lot

Comments

  • RaduzielRaduziel Member Posts: 4,714
    edited July 2018

    COPY_EXISTING_REGEXP GLOB ~^.+\.itm$~ ~override~
    READ_LONG 0x18 flags
    PATCH_IF ((flags & BIT6) = 1) BEGIN
    LPF ~ADD_ITEM_EQEFFECT~ INT_VAR opcode = 319 target = 1 timing = 2 parameter1 = IDS_OF_SYMBOL (~Kit~ ~KITINTERNALNAME~) parameter2 = 9 special = RESOLVE_STR_REF (@STRING RELATED TO KIT NAME) END
    END
    BUT_ONLY
Sign In or Register to comment.