deratiseur Posted February 2, 2018 Posted February 2, 2018 (edited) Hello please, help me. If i install a new spell with this command : ADD_SPELL ~Derats_kits/Projo/Spells/spwi467.spl~ 2 4 WIZARD_MORDENKAINENS_FORCE_MISSILES SAY 0x08 @135 SAY 0x50 @136 SPRINT temp "%DEST_RES%" How can i replace "SPWI467" in this command by my installed spell, because his SPWI number isn't fixed ? COPY ~Derats_kits/Sorcelier/Copy/pxsarmok.spl~ ~override/pxmprook.spl~ WRITE_ASCII 0xae ~spwi467~ #8 And if i have created a special shield spell with "protection from spwi467" and at lvl 17 "bounce spwi467", how can i replace all instance of spwi467 in my spell by the installed unfixed SPWIx ? Edited February 2, 2018 by deratiseur Quote
subtledoctor Posted February 2, 2018 Posted February 2, 2018 Get the RES (spwi name) of the spell with LAF RES_NUM_OF_SPELL_NAME, and then use ALTER_EFFECT to plug it into your spells. Quote
Gwendolyne Posted February 2, 2018 Posted February 2, 2018 Or: ADD_SPELL ~Derats_kits/Projo/Spells/spwi467.spl~ 2 4 WIZARD_MORDENKAINENS_FORCE_MISSILES SAY 0x08 @135 SAY 0x50 @136 SPRINT temp_spwi467 "%DEST_RES%" COPY ~Derats_kits/Sorcelier/Copy/pxsarmok.spl~ ~override/pxmprook.spl~ LPF ALTER_EFFECT INT_VAR match_opcode = 206 STR_VAR resource = EVAL "%temp_spwi467%" END Quote
deratiseur Posted February 2, 2018 Author Posted February 2, 2018 (edited) Ok, thanks Gwendoline, "STR_VAR resource = EVAL "%temp_spwi467%" END" is really good And i use ALTER_EFFECT, as said by subtledoctor. My code is now : COPY ~override/pxmprook.spl~ ~override~ LPF ALTER_EFFECT STR_VAR match_resource = spwi430 resource = EVAL "%temp%" END (spell is copied in the override before, because now it use spwi430, ready for IWDEE, and patched only on BG versions.) Thanks to you two. Edited February 2, 2018 by deratiseur Quote
Recommended Posts
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.