Jump to content

Add effect 206 for a not fixed spell, need weidu code


deratiseur

Recommended Posts

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 by deratiseur
Link to comment

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
Link to comment

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 by deratiseur
Link to comment

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...