subtledoctor Posted November 29, 2016 Share Posted November 29, 2016 @subtledoctor, yeah,... but the effect needs to be in the spell only if the original creature cloned possesses the immunity. That's why match_opcode and match_resource. If either of those is not present, the new effect is not created. (multi_match = 1 is just there for safety's sake, it can probably be omitted.) Link to comment
kreso Posted November 29, 2016 Author Share Posted November 29, 2016 Works as intended, may a million plague-ridden fleas bite on anyone who troubles you. Link to comment
subtledoctor Posted November 29, 2016 Share Posted November 29, 2016 *kreso casts Insect Plague* I make tweak mods! I use alter_effect and clone_effect a LOT. Link to comment
kreso Posted January 18, 2017 Author Share Posted January 18, 2017 Question about DELETE_SPELL_EFFECT. I'm trying to remove 206 vs spwi513b from spell shield spell. Code I use won't work. COPY_EXISTING ~spwi519.spl~ ~override~ LPF DELETE_SPELL_EFFECT INT_VAR match_opcode = 206 STR_VAR match_resource = spwi513b Link to comment
Jarno Mikkola Posted January 18, 2017 Share Posted January 18, 2017 Code I use won't work. COPY_EXISTING ~spwi519.spl~ ~override~ LPF DELETE_SPELL_EFFECT That's cause it doesn't take match_opcode -variable. But it will only take opcode_to_delete -variable So try: COPY_EXISTING ~spwi519.spl~ ~override~ LPF DELETE_SPELL_EFFECT INT_VAR opcode_to_delete = 206 END And yeah,. that's a bit more destructive than you might hope it to be. ... yeah. Sad. You might wish to replicate the marco and use it as the base to make your own, or ask CamDawg's help. And then of course get it included to weidu.exe ... so others can use it too. Link to comment
kreso Posted January 19, 2017 Author Share Posted January 19, 2017 COPY_EXISTING ~spwi519.spl~ ~override~ LPF DELETE_EFFECT INT_VAR match_opcode = 206 STR_VAR match_resource = spwi513b END Works just fine. Link to comment
subtledoctor Posted January 19, 2017 Share Posted January 19, 2017 Yeah the differences between X_EFFECT vs. X_SPELL_EFFECT / X_ITEM_EFFECT can be confusing. My rule of thumb is, use the old ones (with _SPELL_ / _ITEM_) when *adding* a brand new effect. Because there is no ADD_EFFECT among the newer functions. (Though you could try to use CLONE to approximate it.) use the newer (shorter) functions in all other circumstances. The one exception is when you want to use a negative number. ALTER_EFFECT and CLONE_EFFECT, to my knowledge, cannot apply a penalty by, say, doing a 278 "thac0 bonus" with a -1 value. But the older functions can use a negative value - "(0 - 1)" Link to comment
Recommended Posts
Archived
This topic is now archived and is closed to further replies.