Jump to content

Creature patching


Creepin

Recommended Posts

I need to patch, among other things, some weapons of Bio cre's. The problem is that to ensure maximum possible compatibility I want to check first if this weapon is left intact or already patched by some other mod. If creature still has it's original weapon, I want to replace it for good, but if it was already changed to some other mod's content, I'd prefer to keep both items as potential additions to player's collection.

So, I ended up with construction like this:

 

COPY_EXISTING ~example.cre~ ~override~

ACTION_IF creature has staff01.itm among it's posessions

THEN BEGIN

REPLACE_TEXTUALLY CASE_INSENSITIVE EXACT_MATCH ~staff01~ ~newstaff~ ( 8 )

END

ELSE BEGIN

ADD_CRE_ITEM ~newstaff~ #0 #0 #0 ~None~ ~weapon1~

END

 

I marked green the part I don't know how to write in WeiDU, so any advice on it would be appreciated. :)

Link to comment

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...